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

george.done_at_orangemail.nl
Date: 09/01/04

  • Next message: Sundaram Ramasamy: "Netscape for Solaris 8"
    To: sunmanagers@sunmanagers.org
    Date: Wed, 1 Sep 2004 12:06:35 +0200 
    
    

    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


  • Next message: Sundaram Ramasamy: "Netscape for Solaris 8"

    Relevant Pages

    • mipsel linux problems
      ... 4000 inodes, 16000 blocks ... Writing inode tables: done ... Writing superblocks and filesystem accounting information: ... Setting maximal mount count to 10240 ...
      (comp.os.linux.embedded)
    • mips linux problems
      ... 4000 inodes, 16000 blocks ... Writing inode tables: done ... Writing superblocks and filesystem accounting information: ... Setting maximal mount count to 10240 ...
      (comp.os.linux.development.system)
    • Re: [Ext2-devel] [PATCH 1/2] ext2/3: Support 2^32-1 blocks(Kernel)
      ... understand a tangled mess of features, some compat, some incompat, ... 16TB filesystem. ... an unsupporting kernel would still update all the timestamps consistently ... some inodes will have room for the usec ...
      (Linux-Kernel)
    • Re: Large Ramdisk creation causes crashes
      ... larger ramdisk, in the exact same manner, gives me a weird error about ... 66400 inodes, 132500 blocks ... Maximum filesystem blocks=138412032 ... mount: wrong fs type, bad option, bad superblock on /dev/ram0, ...
      (Fedora)