Managing HP Serviceguard for Linux Ninth Edition, April 2009

Distributing the Shared Configuration to all Nodes (page 166)
Testing the Shared Configuration (page 167)
Storing Volume Group Configuration Data (page 169)
Setting up Disk Monitoring (page 170)
CAUTION: The minor numbers used by the LVM volume groups must be the same
on all cluster nodes. This means that if there are any non-shared volume groups in the
cluster, create the same number of them on all nodes, and create them before you define
the shared storage. If possible, avoid using private volume groups, especially LVM
boot volumes. Minor numbers increment with each logical volume, and mismatched
numbers of logical volumes between nodes can cause a failure of LVM (and boot, if
you are using an LVM boot volume).
NOTE: Except as noted in the sections that follow, you perform the LVM configuration
of shared storage on only one node. The disk partitions will be visible on other nodes
as soon as you reboot those nodes. After you’ve distributed the LVM configuration to
all the cluster nodes, you will be able to use LVM commands to switch volume groups
between nodes. (To avoid data corruption, a given volume group must be active on
only one node at a time).
For multipath information, see “Multipath for Storage ” (page 96).
Displaying Disk Information
To display a list of configured disks, use the following command:
fdisk -l
You will see output such as the following:
Disk /dev/sda: 64 heads, 32 sectors, 8678 cylinders
Units = cylinders of 2048 * 512 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1001 1025008 83 Linux
/dev/sda2 1002 8678 7861248 5 Extended
/dev/sda5 1002 4002 3073008 83 Linux
/dev/sda6 4003 5003 1025008 82 Linux swap
/dev/sda7 5004 8678 3763184 83 Linux
Disk /dev/sdb: 64 heads, 32 sectors, 8678 cylinders
Units = cylinders of 2048 * 512 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdc: 255 heads, 63 sectors, 1106 cylinders
Units = cylinders of 16065 * 512 bytesDisk /dev/sdd: 255 heads, 63 sectors, 1106 cylinders
Units = cylinders of 16065 * 512 bytes
In this example, the disk described by device file /dev/sda has already been partitioned
for Linux, into partitions named /dev/sda1 - /dev/sda7. The second internal device
/dev/sdb and the two external devices /dev/sdc and /dev/sdd have not been
partitioned.
160 Building an HA Cluster Configuration