This procedure is only for encapsulating disks. If you are initializing disks, use the procedure How to Create a New Disk Group When Initializing Disks (Veritas Volume Manager).
You can convert nonroot disks to Sun Cluster device groups by encapsulating the disks as VxVM disk groups, then registering the disk groups as Sun Cluster device groups.
Disk encapsulation is only supported during initial creation of a VxVM disk group. After a VxVM disk group is created and registered as a Sun Cluster device group, only disks which can be initialized should be added to the disk group.
If you use VxVM to set up shared disk groups for Oracle RAC, use the cluster functionality of VxVM as described in the Veritas Volume Manager Administrator's Reference Guide.
The phys-schost# prompt reflects a global-cluster prompt. Perform this procedure on a global cluster.
This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix B, Sun Cluster Object-Oriented Commands.
Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization on any node of the cluster.
If the disk being encapsulated has file system entries in the /etc/vfstab file, make sure that the mount at boot option is set to no.
Set back to yes after the disk is encapsulated and registered as a Sun Cluster device group.
Encapsulate the disks.
Use vxdiskadm menus or the graphical user interface to encapsulate the disks. VxVM requires two free partitions as well as unassigned cylinders at the beginning or the end of the disk. Slice two must also be set to the entire disk. See the vxdiskadm man page for more information.
Shut down and restart the node.
The clnode evacuate command switches over all resource groups and device groups including all non-voting nodes in a global cluster from the specified node to a next-preferred node. Use the shutdown command to shut down and restart the node.
# clnode evacuate node[,...] # shutdown -g0 -y -i6
If necessary, switch all resource groups and device groups back to the original node.
If the resource groups and device groups were initially configured to fail back to the primary node, this step is not necessary.
# cldevicegroup switch -n node devicegroup # clresourcegroup switch -z zone -n node resourcegroup
The name of the node.
The name of the non-voting node, node, that can master the resource group. Specify zone only if you specified a non-voting node when you created the resource group.
Register the VxVM disk group as a Sun Cluster device group.
Do not register the Oracle RAC shared disk groups with the cluster framework.
If you set the mount at boot option to no in Step 2, set it back to yes.