HP Serviceguard for Linux Version A.11.19 Deployment Guide, September 2012

23
b. If it is not a partitioned LUN, execute the following commands:
pvcreate -f /dev/mapper/mpath1
vgcreate /dev/vgws /dev/mapper/mpath1
lvcreate -L 180M -n lvol1 vgws
mke2fs -j /dev/vgws/lvol1
mkdir /ws
vgchange -a n vgws
2. To create a logical volume for the clog package, do the following:
a. If it is a partitioned LUN, execute the following commands:
pvcreate -f /dev/mapper/mpath2p1
vgcreate /dev/vgclog /dev/mpath2p1
lvcreate -L 280M -n lvol1 vgclog
mke2fs -j /dev/vgclog/lvol1
mkdir /clog
vgchange -a n vgclog
b. If it is not a partitioned LUN, execute the following commands:
pvcreate -f /dev/mapper/mpath2
vgcreate /dev/vgclog /dev/mpath2
lvcreate -L 280M -n lvol1 vgclog
mke2fs -j /dev/vgclog/lvol1
mkdir /clog
vgchange -a n vgclog
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.
The latest versions of Linux kernel do not support partition on LVM.
Backup the Volume Groups
The steps in this section should be performed on the same server where the partitions and volumes
were created.
1. Execute the vgcfgbackup command to backup the volume groups, for example:
vgcfgbackup /dev/vgws /dev/vgclog
Import and Configure the Volume Groups on the Second Server
At this point, you need to import the volume groups (e.g. vgws and vgclog) 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 the vgscan on the second server is sufficient.
The steps in this section should 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, and /dev/mpath2p1.
fdisk l
NOTE: If you do not see these devices, test the connections and reboot the server.