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!

Filesystem Size

Status
Not open for further replies.

SaraLouise

Instructor
Sep 26, 2001
12
GB
I need to make a filesystem of 700MB in size.

Can any one tell me the calculation I need to work out the value to be entered in the size field? I seem to be going in ever decreasing circles!!

Many Thanks
 
Sara Louise,

If you want 700 megs you new to create a filesystem:

1400000

This is in 512 byte blocks, so halve that figure and you will have 700 megs roughly.

Cheers PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified Specialist - AIX V4 HACMP
 
The exact size can be figured by this. Find out what the PP size is for the volume group that you are working in.

# lsvg rootvg
(expample)
PP SIZE: 16 megabyte(s)

Then take 16 * 1024

16384

So 16384 kbytes is the factor in which the filesystem will grow. If you wanted a 100 meg file system, you would caculate it like this.

(100 * 1024) / 16384 = 6.25

So the 100 meg filesystem has to be a factor of 6 or 7. 6 being just under 100 meg, 7 being just over 100 meg. Also, when actually expanding the filesystem, you have to take the final number (6*16384=98304 or 7*16384=114688) and double that, because our numbers are in 1024k blocks and AIX expects 512k blocks. So here is our command.

# chfs -a size=229376 /tmp

This will set /tmp to 112 megabytes.

Hope that helps.

crowe
 
Sara Louise,

Another way to convert 700MBs to 512K blocks is like this:

(700 X 1048576) / 512

I have been using this formula for a while now, it works for me.

I hope it helps

redwings
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top