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

22
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-24, default 1): 1
Using Last cylinder or +size or +sizeM or +sizeK (1-1016, default 1016):
1016
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
3. To create a partition on the clog package LUN (/dev/sdc), run the fdisk command and
answer the prompts as follows (user inputs in bold):
fdisk /dev/sdc
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1013, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-1013, default 1013): 1013
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
Create the Logical Volumes
In this section, you will create the shared volume groups for the 2 Serviceguard for Linux packages
(ws and clog). This includes creating physical volumes, volume groups, and the logical volumes. You
will also create the file system on each logical volume and create the mount points for each logical
volume on the first server.
The steps in this section are to be executed on one server. This should be the same server where the
partitions were created in the previous step.
1. To create a logical volume for the ws package, do the following:
a. If it is a partitioned LUN, execute the following commands:
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