HP-UX HB v13.00 Ch-13 - LVM

HP-UX Handbook Rev 13.00 Page 3 (of 110)
Chapter 13 LVM
October 29, 2013
TABLE OF CONTENTS
LVM Versions ________________________________________________________________ 6
Device Files __________________________________________________________________ 6
LVM Structural Information _____________________________________________________ 6
PVRA, BDRA and VGRA _____________________________________________________________ 7
LIF Header and LIF Volume __________________________________________________________ 8
PV-ID and VG-ID ___________________________________________________________________ 8
vgcfgbackup(1M) _________________________________________________________________ 10
/etc/lvmtab, /etc/lvmtab_p and vgscan(1M) ___________________________________________ 10
Parameters and Limitations ____________________________________________________ 12
LVM parameters__________________________________________________________________ 12
How the size of the VGRA is calculated________________________________________________ 14
Calculating an optimal extent size for a version 1.0 volume group. _________________________ 14
Maximum max_pe values for non-boot disks___________________________________________ 15
Maximum max_pe values for boot disks ______________________________________________ 17
Calculating an optimal extent size for a version 2.x volume group. _________________________ 19
Supported file and file system sizes __________________________________________________ 19
Display Commands ___________________________________________________________ 20
Information on 1.0 VGs ____________________________________________________________ 20
Information on 2.x VGs ____________________________________________________________ 21
Information on 1.0 PVs ____________________________________________________________ 22
Information on 2.x PVs ____________________________________________________________ 23
Information on 1.0 LVs_____________________________________________________________ 24
Information on 2.x LVs _____________________________________________________________ 25
LVM Basic Functionality _______________________________________________________ 25
Adding a new PV / VG / LV _________________________________________________________ 25
Adding a new PV ________________________________________________________________________ 25
Adding a new VG ________________________________________________________________________ 26
Adding a new 1.0 or 2.x LV ________________________________________________________________ 27
Modifying a PV / VG / LV ___________________________________________________________ 28
Modifying a PV _________________________________________________________________________ 28
Modifying a LV _________________________________________________________________________ 28
Modifying a VG _________________________________________________________________________ 30