Sun Cluster 3.0-3.1 With Sun StorEdge 9900 Series Storage Device Manual

ProcedureHow to Remove a Logical Volume

Use this procedure to remove a logical volume. This procedure assumes all nodes are booted and are connected to the storage array. This storage array hosts the logical volume that you are removing.

This procedure defines Node A as the node with which you begin working. Node B is the remaining node.

If you need to remove a storage array from more than two nodes, repeat Step 9 through Step 11 for each additional node. Each node connects to the logical volume.


Caution – Caution –

This procedure destroys all data on the logical volume that you are removing.


Steps
  1. If necessary, back up all data. Migrate all resource groups and disk device groups to another node.

  2. Is the logical volume that you plan to remove configured as a quorum device?


    # scstat -q
    
    • If no, proceed to Step 3.

    • If yes, choose and configure another device to be the new quorum device. Then remove the old quorum device.

      For procedures about how to add and remove quorum devices, see your Sun Cluster system administration documentation.

  3. Run the appropriate Solstice DiskSuite/Solaris Volume Manager commands or VERITAS Volume Manager commands to remove the reference to the logical volume from any diskset or disk group.

    For more information, see your Solstice DiskSuite/Solaris Volume Manager or VERITAS Volume Manager documentation.

  4. If the cluster is running VERITAS Volume Manager, update the list of devices on all nodes. These nodes are attached to the logical volume that you are removing.

    See your VERITAS Volume Manager documentation for information about how to use the vxdisk rm command to remove devices (volumes) in your VERITAS Volume Manager device list.

  5. Remove the logical volume.

    Contact your service provider to remove the logical volume.

  6. Determine the resource groups and device groups that are running on Node A and Node B.

    Record this information because you use this information in Step 11 of this procedure to return resource groups and device groups to these nodes.


    # scstat
    
  7. Shut down and reboot Node A by using the shutdown command with the -i6 option.

    For the procedure about how to shut down and power off a node, see your Sun Cluster system administration documentation.

  8. On Node A, update the /devices and /dev entries.


    # devfsadm -C
    # scdidadm -C
    
  9. Shut down and reboot Node B by using the shutdown command with the -i6 option.

    For the procedure about how to shut down and power off a node, see your Sun Cluster system administration documentation.

  10. On Node B, update the /devices and /dev entries.


    # devfsadm -C
    # scdidadm -C
    
  11. Return the resource groups and device groups that you identified in Step 6 to Node B.


    # scswitch -z -g resource-group -h nodename
    # scswitch -z -D device-group-name -h nodename
    

    For more information, see your Sun Cluster system administration documentation.

  12. Repeat Step 9 through Step 11 for each additional node that connects to the logical volume.

See Also

To create a logical volume, see How to Add a Logical Volume.