Skip to contentSkip to conversation

LVM limit on PE's/size?

linux-lvm Peter Skensved 2 participants 2 messages Nov 29, 2001 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 10 lines

In general you should plan for the largest possible Logical Volume size during the lifetime of a Volume Group and set the Physical Extent size (vgcreate -s) acordingly. Even though Linux does not support more than 2TB per block device today, it will be in the future and you won't suffer from the LVM1 constraint ITR.

Regards,
Heinz -- The LVM Guy --

Is there any way to change the PE size `after the fact ' ? I have a
255.99 GB logical volume ( three 80 GB drives ) with PE size set to 4 Mb. Is there a non-destructive way to increase the PE size so that I can add more drives ? Or do I have to back everything up and start from scratch ?
peter

----

Peter Skensved                          Email : [email protected]
Dept. of Physics,                       Phone:  (613) 533-2676
Queen's University,                     Fax:    (613) 533-6813

Kingston, Ontario,
Canada

#2 lore raw
Quoted 8 lines · Peter Skensved
Quoted 6 lines

In general you should plan for the largest possible Logical Volume size during the lifetime of a Volume Group and set the Physical Extent size (vgcreate -s) acordingly. Even though Linux does not support more than 2TB per block device today, it will be in the future and you won't suffer from the LVM1 constraint ITR.

Is there any way to change the PE size `after the fact ' ?

No.

Quoted 4 lines

I have a 255.99 GB logical volume ( three 80 GB drives ) with PE size set to 4 Mb. Is there a non-destructive way to increase the PE size so that I can add more drives ? Or do I have to back everything up and start from scratch ?

Well, if you are adding more drives, you could always create a new VG with the larger PE size, copy over all of your data, and then add the old drives into the new VG after removing them from the old VG. Sadly, the PE size seems to be stored in the PV header (as well as the VG header), so it may be that you need to re-initialize the PV to change the PE size (maybe not, I don't know).

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/