Summary: Out of Inodes on Single Partition

From: Abdul Halim Bin Amiruddin (alha@mimos.my)
Date: Wed Aug 18 1999 - 05:02:21 CDT


Dear, Gurus,

Sorry, for late reply.
Since now I'am still on monitor the error messages on
my #Trusted machine.

Thanks to all who replied. Specially who gave an
idea on how to rectify the problem ;

John DiMarco jdd@cs.toronto.edu
Kevin Sheehan kevin@joltin.com
David Evans DJEVANS@au.oracle.com

---- SUMMARIZE ------------

Firstly, Boot on single user mode and backup the partition. ( /export)

I've prefered to backup on external hardisk and restored when
it's completed.
 
Trusted #newfs -i 1024 -m 2 -c 32
Trusted #/usr/ucb/df -i /export (check the inodes size)
 
Filesystem iused ifree %iused Mounted on
/dev/dsk/c1t3d0s3 257740 1748084 13% /export
 
a) For newfs -(i) decreased the inodes (i) value to 1024.
   Have to decreased it, since the smaller number should be given to get
   more inodes, as default is 2048.
   #newfs -i 1024 means It will create one inode for every 1024 bytes of
   storage, since we have a lot of smaller files on ( /export )
 
b) For -m (minfree)I've put 2,refer to percentage of usage for allocated
   inodes as default value used is 10 but,the valued should refer
   to files size. Means -m free-space=2% will start to kill
   performance once the disks starts to fill up.
 
c) For -c (cylinders) I've put 32,which can safe space by increasing the
   size of (bpi) cylinders groups.
 
There are changes on kbytes (df -k) on #Trusted, which can be compared
with previous one.

filesystem kbytes used avail capacity
/dev/dsk/c1t3d0s3 2064159 399902 1622974 20% <--previous
 
/dev/dsk/c1t3d0s3 1845126 407545 1419130 23% <--current df
 
Filesystem iused ifree %iused Mounted on
/dev/dsk/c1t3d0s3 257884 1747940 13% /export <---current
 
Tunefs process

Below are the step

After done for newfs have to unmount the partition
# umount /export
# tunefs -m 1 -o time /dev/dsk/c0t3d0s3
# mount /dev/dsk/c0t3d0s3 /export

As a resulted you can found which had tune up an existing file system

a)#tunefs -m (minfree)
refer to percentage of usage for allocated
   inodes as default value used is 10 but,the valued should refer
   to files size. Means -m free-space=1% will start to kill
   performance once the disks starts to fill up.
 
b) -o time; is a strategy of changing optimization for the file system
   There two choice (selection) on organize files layout.
   i) space which conserve space ii) time which allowed of attempted
   to organize file layout to minimize on accessing time Once tunefs
process completed It's showed

# tunefs -m 1 -o time /dev/dsk/c1t3d0s3
minimum percentage of free space changes from 2% to 1% optimization
preference remains unchanged as time
   
#mount /dev/dsk/c0t3d0s3 /export
Which you can see before and after the file system been tuned up

/dev/dsk/c1t3d0s3 1845126 9 1808215 1% /export (before tunefs)
 
/dev/dsk/c1t3d0s3 1845126 9 1826666 1% /export (after tunefs)
   
As a result It's tuned up an existing file system.

Thank you.

regards,

--alha



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:24 CDT