Using Serviceguard Extension for RAC, 8th Edition, March 2009

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:
# /etc/vx/bin/vxdisksetup -i c4t4d0
Create the Disk Group 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 c4t4d0
4. Creating Volumes and Adding a Cluster Filesystem
# vxassist -g ops_dg make vol1 10240m
#vxassist -g ops_dg make vol2 10240m
# vxassist -g ops_dg make volsrvm 300m
5. View the Configuration
# cmviewcl
CLUSTER STATUS
ever3_cluster up
NODE STATUS STATE
ever3a up running
ever3b up running
MULTI_NODE_PACKAGES
PACKAGE STATUS STATE AUTO_RUN SYSTEM
SG-CFS-pkg up running enabled yes
IMPORTANT: After creating these files, use the vxedit command to change the ownership of
the raw volume files to oracle and the group membership to dba, and to change the permissions
to 660. Example:
# cd /dev/vx/rdsk/ops_dg
# vxedit -g ops_dg set user=oracle *
# vxedit -g ops_dg set group=dba *
# vxedit -g ops_dg set mode=660 *
The logical volumes are now available on the primary node, and the raw logical volume names
can now be used by the Oracle DBA.
Mirror Detachment Policies with CVM
The required CVM disk mirror detachment policy is ‘global’, which means that as soon as one
node cannot see a specific mirror copy (plex), all nodes cannot see it as well. The alternate policy
is ‘local’, which means that if one node cannot see a specific mirror copy, then CVM will deactivate
access to the volume for that node only.
This policy can be re-set on a disk group basis by using the vxedit command, as follows:
# vxedit set diskdetpolicy=global <DiskGroupName>
Creating a Storage Infrastructure with CVM 99