Sun Cluster 3.0 System Administration Guide

3.3.4 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.3 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 VxVM disk groups. Once a disk group is created and registered, only disks which can be initialized should be added to the disk group.

  1. Become superuser on a 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 will switch over all resource groups and device groups from the node to the next preferred node. Then shutdown(1M) is used to shut down and restart the node.


    # scswitch -S -h node
    # shutdown -g 0 -i 6 -y
    
  5. If necessary, switch all resource groups, and device groups back.

    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 node -D devgrp1 [ ,devgrp2,... ]
    # scswitch -z -h node -g resgrp1 [ ,resgrp2,... ]

3.3.4.1 Where to Go From Here

The VxVM disk group must be registered as a Sun Cluster disk device group. See "3.3.8 How to Register a Disk Group as a Disk Device Group (VERITAS Volume Manager)".