Wednesday 4 January 2012

AIX - LVM - Change File System

Using chfs command we can rename and increase the size of the file system online
We want to increase file system size
#chfs –a size=+block size /filesystem name
#chfs –a size=+32m /filesystem name
#chfs-a size=+4g /filesystem name


+block size – We can mention the size using blocks (2048 blocks = 1MB)
+32m – We can mention the size using MB
+4g – We can mention the size using GB


After increasing the file system size, we can verify using commands

#df –k
#ls –q /newfs


#lsfs /newfs
It will display /newfs details


Now we want to rename /newfs to /testfs then your command will be
#chfs –m /testfs /newfs


After executing the above command /newfs renamed as /testfs
We can auto mount the file system while booting using chfs command
#chfs –A /testfs

No comments:

Post a Comment