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!

INCREASE File system size

Status
Not open for further replies.

beechill4

Technical User
May 10, 2005
207
IE
Hi,

i want to increase the space on u01 on my AIX server from 6.5 gb to 45 gb

I am using smitty but cannot figure it out.

I am in the Change / Show Characteristics of a Journaled File System section.

What parameters do i need to change to increase the file system size?

is it something to do with
- number of units and /or
-unit size?

Thanks in advance.
 
smit lv, set charateristics, change- insure that the maximum number of logical partitions times the size of the physical partitions exceeds the size that you want to change the file system size to.lsvg vgname will give you the size of the physical partition. Then - smitty jfs - change/show - the numnber of units is in 512 byte blocks - so this number should be your final size of the file system in bytes divided by 512.
 
The default unit size is 512byte blocks, but now you can choose a bigger unit size in chfs command and in the smit "Change / Show Characteristics of a Journaled File System" panel (use tab-key or F4 on the "Unit Size" field).

Costiles is right though, underlying LV needs to be set up that it can grow at least to the size you want the FS on it to grow. There are also other limits built in to the JFS structure: based on values chosen when the JFS was created, there is a max size fro your JFS that you won't be able to go beyond. Chfs (on command line or via smit) will tell you.


HTH,

p5wizard
 
What version of AIX is the system running? With AIX 5.2 (or greater) it is very easy via smit. With 5.1 and older, you will need to do some calculations (free PPs, size of a PP, etc) to calculate the size you need.

Either way, you will need to make sure the volume group has sufficient free PPs in order to resize.
 
you will need to do some calculations (free PPs, size of a PP, etc) to calculate the size you need. ??? not a lot of math though:

before 5.2, you want to add 1GB to a file system
take 512 (block size)
512 times 2 ==> 2blocks 1K
512 times 2048 ==> 2048blocks is 1M
512 times 2048x1024 ==> 20971525blocks is 1GB

in chfs command specify
chfs -a size=+20971525 /file/system/name
or specify +20971525 in SMIT panel to add 1GB

from 5.2 onwards
chfs -asize=+1G /file/system/name
or use appropriate SMIT fields (value=1 unitsize=gigabytes)

It still stands that the underlying LV needs to be accomodating (max number of PPs) but chfs will tell you if this isn't so. You may need to do some more math to get that limit high enough or simply start by doubling the current value (smit chlv)


HTH,

p5wizard
 
I would suggest the same thing as P5wizard said.

R u using BIG volume group?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top