Sun Cluster Software Installation Guide for Solaris OS

SPARC: How to Create and Register a Disk Group

Use this procedure to create your VxVM disk groups and volumes.


Note –

After a disk group is registered with the cluster as a disk device group, you should never import or deport a VxVM disk group by using VxVM commands. The Sun Cluster software can handle all cases where disk groups need to be imported or deported. See “Administering Disk Device Groups” in Sun Cluster System Administration Guide for Solaris OS for procedures on how to manage Sun Cluster disk device groups.


Perform this procedure from a node that is physically connected to the disks that make the disk group you add.

  1. Have available the following information.

  2. Become superuser on the node that will have ownership of the disk group.

  3. Create a VxVM disk group and volume.

    If you are installing Oracle Real Application Clusters, create shared VxVM disk groups by using the cluster feature of VxVM as described in the VERITAS Volume Manager Administrator's Reference Guide. Otherwise, create VxVM disk groups by using the standard procedures that are documented in the VxVM documentation.


    Note –

    You can use Dirty Region Logging (DRL) to decrease volume recovery time if a node failure occurs. However, DRL might decrease I/O throughput.


  4. If the VxVM cluster feature is not enabled, register the disk group as a Sun Cluster disk device group.

    If the VxVM cluster feature is enabled, do not register a shared disk group as a Sun Cluster disk device group. Instead, go to SPARC: How to Verify the Disk Group Configuration.

    1. Start the scsetup(1M) utility.


      # scsetup
      

    2. Choose Device groups and volumes.

    3. Choose Register a VxVM disk group.

    4. Follow the instructions to specify the VxVM disk device group that you want to register as a Sun Cluster disk device group.

    5. If you encounter the following error message when you attempt to register the disk device group, reminor the disk device group.


      scconf: Failed to add device group - in use

      To reminor the disk device group, use the procedure SPARC: How to Assign a New Minor Number to a Disk Device Group. This procedure enables you to assign a new minor number that does not conflict with a minor number used by existing disk device groups.

    6. When finished, quit the scsetup utility.

    7. Verify that the disk device group is registered.

      Look for the disk device information for the new disk that is displayed by the following command.


      # scstat -D
      


      Tip –

      If you experience a stack overflow when the disk device group is brought online, the default value of the thread stack size might be insufficient. Add the following entry to the /etc/system file on each node, where size is a number greater than 8000, the default setting:


      set cl_comm:rm_thread_stacksize=0xsize
      



    Note –

    If you change any configuration information for a VxVM disk group or volume, you must register the configuration changes by using the scsetup utility. Configuration changes you must register include adding or removing volumes and changing the group, owner, or permissions of existing volumes. See “Administering Disk Device Groups” in Sun Cluster System Administration Guide for Solaris OS for procedures to register configuration changes to a disk device group.


  5. Go to SPARC: How to Verify the Disk Group Configuration.