1826351 Members
3405 Online
109692 Solutions
New Discussion

Re: LVM

 
Parth G Pandya
New Member

LVM

I have created the Physical volume and the size of my PE is default 4MB. Now i want to change it to 8MB. How can i do that?
2 REPLIES 2
Senthil Kumar .A_1
Honored Contributor

Re: LVM

You can't change it on the fly. The PE size parameter is determined by vgcreate command not by pvcreate. The PE size for a PV is choosen depending upon what VG you put that PV into. If that VG was created with PE size of 4 MB, then the PE on PV's will be 4 MB when allocated to that VG.

If you need to choose a PE size for PV more the 4MB (Default) for existing VG, then you need to backup the data, remove the VG, recreate the new VG with "-s 8" option to vgcreate command and recreate the LV's and FS as before and restore the data.

If you do not want to meddle with the existing VG, then its just simple. Create a new VG with "-s 8" as option to vgcreate command. If you add any PV to this new VG, the PE size will be 8 MB.

SK
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Parth G Pandya
New Member

Re: LVM

i have got the solution.