Friday, May 15, 2020

What is my LVM version in HPUX

vgdisplay will show you the version of  the LVM HPUX system is currently using in the line "VG Version"

# vgdisplay vg00
VG Version                  1.0       
VG Max Size                 33553920m  
VG Max Extents              524280 

# vgdisplay vg01
VG Version 2.0
VG Max Size 16t
VG Max Extents 2097152 

Version 1 and Version 2 having different VG Max Size and VG Max Extents


# strings /etc/lvmtab > it will show you all your VG and PV which are LVM version-1
# string /etc/lvmtab_p > It wil show you all your VG and PV which are LVM version-1


When creating a new volume group, vgcreate defaults to Version 1.0.

Create LVM v1 volume group
 vgcreate -s 8 -l 3 -p 16 -e 63535 /dev/vg01 /dev/dsk/c3t4d0

Create LVM v1 volume group
# vgcreate v2.0 -s 32 -S 1p /dev/vg01 /dev/disk/disk50 


Your can refer below pdf link for futher information on LVM-2
https://community.hpe.com/hpeb/attachments/hpeb/itrc-151/38516/1/365967.pdf