ufs inodes are not released on Solaris 8 for non-root users

From: george.done@orangemail.nl
Date: Wed Sep 01 2004 - 06:06:35 EDT


Dear friends,

 

I noticed on one of our systems (SunOS 5.8 Generic_108528-29 sun4u sparc
SUNW,Sun-Fire-V250 ) ufs inodes are not released after the corresponding
file has been removed making the filesystem to ultimatelly run out of
inodes.

The inodes get released after the filesystem is unmounted and mounted again,
but this is of course not an option. Did you hear about a patch for this
problem ?

 

The following command

 

/dt3g/opt/gnu/bin/df -i /mnt ;

mkdir /mnt/TEST ;

/dt3g/opt/gnu/bin/df -i /mnt ;

cd /mnt/TEST ;

touch TEST.txt ;

/dt3g/opt/gnu/bin/df -i /mnt ;

rm /mnt/TEST/TEST.txt ;

/dt3g/opt/gnu/bin/df -i /mnt ;

cd /mnt ;

rm -r TEST;

/dt3g/opt/gnu/bin/df -i /mnt

(For information , the gnu df command display the inode status of a
filesystem)

 

executed on a Solaris 2.6 system release each time all inode (SunOS 5.6
Generic_105181-35 sun4u sparc SUNW,Ultra-4 )

 

 

 

This set of commands executed on our new development platform (SunOS 5.8
Generic_108528-29 sun4u sparc SUNW,Sun-Fire-V250 )

give the following result:

 

if the user is root the result is the following

  Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/dsk/c0t8d0s7 1985280 78 1985202 1% /mnt
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/dsk/c0t8d0s7 1985280 79 1985201 1% /mnt
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/dsk/c0t8d0s7 1985280 80 1985200 1% /mnt
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/dsk/c0t8d0s7 1985280 79 1985201 1% /mnt
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/dsk/c0t8d0s7 1985280 78 1985202 1% /mnt

 

So all inode are released

 

 

If the user is not root (oracle in this example ), the result is the
following

 

Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/dsk/c0t8d0s7 1985280 78 1985202 1% /mnt
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/dsk/c0t8d0s7 1985280 79 1985201 1% /mnt
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/dsk/c0t8d0s7 1985280 80 1985200 1% /mnt
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/dsk/c0t8d0s7 1985280 79 1985201 1% /mnt
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/dsk/c0t8d0s7 1985280 79 1985201 1% /mnt

 

 

 

 

Of course during this test , i am sure that no other process are running on
this filesystem

The filsystem used for this test is a normal UFS filesystem

 

 

Met vriendelijke groeten / Kind regards,

 

George Done

 

Storage & Unix System Administrator

 

Orange Nederland N.V.

 

Tel: +31(0)628026216

Fax: +31(0)648997173

E-mail: <mailto:george.done@orangemail.nl> george.done@orangemail.nl

 

There is no future in time travel !

 

===========================================================
De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is alleen
bestemd voor de geadresseerde. Indien u dit bericht onterecht ontvangt,
wordt u verzocht de inhoud niet te gebruiken en de afzender direct te
informeren door het bericht te retourneren. Hoewel Orange maatregelen heeft
genomen om virussen in deze email of attachments te voorkomen, dient u ook
zelf na te gaan of virussen aanwezig zijn aangezien Orange niet
aansprakelijk is voor computervirussen die veroorzaakt zijn door deze
email..

The information contained in this message may be confidential and is
intended to be only for the addressee. Should you receive this message
unintentionally, please do not use the contents herein and notify the sender
immediately by return e-mail. Although Orange has taken steps to ensure that
this email and attachments are free from any virus, you do need to verify
the possibility of their existence as Orange can take no responsibility for
any computer virus which might be transferred by way of this email.
===========================================================
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:22 EDT