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
-
pwd
/orphy
-
df -g .
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/orphylv 1.00 1.00 1% 4 1% /orphy
-
cp /dev/zero .
cp: ./zero: There is not enough space in the file system.
-
df -g .
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/orphylv 1.00 0.00 100% 5 1% /orphy
-
chfs -a size=+1G /orphy
Filesystem size changed to 4194304
-
df -g .
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/orphylv 2.00 1.00 51% 5 1% /orphy
-
chfs -a size=-1G /orphy
chfs: There is not enough free space to shrink the file system.
-
rm zero
-
chfs -a size=-1G /orphy
Filesystem size changed to 2097152
-
df -g .
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/orphylv 1.00 1.00 1% 4 1% /orphy
-
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
...
...
-
tail -3 /smit.script
eval /usr/sbin/chfs $LIST
}
x '512bytes' -a size='4194304' /orphy
-
df -g .
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/orphylv 2.00 2.00 1% 4 1% /orphy
#
#AIX-Forum