SUMMARY: No space left on device

From: nicholas <nicholas_at_no-spam.co.uk>
Date: Fri Mar 05 2004 - 10:48:49 EST
Hi there

Sorry about the belated summary, but here it is:

Thanks to JALLOGUI, Grzegorz Bakalarski, Alan Pae, Calin Siulea
(cool surname - means "hug" in French"), Douglas Trainor, Ryan Krenzischek,
Mike Salehi, Roger Lowsky, Sid Wilroy, sunsa_tx and Adam Bracewell for
their suggestions.

nicholas

Original Problem:
-------------------

I have come across this many times, and the usual reason is no free blocks
left, or no indes free, but this time its neither. What else should i look
for?

Im in single user mode

df -k /usr
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/md/dsk/d32        6098231   4493787   1543462  74% /usr

df -i /usr
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/md/dsk/d32      1534400  635672  898728   41% /usr

/usr is a ufs file system

Addition info:
----------------

In addition to the output from df -i and df -k here is the output from fsck


fsck /dev/md/rdsk/d32
** /dev/md/rdsk/d32
** Last Mounted on /newusr
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
635670 files, 4493787 used, 1604444 free (1604444 frags, 0 blocks, 26.3%
fragmentation)


notice the 26.3% fragmentation!


========================================================

The general consensus was to Backup the files, newfs and restore.
Nothing much else is possible on Unix.

Here are some of the contributions:

I guess you can create small files (smaller than 8192).
If yes this is exactly fragmentation.
Now you can do little. The way to reduce fragmentation
is to  set optimization for time in newfs -o or to set
fragment size equal logical block size i.e. 8192bytes.
At present you should backup you file system and restore it.
This should reduce fragmentation...

You have a large amount of very small files ( if a file is less than 96 k,
the kernel user instead of an entire data block which is 8k by default,
fragments of 1k, splitting data blocks ). According with fsck output you
have no ( 0 ) unused free blocks . More details in System Administration
Guide : Basic Administration ( at page 624 there is an explanation on fsck
output ) . (of course from http://docs.sun.com )
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Mar 5 10:48:45 2004

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:29 EST