Using Serviceguard Extension for RAC, 6th Edition, April 2008
Initializing Disks for CVM
You need to initialize the physical disks that will be employed in CVM disk groups. 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 (this
is not necessary if you have not previously used the disk with LVM).
To initialize a disk for CVM, log on to the master node, 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 /dev/dsk/c0t3d2
Creating Disk Groups for RAC
Use the vxdg command to create disk groups. Use the -s option to specify shared mode,
as in the following example:
# vxdg -s init ops_dg c0t3d2
Verify the configuration with the following command:
# vxdg list
NAME STATE ID
rootdg enabled 971995699.1025.node1
ops_dg enabled,shared 972078742.1084.node2
Creating Volumes
Use the vxassist command to create logical volumes. The following is an example:
# vxassist -g ops_dg make log_files 1024m
This command creates a 1024 MB volume named log_files in a disk group named
ops_dg. The volume can be referenced with the block device file
/dev/vx/dsk/ops_dg/log_files or the raw (character) device file
/dev/vx/rdsk/ops_dg/log_files.
Verify the configuration with the following command:
# vxdg list
78 Serviceguard Configuration for Oracle 10g RAC