Sorry for the simple question.
I am new to Unix and Unix AIX.
I increased a file system the other day but cheated and used a conversion calculator.
Could you good people tell me the best way to increase a file system that is in 512 byte blocks.
Say the file system is 100mb and I wanted to increase to 200mb how would I work this out?
Thanks for your help
faruk
2
Hi,
the file system is 100mb and I wanted to increase to 200mb
The Filesystem can be increased according to your PP size of the vg. You can increase any file system size by multiple of your PP size.
For eg: if your PP size is 256Mb and you try to increase the file system size by 200Mb the file system will be increased by 256Mb only.
HTH.
bc can be useful:
E.g. Number of blocks in 100MB:
# echo "(100*1024*1024)/512" | bc
204800
Why do you multiply the value by 1024 then 1024 again?
100*1024*1024?
Say the block size was 1024000 or 500mb if I wanted to add 100mb would I just add 204800 to 1024000?
1024 = 1k
10241024 = 1M
100*10241024 = 100M
512 bytes in a block.
So, number of blocks in 100M = (100*1024*1024)/512
For reference you might want to read this thread and maybe this thread.
I hope this helps.
bakunin