Sun Microsystems
Products & Services
 
Support & Training
 
 

Previous Previous     Contents     Index     Next Next

Administering Disk Device Groups

The scsetup(1M) utility is an interactive interface to the scconf(1M) command. scsetup generates scconf commands. Generated commands are shown in the examples at the end of some procedures.


Note - Sun Cluster software automatically creates a raw disk device group for each disk and tape device in the cluster. However, cluster device groups remain in an offline state until you access the groups as global devices.


Table 4-2 Task List: Administering Disk Device Groups

Task

For Instructions, Go To...

Update the global device namespace without a reconfiguration reboot

- Use scgdevs(1M)

How to Update the Global Device Namespace 

Add Solstice DiskSuite/Solaris Volume Manager disksets and register them as disk device groups

- Use metaset(1M)

How to Add and Register a Disk Device Group (Solstice DiskSuite/Solaris Volume Manager) 

Remove Solstice DiskSuite/Solaris Volume Manager disk device groups from the configuration

- Use metaset and metaclear(1M)

How to Remove and Unregister a Disk Device Group (Solstice DiskSuite/Solaris Volume Manager) 

Remove a node from all disk device groups

- Use scconf, metaset, and scsetup

How to Remove a Node From All Disk Device Groups 

Remove a node from a Solstice DiskSuite/Solaris Volume Manager disk device group

- Use metaset

How to Remove a Node From a Disk Device Group (Solstice DiskSuite/Solaris Volume Manager) 

SPARC: Add VERITAS Volume Manager disk groups as disk device groups

- Use VxVM commands and scsetup(1M)

SPARC: How to Create a New Disk Group When Initializing Disks (VERITAS Volume Manager) 

 

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

 

SPARC: How to Add a New Volume to an Existing Disk Device Group (VERITAS Volume Manager) 

 

SPARC: How to Make an Existing Disk Group Into a Disk Device Group (VERITAS Volume Manager) 

 

SPARC: How to Assign a New Minor Number to a Disk Device Group (VERITAS Volume Manager) 

 

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

 

SPARC: How to Register Disk Group Configuration Changes (VERITAS Volume Manager) 

SPARC: Remove VERITAS Volume Manager disk device groups from the configuration

- Use scsetup (to generate scconf)

SPARC: How to Remove a Volume From a Disk Device Group (VERITAS Volume Manager) 

 

SPARC: How to Remove and Unregister a Disk Device Group (VERITAS Volume Manager) 

SPARC: Add a node to a VERITAS Volume Manager disk device group

- Use scsetup to generate scconf

SPARC: How to Add a Node to a Disk Device Group (VERITAS Volume Manager) 

SPARC: Remove a node from a VERITAS Volume Manager disk device group

- Use scsetup to generate scconf

SPARC: How to Remove a Node From a Disk Device Group (VERITAS Volume Manager) 

Remove a node from a raw disk device group

- Use scconf(1M)

SPARC: How to Remove a Node From a Raw Disk Device Group 

Change disk device group properties

- Use scsetup to generate scconf

How to Change Disk Device Properties 

Display disk device groups and properties

- Use scconf

How to List a Disk Device Group Configuration 

Change the desired number of secondaries for a device group

- Use scsetup to generate scconf

How to Change the Desired Number of Secondaries for a Device Group 

Switch the primary for a disk device group

- Use scswitch(1M)

How to Switch the Primary for a Device Group 

Put a disk device group in maintenance state

- Use metaset or vxdg

How to Put a Disk Device Group in Maintenance State 

ProcedureHow to Update the Global Device Namespace

When adding a new global device, manually update the global device namespace by running scgdevs(1M).


Note - The scgdevs command does not have any effect if the node that is running the command is not currently a cluster member. The command also has no effect if the /global/.devices/node@nodeID file system is not mounted.


  1. Become superuser on any node of the cluster.

  2. Use the scgdevs command to reconfigure the namespace.
    # scgdevs

Example--Updating the Global Device Namespace

The following example shows output generated by a successful run of scgdevs.

# scgdevs 
Configuring the /dev/global directory (global devices)...
obtaining access to all attached disks
reservation program successfully exiting

ProcedureHow to Add and Register a Disk Device Group (Solstice DiskSuite/Solaris Volume Manager)

Use the metaset command to create a Solstice DiskSuite/Solaris Volume Manager diskset and register the disk set as a Sun Cluster disk device group. When you register the diskset, the name that you assigned to the diskset is automatically assigned to the disk device group.

  1. Become superuser on the node connected to the disks where you want to create the diskset.

  2. Calculate the number of metadevice names needed for your configuration, and modify the /kernel/drv/md.conf file on each node.

    See "How to Set the Number of Metadevice Names and Disksets " in the Sun Cluster Software Installation Guide for Solaris OS.

  3. Use the metaset(1M)command to add the Solstice DiskSuite/Solaris Volume Manager diskset and register it as a disk device group with Sun Cluster.
    # metaset -s diskset -a -h nodelist

    -s diskset

    Specifies the diskset to be created.

    -a -h nodelist

    Adds the list of nodes that can master the diskset.


    Note - Running the metaset command to set up a Solstice DiskSuite/Solaris Volume Manager device group on a cluster results in one secondary by default, regardless of the number of nodes that are included in that device group. You can change the desired number of secondary nodes by using the scsetup(1M) utility after the device group has been created. Refer to How to Change the Desired Number of Secondaries for a Device Group for more information about disk failover.


  4. Verify that the disk device group has been added.

    The disk device group name matches the diskset name that is specified with metaset.
    # scconf -p | grep disk-device-group

Example--Adding a Solstice DiskSuite/Solaris Volume Manager Disk Device Group

The following example shows the creation of the diskset and disk device group and verifies that the disk device group has been created.

# metaset -s dg-schost-1 -a -h phys-schost-1
# scconf -p | grep dg-schost-1
Device group name: dg-schost-1

How to Remove and Unregister a Disk Device Group (Solstice DiskSuite/Solaris Volume Manager)

Disk device groups are Solstice DiskSuite/Solaris Volume Manager disksets that have been registered with Sun Cluster. To remove a Solstice DiskSuite/Solaris Volume Manager disk device group, use the metaclear and metaset commands. These commands remove the disk device group with the same name and unregister the disk group as a Sun Cluster disk device group.

Refer to the Solstice DiskSuite/Solaris Volume Manager documentation for the steps to remove a diskset.

ProcedureHow to Remove a Node From All Disk Device Groups

Use this procedure to remove a cluster node from all disk device groups that list the node in their lists of potential primaries.

  1. Become superuser on the node you want to remove as a potential primary of all disk device groups.

  2. Determine the disk device group(s) of which the node to be removed is a member.

    Look for the node name in the Device group node list for each disk device group.
    # scconf -p | grep ¨Device group"

  3. Are any of the disk device groups identified in Step 2 of the device group type SDS/SVM?

  4. Are any of the disk device groups identified in Step 2 of the device group type VxVM?

  5. Determine the raw disk device groups of which the node to be removed is a member.

    Note that the following command contains two "v"s in -pvv. The second "v" is needed to display raw disk device groups.
    # scconf -pvv | grep ¨Device group¨

  6. Are any of the disk device groups listed in Step 5 of the device group types Disk, Local_Disk, or both?

  7. Verify that the node has been removed from the potential primaries list of all disk device groups.

    The command returns nothing if the node is no longer listed as a potential primary of any disk device group.
    # scconf -pvv | grep ¨Device group¨ | grep nodename

Previous Previous     Contents     Index     Next Next