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

HP-UX Handbook Rev 13.00 Page 44 (of 110)
Chapter 13 LVM
October 29, 2013
Autoswitch: With autoswitch flag on (default) LVM always switches back to the primary
link if it becomes available again. Otherwise the same link is used until the next
failure.
Changing PV Link order
To make an alternate link become the primary link (manual switch) use pvchange:
# pvchange -s <alternate>
To change it permanently (across VG deacivation/reactivation) you have to change the
order in /etc/lvmtab:
# vgreduce vg01 <primary>
Device file path "/dev/dsk/c0t1d0" is a primary link. Removing
primary link and switching to an alternate link.
# vgextend vg01 <primary>
Utility cmpdisks
cmpdisks is an unofficial shell script that collects information about all disks that can be
seen on a system. It displays a sorted list of disks and their corresponding HW paths.
cmpdisks works across multiple systems and is therefore very useful for Serviceguard
environments. It recognizes LVM and VxVM devices, also on Itanium systems.
Here’s an example output for two nodes connected to shared storage:
# cmpdisks hprtdd32 grcdg319
Scanning host hprtdd32 .......................
Scanning host grcdg319 .............................
***** LVM-VG: 0557706517-0986307905
1 hprtdd32:c2t0d0 0557706517-0986307878 0/0/2/0.0.0 SEAGATE/ST39103LC
(0x00/vg00)
***** LVM-VG: 0630309352-0976295069
1 grcdg319:c2t6d0 0630309352-0976295068 0/0/2/1.6.0 SEAGATE/ST39102LC
(0x00/vg00)