Bedeutung des PE eines PVs

Hi,

Thema ist LVM. Welche Bedeutung hat das PE (Physical Extent) eines LV (Logical Volumes)? Standardmäßig ist ein PE 4MB groß, kann aber Größen zwischen 8KB und 16GB groß sein, wenn man es so konfiguriert. Ergeben sich daraus ähnliche Vor- und Nachteile wie bei großen und kleinen Block Sizes?

cu
serow
 
Da du dich (warum auch immer) auf lvm1 zu beziehen scheinst:
If the volume group metadata uses lvm1 format, extents can vary in size from 8KB to 16GB and there is a limit of 65534 extents in each logical volume. The default of 4 MB leads to a maximum logical volume size of around 256GB.
[...]but having a large number of extents will slow down the tools but have no impact on I/O performance to the logical volume.

Neben den offensichtlichen Nachteilen von großen PEs (da LV und PV vielfache davon sein müssen) und dem mehr an Verwaltungsaufwand für sehr kleine...
Wenn mehrere Festplatten benutzt werden, kann ein ähnlicher Effekt des raid0 erzielt werden (distributed allocation). Das stripping an sich ist nochmal was anderes.
 
Hi,
okay Verwaltungsaufwand ... Wie kommst du darauf, dass ich mich auf LVM1 beziehe? Gilt das mit den PEs nicht mehr für LVM2? Oh man ich fürchte gerade ich hab bisher LVM1 Tutorials gelesen ...

cu
serow
 
Um da nochmal aus den man-pages zu zitieren...
Sets the physical extent size on physical volumes of this volume group. A size suffix (k for kilobytes up to t for terabytes) is optional, megabytes is the default if no suffix is present. The default is 4 MB and it must be at least 1 KB and a power of 2.
Once this value has been set, it is difficult to change it without recreating the volume group which would involve backing up and restoring data on any logical volumes. However, if no extents need moving for the new value to apply, it can be altered using vgchange -s.
If the volume group metadata uses lvm1 format, extents can vary in size from 8KB to 16GB and there is a limit of 65534 extents in each logical volume. The default of 4 MB leads to a maximum logical volume size of around 256GB.
If the volume group metadata uses lvm2 format those restrictions do not apply, but having a large number of extents will slow down the tools but have no impact on I/O performance to the logical volume. The smallest PE is 1KB.
 
Zurück
Oben