Sun Cluster 3.0 U1 System Administration Guide

3.3.6 How to Create a New Disk Group When Encapsulating Disks (VERITAS Volume Manager)


Note -

This procedure is only for encapsulating disks. If you are initializing disks, use the procedure "3.3.5 How to Create a New Disk Group When Initializing Disks (VERITAS Volume Manager)".


You can make non-root disks into Sun Cluster disk device groups by first encapsulating them as VxVM disk groups, then registering them as Sun Cluster disk device groups.

Disk encapsulation is only supported during initial creation of a VxVM disk group. Once a VxVM disk group is created and registered as a Sun Cluster disk device group, only disks which can be initialized should be added to the disk group.

  1. Become superuser on any node of the cluster.

  2. 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.

    This can be set back to yes once the disk has been encapsulated and registered as a Sun Cluster disk device group.

  3. 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 2 must also be set to the entire disk. See the vxdiskadm(1M) man page for more information.

  4. Shut down and restart the node.

    The scswitch(1M) command switches all resource groups and device groups from the primary node to the next preferred node. Then shutdown(1M) is used to shut down and restart the node.


    # scswitch -S -h nodelist
    # shutdown -g0 -y -i6
    

  5. 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.


    # scswitch -z -h nodelist -D disk-device-group
    # scswitch -z -h nodelist -g resource-group
    

  6. Register the VxVM disk group as a Sun Cluster disk device group.

    See "3.3.10 How to Register a Disk Group as a Disk Device Group (VERITAS Volume Manager)".