Managing HP Serviceguard A.12.00.00 for Linux, June 2014

5.1.13.2 Initializing Disks for VxVM
You need to initialize the physical disks that are employed in VxVM disk groups. To initialize a
disk, log on to one node in the cluster, then use the vxdiskadm program to initialize multiple
disks, or use the vxdisksetup command to initialize one disk at a time, as in the following
example:
/usr/lib/vxvm/bin/vxdisksetup -i sda
5.1.13.3 Initializing Disks Previously Used by LVM
If a physical disk has been previously used with LVM, you must use the pvremove command to
delete the LVM header data from all the disks in the volume group.
NOTE: These commands make the disk and its data unusable by LVM and allow it to be initialized
by VxVM. (The commands should only be used if you have previously used the disk with LVM and
do not want to save the data on it.)
You can remove LVM header data from the disk as in the following example (note that all data on
the disk are erased):
pvremove /dev/sda
Then, use the vxdiskadm program to initialize multiple disks for VxVM or use the vxdisksetup
command to initialize one disk at a time, as in the following example:
/usr/lib/vxvm/bin/vxdisksetup -i sda
5.1.13.4 Creating Disk Groups
NOTE: You can use cmpreparestg (1m) to create a VxVM disk group. If you use
cmpreparestg, you do not need to perform the procedures that follow, but it is a good idea to
read them so that you understand what cmpreparestg does for you.
Use vxdiskadm or use the vxdg command, to create disk groups, as in the following example:
vxdg init logdata sda
Verify the configuration with the following command:
vxdg list
NAME STATE ID
logdata enabled 972078742.1084.node1
5.1.13.4.1 Propagation of Disk Groups in VxVM
A VxVM disk group can be created on any node, whether the cluster is up or not. You must validate
the disk group by trying to import it on each node.
5.1.13.5 Creating Logical Volumes
NOTE: You can create a single logical volume or multiple logical volumes using cmpreparestg
(1m). If you use cmpreparestg, you can skip this step, but it is a good idea to read them so
that you understand what cmpreparestg does for you.
Use the vxassist command to create logical volumes. The following is an example:
vxassist -g logdata make log_files 1024m
This command creates a 1024 MB volume named log_files in a disk group named logdata.
The volume can be referenced with the block device file /dev/vx/dsk/logdata/log_files
or the raw (character) device file /dev/vx/rdsk/logdata/log_files. Verify the configuration
with the following command:
162 Building an HA Cluster Configuration