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

HP-UX Handbook Rev 13.00 Page 11 (of 110)
Chapter 13 LVM
October 29, 2013
# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t0d0
/dev/vgsap
/dev/dsk/c4t0d0
/dev/dsk/c5t0d0
/dev/dsk/c4t1d0
/dev/dsk/c5t1d0
/dev/vg01
/dev/dsk/c6t0d0
NOTE: this is only the “visible” part of the lvmtab. It does also contain the VG-IDs, the
total number of VGs, the number of PVs per VG and status information
To read the lvmtab_p file use the cat command:
# cat /etc/lvmtab_p
ÐÐ/dev/vg_lvm2A0000000000000009Thu Jun 23 18:30:55 2011523dfd66-9dfd-11d8-
be52-c83e68f1c426/dev/disk/disk111
To read the VGID for any volume group in the /etc/lvmtab file using the
command below.
Note: the command below is grepping out volume group vgcat8.
# strings -t d /etc/lvmtab | grep /dev | grep -v /dev/dsk | while read
offset path; do xd -An -j$(($offset+1024)) -N8 -tx /etc/lvmtab | read
vgid1 vgid2; echo $path $vgid1 $vgid2; done | grep "vgcat8 "
The line below is returned containing the VGID:
/dev/vgcat8 4ec89e3f 48f7b7ba
All VGs listed in lvmtab are automatically activated during system startup. This is done
in the script /sbin/lvmrc, based upon configuration in /etc/lvmrc.
To disable automatic volume group activation, set AUTO_VG_ACTIVATE to 0.
In /sbin/lvmrc