Managing Serviceguard 11th Edition, Version A.11.16, Second Printing June 2004

Building an HA Cluster Configuration
Creating a Storage Infrastructure with LVM
Chapter 5204
/dev/dsk/c0t15d0
/dev/dsk/c1t3d0
Use the following steps to configure a volume group for this logical disk:
1. First, set up the group directory for vgdatabase:
# mkdir /dev/vgdatabase
2. Next, create a control file named group in the directory
/dev/vgdatabase, as follows:
# mknod /dev/vgdatabase/group c 64 0xhh0000
The major number is always 64, and the hexadecimal minor number
has the form
0xhh0000
where hh must be unique to the volume group you are creating. Use a
unique number that is available across all the nodes. (This will avoid
further reconfiguration later, when NFS-mounted logical volumes
will be created in the VG.)
Use the following command to display a list of existing group files:
# ls -l /dev/*/group
3. Use the pvcreate command on one of the device files associated with
the LUN to define the LUN to LVM as a physical volume.
# pvcreate /dev/rdsk/c0t15d0
It is only necessary to do this with one of the device file names for the
LUN.
4. Use the following commands to create the volume group itself:
# vgcreate /dev/vgdatabase /dev/dsk/c0t15d0
# vgextend /dev/vgdatabase /dev/dsk/c1t3d0
You can now use the vgdisplay -v command to see the primary and
alternate links. LVM will now recognize the I/O channel represented by
/dev/dsk/c0t15d0 as the primary link to the disk; if the primary link fails,
LVM will automatically switch to the alternate I/O channel represented
by /dev/dsk/c1t3d0.
To create logical volumes, use the procedure described in the previous
section, “Creating Logical Volumes.