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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Increase filesystem - chfs

Status
Not open for further replies.

simpson

MIS
Oct 23, 2001
58
CA
I would like to add an additional 120 meg to a filesytem. 512K block size.

chfs -a size=+???? /usr.

Can someone walk me through how to calculate the ???? I am having a hard time grasping the concept right now.

Thanks in advace.
 
Hi Simpson,

I do like this calculation ...

512 bytes = 1 block
so
1024 bytes = 2 blocks
it means
1 KB = 2 block
so
1024 KB = 1024 * 2 = 2048 blocks
it means
1MB = 2048 blocks

so for 120 MB that would be :-
120 MB = 120 * 2048 = 245760 blocks

The final command would be :-

chfs -a size=+245760 /usr


Thanks.
Sam
 
Thanks for simplifying this for me. Greatly appreciated
 
If your AIX is recent enough, you can specify MB also:

[tt]chfs -asize=+120M /usr[/tt]

or GB:

[tt]chfs -asize=+1G /some/FS[/tt]


and for jfs2, you can also decrease size:

[tt]chfs -asize=-500M /file/system[/tt]


without + or -, you set the desired size:

[tt]chfs -asize=2G /some/other/FS[/tt]


Go check the man page.

HTH,

p5wizard
 
BTW, if you do this stuff in smit; once you've filled in all the info hit F6 and it'll show you the command line being used.

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top