HP Serviceguard for Linux Version A.11.20.00 Deployment Guide, August 2012

14
Execute the following commands to create a logical volume for the ws package:
pvcreate -f /dev/mapper/mpath1p1
vgcreate /dev/vgws /dev/mapper/mpath1p1
lvcreate -L 180M -n lvol1 vgws
mke2fs -j /dev/vgws/lvol1
mkdir /ws
vgchange -a n vgws
NOTE: The size specified in the lvcreate command, specified by the “-L” option, is related to the size
of the physical partition created on the storage device.
Backup the Volume Groups
The steps in this section should be performed on the same server where the partitions and volumes
were created.
Execute the vgcfgbackup command to backup the volume groups, for example:
vgcfgbackup /dev/vgws
Import and Configure the Volume Groups on the Second Server
At this point, you need to import the volume groups and create the mount
points on the second server.
NOTE: The Serviceguard for Linux documentation suggests using vgexport and vgimport to achieve
the same result, but vgscan on the second server is sufficient.
The steps in this section must be performed on the second server.
1. First, run the “fdisk l” command to verify that the external devices are visible on the second
server. For example, look for /dev/sda through /dev/sdf, and /dev/mapper/mpath0p1,
/dev/mapper/mpath1p1
fdisk –l
NOTE: If you do not see these devices, test the connections and reboot the server.
2. Import the volume groups by running the vgscan command.
vgscan
Reading all physical volumes. This may take a while.
Found volume group "vgws" using metadata type lvm2
NOTE: If the volume groups are not found, reboot the server.
3. Create the mount points
mkdir /ws
4. Backup the volume group configurations
vgcfgbackup /dev/vgws
5. Deactivate the volume groups on this server
vgchange a n vgws
Network Configuration
Configure Network Bonding
In this step, you will configure a bonded network interface. You will need to determine which
interfaces are participating in the bond. In the following example, eth2 and eth3 are configured to
create the bond0 logical interface to meet the minimum requirements for Serviceguard for Linux.