HP-UX HB v13.00 Ch-13 - LVM
HP-UX Handbook – Rev 13.00 Page 42 (of 110)
Chapter 13 LVM
October 29, 2013
NOTE: It is the order in /etc/lvmtab that defines the default order in which the links are
used.
Configuring PV Links
The following example shows how to create a VG with a disk having an alternate link.
First check the available disk devices using ioscan:
# ioscan -fnkCdisk | more
Class I H/W Path Driver S/W State H/W Type Description
================================================================
=======
disk 0 0/0/2/0.6.0 sdisk CLAIMED DEVICE SEAGATE ST39102LC
/dev/dsk/c1t6d0 /dev/rdsk/c1t6d0
disk 1 0/0/2/1.6.0 sdisk CLAIMED DEVICE SEAGATE ST39102LC
/dev/dsk/c2t6d0 /dev/rdsk/c2t6d0
disk 2 0/12/0/0.0.0 sdisk CLAIMED DEVICE SEAGATE ST118202LC
/dev/dsk/c4t0d0 /dev/rdsk/c4t0d0
disk 3 0/12/0/0.1.0 sdisk CLAIMED DEVICE SEAGATE ST118202LC
/dev/dsk/c4t1d0 /dev/rdsk/c4t1d0
disk 13 0/12/0/0.2.0 sdisk CLAIMED DEVICE SEAGATE ST118202LC
/dev/dsk/c4t2d0 /dev/rdsk/c4t2d0
disk 6 0/12/0/1.0.0 sdisk CLAIMED DEVICE SEAGATE ST118202LC
/dev/dsk/c5t0d0 /dev/rdsk/c5t0d0
disk 7 0/12/0/1.1.0 sdisk CLAIMED DEVICE SEAGATE ST118202LC
/dev/dsk/c5t1d0 /dev/rdsk/c5t1d0
disk 12 0/12/0/1.2.0 sdisk CLAIMED DEVICE SEAGATE ST118202LC
/dev/dsk/c5t2d0 /dev/rdsk/c5t2d0
disk 19 0/12/0/1.3.0 sdisk CLAIMED DEVICE SEAGATE ST118202LC
...
...
From cabling or cmpdisks utility (see below) we know that c4t1d0 and c5t1d0 identify
the same disk.
Extend vg01 using one of the device files:
# pvcreate [-f] /dev/rdsk/c4t1d0
# vgextend vg01 /dev/dsk/c4t1d0
NOTE: Do not run pvcreate on the other devicefile. Remember that it points to the
same disk and this disk has already been pvcreated.
This is how vgdisplay and pvdisplay report alternate links: