Managing Serviceguard 13th Edition, February 2007
Building an HA Cluster Configuration
Creating the Storage Infrastructure and Filesystems with LVM and VxVM
Chapter 5 217
Initializing Disks for VxVM
You need to initialize the physical disks that will be 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 c0t3d2
Initializing Disks Previously Used by LVM
If a physical disk has been previously used with LVM, you should use the
pvremove command to delete the LVM header data from all the disks in
the volume group. In addition, if the LVM disk was previously used in a
cluster, you have to re-initialize the disk with the pvcreate -f command
to remove the cluster ID from the disk.
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 will be erased):
# pvremove /dev/rdsk/c0t3d2
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 c0t3d2
Creating Disk Groups
Use vxdiskadm, or use the vxdg command, to create disk groups, as in
the following example:
# vxdg init logdata c0t3d2
Verify the configuration with the following command:
# vxdg list