Thursday, December 10, 2015

How to calculate PP size in aix?

How to calculate PP size in aix?


If you dont specify the PP size during the creation of volume group, AIX will take default size. However we can identify the PP size within a second once we understand the concept. 

In aix, the pp size is calculating based on the size of the disks. AIX can use the specific numbers as the PP size. and the pp size is the constant one.. which means it should be in any one of the below numbers.

1, 2, 4, 8, 16, 32, 64,128,512,1024, (MB).

If the disk size is exactly 2 then the PP size would be 2MB
If the disk size is exactly 4 then the PP size would be 4MB
If the disk size is exactly 8 then the PP size would be 8MB
.like wise we can get to know if the disk size is exactly 16,32,64,128,256,512,1024 GB then the pp size is 16MB, 32MB, 64MB, 128MB, 256MB, 512MB, 1024MB respectively.
.

If the disk size is between 4GB < 8GB then the pp size is 8MB (Greater than 4  GB & less than 8GB)
If the disk size is between 8GB < 16GB then the pp size is 16MB.(Greater than 8  GB & less than 16GB)
Please see the below diagram for the rest of the disk size and its pp size.

if the disk size is 20 GB then what would be the pp size?
The disk size is 20GB which lies between 16GB - 32GB, so the pp size is 32MB.
(The pp size should not be 16MB as the disk size is more than 16GB, so the next PP size is 32, so the system would take 32MB)

Now i am going to ask you one questioin... If the disk size is 132 GB, tell me what is the pp size? 
  Yes, you are correct, the pp size is 256 MB.

Note: Always remember the pp size should be any one of the below numbers for normal & big vg.
1,2,4,8,16,32,64,128,256,1024.


Original and Big Volume Groups
hdisk size between:Default PP Size
1MB - 1,016MB1 MB
1,016MB - 2,032MB2 MB
2,032MB - 4,064MB4 MB
4,064MB - 8,128MB8 MB
8,128MB - 16,256MB16 MB
16,256MB - 32,512MB32 MB
32,512MB - 65,024MB64 MB
65,024MB - 130,048MB128 MB
130,048MB - 260,096MB256 MB
260,096MB - 520,192MB512 MB
520,192MB - 1,040,384MB1,024 MB

Scalable Volume Groups
hdisk size between:Default PP Size
1MB - 2,040MB1 MB
2,040MB - 4,080MB2 MB
4,080MB - 8,160MB4 MB
8,160MB - 16,320MB8 MB
16,320MB - 32,640MB16 MB
32,640MB - 65,280MB32 MB
65,280MB - 130,560MB64 MB
130,560MB - 261,120MB128 MB
261,120MB - 522,240MB256 MB
522,240MB - 1,044,480MB512 MB
1,044,480MB - 2,088,960MB1,024 MB
2,088,960MB - 4,177,920MB2,048 MB
4,177,920MB - 8,355,840MB4,096 MB
8,355,840MB - 16,711,680MB8,192 MB
16,711,680MB - 33,423,360MB16,384 MB
33,423,360MB - 66,846,720MB32,768 MB
66,846,720MB - 133,693,440MB65,536 MB
133,693,440MB - 267,386,880MB131,072 MB