Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AIX 4.3.3 Increasing Filesystem Size 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Can someone help me or point me in the right direction to determine how much I can increase the size of a specific existing filesystem?

I am at 94% used.

Thanks
Anthony
 
Anthony;
You need to determine how much unallocated space is left in the volume group. If your volume group is "rootvg" follow my commands. Otherwise substitute the name of our volume group.

While logged in as 'root' or after su'ing key:

lsvg rootvg

The resulting display will show on the right hand side something similar to this:
TOTAL PPs: 546 (8736 megabytes)
FREE PPs: 43 (688 megabytes)
USED PPs: 503 (8048 megabytes)

The FREE PPs equal the amount of unallocated space. In this case the 43 is the number of PP (Physical Partitions) available.

Take the amount of megabytes listed in the FREE PPs line and divide it by .5 which represents a 512 byte block. The result is the number of blocks that this filesystem can be enlarged.

Now issue the command:
chfs -a size=+xxxx /filesystemname (where xxxx is the number of blocks to increase by. Start with a small value then run the "lsvg" command again to see how the size changed. You can repeat this until the maximum space has been achieved or until you are satisfied with the amount of increase. You can do this at any time to add more space assuming there is some free space available.

Hope this helps.

Bob
 
Thanks Bob, I'll give that a try...will the system tell me if i have run out of space to allocate when i issue the command? let's say that i calculate wrong or i want to add all the remaining space by specifying some large arbitrary number?
 
It will tell you there is insufficent space and stop. You'll have to recalculate and it will not add any space. Worst case, you'll just consume too much space.

Note the "PP SIZE" parameter in your lsvg output. This is the amount of space that will be added at a minimum, and any additional space will be a multiple of that. So if you do this:

chfs -a size=+1 /tinyfs

and your PP size is 16MB, you will actually increase the fs by 16MB. The LVM will round up your numbers for you, as long as you have enough space. For this reason (and others) I find it easier to calculate in PP rather than 512-byte blocks, although you will have to eventually convert to 512-byte for command-entry. IBM Certified -- AIX 4.3 Obfuscation
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top