HP Cluster Management Utility CMU Installation Guide with Serviceguard Version 4.0 (May 2009)

16
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (2-51200, default 2):
Using default value 2
Last cylinder or +size or +sizeM or +sizeK (2-51200, default 51200):
Using default value 51200
Command (m for help): p
Disk /dev/sda: 53.6 GB, 53687091200 bytes
64 heads, 32 sectors/track, 51200 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 1 1008 83 Linux
/dev/sda2 2 51200 52427776 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
2-3-7
Configure LVM
CAUTION:
Steps in this paragraph must be performed only on one
management server.
Create the logical volume
WARNING!
In commands in this section, the volume group name is “vgcmu” and the logical volume
name is “lvol0”. Those names are hard coded in “CMU SG package” configuration files which are part
of the CMU rpm. These files are described in section 2-6 “Creating the CMU SG package”. If you
choose to change these names, you must be careful to modify CMU package configuration file
accordingly.
# pvcreate -ff /dev/sda2
Really INITIALIZE physical volume "/dev/sda2" of volume group
"vgcmu" [y/n]? y
WARNING: Forcing physical volume creation on /dev/sda2 of volume
group "vgcmu"
Physical volume "/dev/sda2" successfully created
# vgcreate /dev/vgcmu /dev/sda2
Volume group "vgcmu" successfully created
# lvcreate -L 20G vgcmu
Logical volume "lvol0" created
Edit lvm.conf (on both nodes)
On both nodes, add the following line to /etc/lvm/lvm.conf:
tags { hosttags = 1 }