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!

extending File SYSTEM

Status
Not open for further replies.

libchk

Technical User
May 23, 2005
11
US
how do you extend FS using smitty or the command line.

for example i would like to add 200MB to /usr which the threshold is about 90%

since 1pp = 256MB , how do you add 200MB using smitty first?

thanks
 
chfs -a size=+200M /usr

Provided you have enough space in rootvg!

Regards,
Khalid
 
thanks khalidaa for the quick response, what if the FS is mirrored should i change the value to 400M ?
 
The command chfs -a size=+200M /usr will only be good if you are using AIX 5.3/ 6.1 If you are using AIX 4, 5.1 & 5.2 then the chfs -a command can be used but you will need to specifiy the block size and cannot specify Megabytes/Gigabytes. If the FS is mirroed then the mirror will extend for you, as long as you keep to retention. If it isn't in retention values then you will get an error message.
 
@libchk - since 1pp = 256MB , how do you add 200MB using smitty first?

With PP size 256MB you can't add 200MB, chfs will round up to next PP multiple, in this case: 256MB

@jpor2003

What do you mean by "as long as you keep to retention. If it isn't in retention values then you will get an error message" ?


HTH,

p5wizard
 
One more note: if your PP size is 256MB and you want to add at least 200MB you might as well chfs like this:

[/tt]chfs -asize=+[red]1[/red] /usr[tt]

To add (+1 = plus one 512byte block) to the FS size, the system needs to add additional LPs (1, 2 or 3 PPs - that depends on which mirroring level you have) to the underlying LV's size, so in this case it rounds up the FS increase to +256MB or +262144KB or +524288 512byte blocks.

And this is regardless of your AIX version (has worked like this since AIX V3).


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top