Sample Configurations with SGeRAC and Oracle RAC 10gR2, March 2009

31
Create 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 cfsdg1 c4t1d0
Create disk group multi-node package
Add the disk group to the cluster.
# cfsdgadm add cfsdg1 all=sw
Package name "SG-CFS-DG-1" was generated to control the resource
Shared disk group "cfsdg1" was associated to the cluster
Activate disk group
# cfsdgadm activate cfsdg1
Creating volumes and adding a Cluster File System
# vxassist -g cfsdg1 make vol1 7000m
# vxassist -g cfsdg1 make vol2 7000m
# vxassist -g cfsdg1 make vol3 300m
# newfs -F vxfs /dev/vx/rdsk/cfsdg1/vol1
version 7 layout
7168000 sectors, 7168000 blocks of size 1024, log size 16384 blocks
largefiles supported
# newfs -F vxfs /dev/vx/rdsk/cfsdg1/vol2
version 7 layout
7168000 sectors, 7168000 blocks of size 1024, log size 16384 blocks
largefiles supported
# newfs -F vxfs /dev/vx/rdsk/cfsdg1/vol3
version 7 layout
307200 sectors, 307200 blocks of size 1024, log size 1024 blocks
largefiles supported
Configure mount point
# cfsmntadm add cfsdg1 vol1 /cfs/mnt1 all=rw
Package name "SG-CFS-MP-1" was generated to control the resource
Mount point "/cfs/mnt1" was associated to the cluster
# cfsmntadm add cfsdg1 vol2 /cfs/mnt2 all=rw
Package name "SG-CFS-MP-2" was generated to control the resource
Mount point "/cfs/mnt2" was associated to the cluster
# cfsmntadm add cfsdg1 vol3 /cfs/mnt3 all=rw
Package name "SG-CFS-MP-3" was generated to control the resource
Mount point "/cfs/mnt3" was associated to the cluster
Mounting Cluster File System
# cfsmount /cfs/mnt1
# cfsmount /cfs/mnt2
# cfsmount /cfs/mnt3
Check CFS mount points
# bdf | grep cfs
/dev/vx/dsk/cfsdg1/vol1