Sun Cluster 3.0 System Administration Guide

3.3.8 How to Register a Disk Group as a Disk Device Group (VERITAS Volume Manager)

This procedure uses the scsetup(1M) utility to register the associated VxVM disk group as a Sun Cluster disk device group.


Note -

Once a disk device group has been registered, if you make a change to the VxVM disk group or volume, use the procedure "3.3.9 How to Register Disk Group Configuration Changes (VERITAS Volume Manager)" to register the disk device group configuration changes. This will ensure that the global namespace is in the correct state.


The prerequisites to register a VxVM disk device group are:

When you define the preference order, you also specify whether you want the disk device group to be switched back to the most preferred node in the event that the most preferred node goes down and later returns to the cluster.

See scconf(1M) for more information on node preference and failback options.

  1. Become superuser on a node of the cluster.

  2. Enter the scsetup utility.


    # scsetup
    

    The Main Menu appears.

  3. To work with VxVM disk device groups, enter 3 (Device groups and volumes).

    The Device Groups Menu appears.

  4. To register a VxVM disk device group, enter 1 (Register a VxVM disk group as a device group).

    Follow the instructions and enter the VxVM disk group to be registered as a Sun Cluster disk device group. If you encounter the following error while attempting to register the disk device group, use the procedure "3.3.7 How to Assign a New Minor Number to a Disk Device Group (VERITAS Volume Manager)". This procedure will enable you to assign a new minor number that does not conflict with a minor number used by existing disk device groups.


    scconf: Failed to add device group - in use

  5. Verify that the disk device group has been registered and brought online.

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


    # scstat -D
    

3.3.8.1 Example--Registering a VERITAS Volume Manager Disk Device Group

The following example shows the scconf command generated by scsetup when it registers a VxVM disk device group (dg1), and the verification step. This example assumes that the VxVM disk group and volume were created previously.


# scconf -a -D type=vxvm,name=dg1,nodelist=phys-schost-1:phys-schost-2
# scstat -D
-- Device Group Servers --
 
                         Device Group        Primary             Secondary
                         ------------        -------             ---------
Device group servers:    dg1                 phys-schost-1       phys-schost-2
 
-- Device Group Status --
 
                              Device Group        Status              
                              ------------        ------              
  Device group status:        dg1                Online

3.3.8.2 Where to Go From Here

To create a cluster file system on the VxVM disk device group, see "3.4.1 How to Add an Additional Cluster File System". If there are problems with the minor number, see "3.3.7 How to Assign a New Minor Number to a Disk Device Group (VERITAS Volume Manager)".