AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  File System Lock

    Posted 11/25/07 05:00 PM

    Originally posted by: SystemAdmin


    Hi Gents

    I have a quick question that i am curious, yesterday i had a fs that was saying its 94% full but when i looked at it was only 512mb, for some reason fs was not recognizing any changes, than just as test i increased fs from1gb to 2gb and run df -g and that fs was still saying that it was 1gb instead of 2gb.

    Now i have solved this by unmounting the fs and mounting it back on, but my question here is there a way of unlocking a fs or fixing this with out having to unmount the fs.

    Thanks
    #AIX-Forum


  • 2.  Re: File System Lock

    Posted 11/25/07 06:12 PM

    Originally posted by: orphy


    Sounds weird. How did you bump up the space? I typically just do a "chfs -a size=..." and it always gets me what I wanted from df.
    Orphy
    #AIX-Forum


  • 3.  Re: File System Lock

    Posted 11/25/07 06:35 PM

    Originally posted by: SystemAdmin


    I just do smit jfs2 /change/show char/select fs/ and increas the fs size.

    I am sure there is planty way to doit, waht i done is that the right way or should i use chfs ?
    #AIX-Forum


  • 4.  Re: File System Lock

    Posted 11/25/07 07:20 PM

    Originally posted by: orphy


    chfs has been the "right" way for me for 10+ years now. I don't even remember when I used smitty for this the last time but I just tested both way and both should work. You might want to try both out using a test FS. If it still doesn't work for you, you might want to open a PMR. Who knows? There might be a fix for you.
    Orphy

    1. pwd
    /orphy
    1. df -g .
    Filesystem GB blocks Free %Used Iused %Iused Mounted on
    /dev/orphylv 1.00 1.00 1% 4 1% /orphy
    1. cp /dev/zero .
    cp: ./zero: There is not enough space in the file system.
    1. df -g .
    Filesystem GB blocks Free %Used Iused %Iused Mounted on
    /dev/orphylv 1.00 0.00 100% 5 1% /orphy
    1. chfs -a size=+1G /orphy
    Filesystem size changed to 4194304
    1. df -g .
    Filesystem GB blocks Free %Used Iused %Iused Mounted on
    /dev/orphylv 2.00 1.00 51% 5 1% /orphy
    1. chfs -a size=-1G /orphy
    chfs: There is not enough free space to shrink the file system.
    1. rm zero
    2. chfs -a size=-1G /orphy
    Filesystem size changed to 2097152
    1. df -g .
    Filesystem GB blocks Free %Used Iused %Iused Mounted on
    /dev/orphylv 1.00 1.00 1% 4 1% /orphy
    1. smitty jfs2
    pick "Change / Show Characteristics of an Enhanced Journaled File System"
    pick "/orphy"
    double "Number of units" of "SIZE of file system" from 2097152 to 4194304
    ...
    ...
    1. tail -3 /smit.script
    eval /usr/sbin/chfs $LIST
    }
    x '512bytes' -a size='4194304' /orphy
    1. df -g .
    Filesystem GB blocks Free %Used Iused %Iused Mounted on
    /dev/orphylv 2.00 2.00 1% 4 1% /orphy
    #
    #AIX-Forum


  • 5.  Re: File System Lock

    Posted 11/25/07 07:37 PM

    Originally posted by: SystemAdmin


    Thanks for that i rally appreciate it.

    I mean i understand and like you said both way will work i have been doing smit jfs2 and it works all the time but last time i done it the fs did no want to recognise any changes till i didn’t umount the fs and mount it back on.. if it happens again i might log pmr.

    Thanks

    Lano
    #AIX-Forum


  • 6.  Re: File System Lock

    Posted 11/30/07 10:17 AM

    Originally posted by: alethad


    It looks like there was some type of issue with this filesystem. I have seen this although it's rare. You may want to fsck the filesystem just to be sure. Make sure you don't have it with other filesystems. If you do fsck them too and I might would also reboot the box after just to be sure you don't see any errors on boot up. Did you have any errors in the system error log?
    Unmounting the filesystem and mounting back probably fixed it if the problem occurred after it was mounted. But if the issue is with the FS itself you'll want to fsck so it doesn't come back.

    Good luck.
    #AIX-Forum


  • 7.  Re: File System Lock

    Posted 11/30/07 06:26 PM

    Originally posted by: jnordtome


    This sounds like a problem we saw when we mounted filesystems out of order. If you mount a "child" filesystem before mounting the "parent" system and then mount the "parent" filesystem, the "child" filesystem will have the size constraints of the "parent" filesystem.

    For example, two filesystems /data and /data/tmp. If you mount /data/tmp and then mount /data, df will show that /data/tmp is the same size as /data.

    Check the /etc/filesystems file to verify that the mounting order is correct.
    #AIX-Forum


  • 8.  Re: File System Lock

    Posted 12/02/07 04:44 PM

    Originally posted by: SystemAdmin


    Aha now that could explain why, thanks for you reply guys.

    Also i did run fsck but it didnt fix and there was not error in eerpt, the only way that i could of fixed it was to mount /umount..

    thanks again guys.
    #AIX-Forum


  • 9.  Re: File System Lock

    Posted 12/12/07 10:36 AM

    Originally posted by: SystemAdmin


    May be running "cfgmgr" after change could have done the magic.
    #AIX-Forum