LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Increasing PE Size (https://www.linuxquestions.org/questions/linux-server-73/increasing-pe-size-4175498926/)

Ashish Sood 03-20-2014 11:09 PM

Increasing PE Size
 
Hi All,

I am trying to increase the physical extent size of my volume group, but its seems not working for me. when i try to increase my VG size its gave me error message
New extent size is not a perfect fit

Please find the detail of my volume group

[vgdisplay]

Quote:

--- Volume group ---
VG Name test
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 9
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 0
Max PV 0
Cur PV 2
Act PV 2
VG Size 2.81 GB
PE Size 4.00 MB
Total PE 719
Alloc PE / Size 256 / 1.00 GB
Free PE / Size 463 / 1.81 GB
VG UUID VflmfG-OZPg-ADb8-3zXq-L1AX-3vsX-ykh4qE

[vgchange]

Quote:

[root@localhost ~]# vgchange -s 32M test
New extent size is not a perfect fit


Please tell me where i am wrong & what method do i need to follow to make it work.

Thanks in advance
Ashish

chrism01 03-21-2014 05:16 AM

http://linux.die.net/man/8/vgchange


Code:

echo '719*4'|bc
2876

 echo 'scale=5;2876/32'|bc
89.87500


Ashish Sood 03-22-2014 12:16 PM

Thanks for your reply Chris,
But it will be really helpful if you explain it, I went through that link but the same manual page is there which not helpful.

chrism01 03-24-2014 05:18 AM

Quote:

New extent size is not a perfect fit
It does need to be an exact fit; you can't have a partial extent :)

Ashish Sood 03-27-2014 12:04 AM

Thanks for your reply Chris

My question is still there how we can calculate the PE, what's is the formula's of it.

grim76 03-27-2014 07:44 AM

I would think that it would be the space you have in MB/<size of extent>. That should give you what you are looking for.


All times are GMT -5. The time now is 08:49 PM.