Sun Cluster 3.1 - 3.2 With Sun StorEdge or StorageTek 9900 Series Storage Device Manual for Solaris OS

ProcedureHow to Remove a Storage Array

Use this procedure to permanently remove a storage array. This procedure provides the flexibility to remove the host adapters from the nodes that are attached to the storage array that you are removing.

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

If you need to remove a storage array from more than two nodes, repeat Step 15 through Step 23 for each additional node that connects to the storage array.


Caution – Caution –

During this procedure, you lose access to the data that resides on the storage array that you are removing.


Before You Begin

This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands, in Sun Cluster 3.1 - 3.2 Hardware Administration Manual for Solaris OS.

To perform this procedure, become superuser or assume a role that provides solaris.cluster.read and solaris.cluster.modify role-based access control (RBAC) authorization.

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

  2. If the storage array that you plan to remove contains a quorum device, choose and configure another device to be the new quorum device. Then remove the old quorum device.

    To determine whether this logical volume is configured as a quorum device, use one of the following commands.

    • If you are using Sun Cluster 3.2, use the following command:


      #clquorum show
      
    • If you are using Sun Cluster 3.1, use the following command:


      #scstat -q
      

    To add or remove a quorum device in your configuration, see your Sun Cluster system administration documentation.

  3. If necessary, detach the submirrors from the storage array that you are removing in order to stop all I/O activity to the storage array.

    For more information, see your Solaris Volume Manager or Veritas Volume Manager documentation.

  4. Run the appropriate Solaris Volume Manager or Veritas Volume Manager commands to remove the references to the logical volumes from any diskset or disk group.

    For more information, see your Solaris Volume Manager or Veritas Volume Manager documentation.

  5. Are your nodes enabled with the Solaris dynamic reconfiguration (DR) feature?

    • If yes, disconnect the fiber-optic cables and, if desired, remove the host adapters from both nodes. Then perform Step 23 on each node that was connected to the storage array

      For the procedure about how to remove a host adapter, see the documentation that shipped with your host adapter or updated information on the manufacturer's web site.

    • If no, proceed to Step 6.

  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 21 and Step 22 of this procedure to return resource groups and device groups to these nodes.

    • If you are using Sun Cluster 3.2, use the following commands:


      # clresourcegroup status -n NodeA[ NodeB ...] 
      # cldevicegroup status -n NodeA[ NodeB ...]
      
      -n NodeA[ NodeB …]

      The node or nodes for which you are determining resource groups and device groups.

    • If you are using Sun Cluster 3.1, use the following command:


      # scstat
      

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

  7. If you want to remove any multipathing software, remove the multipathing software packages.

  8. Shut down Node A.

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

  9. Disconnect the fiber-optic cable between the storage array and Node A.

  10. If you do not want to remove host adapters from Node A, skip to Step 13.

  11. If you want to remove the host adapter from Node A, power off Node A.

  12. Remove the host adapter from Node A.

    For the procedure about how to remove host adapters, see the documentation that shipped with your host adapter or updated information on the manufacturer's web site.

  13. Power on Node A and allow it to boot into cluster mode.

    For more information, see the documentation that shipped with your server. For more information about how to boot nodes, see Chapter 3, Shutting Down and Booting a Cluster, in Sun Cluster System Administration Guide for Solaris OS.

  14. On Node A, update the device namespace.


    # devfsadm -C
    
  15. Shut down Node B.

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

  16. Disconnect the fiber-optic cable between the storage array and Node B.

  17. If you do not want to remove host adapters from Node B, skip to Step 20.

  18. If you want to remove the host adapter from Node B, power off Node B.

  19. Remove the host adapter from Node B.

    For the procedure about how to remove host adapters, see the documentation that shipped with your server and host adapter.

  20. Power on Node B and allow it to boot into cluster mode.

    For more information, see the documentation that shipped with your server. For more information about how to boot nodes, see Chapter 3, Shutting Down and Booting a Cluster, in Sun Cluster System Administration Guide for Solaris OS.

  21. (Optional) Restore the device groups to the original node.

    Perform the following step for each device group you want to return to the original node.

    • If you are using Sun Cluster 3.2, use the following command:


      # cldevicegroup switch -n nodename devicegroup1[ devicegroup2 ...]
      
      -n nodename

      The node to which you are restoring device groups.

      devicegroup1[ devicegroup2 …]

      The device group or groups that you are restoring to the node.

    • If you are using Sun Cluster 3.1, use the following command:


      # scswitch -z -D devicegroup -h nodename
      
  22. (Optional) Restore the resource groups to the original node.

    Perform the following step for each resource group you want to return to the original node.

    • If you are using Sun Cluster 3.2, use the following command:


      # clresourcegroup switch -n nodename resourcegroup1[ resourcegroup2 …]
      
      nodename

      For failover resource groups, the node to which the groups are returned. For scalable resource groups, the node list to which the groups are returned.

      resourcegroup1[ resourcegroup2 …]

      The resource group or groups that you are returning to the node or nodes.

    • If you are using Sun Cluster 3.1, use the following command:


      # scswitch -z -g resourcegroup -h nodename
      
  23. On Node B, update the device namespace.


    # devfsadm -C
    
  24. Repeat Step 15 through Step 22 for each additional node that connects to the storage array.

  25. From one node, remove device ID references to the storage array that was removed.

    • If you are using Sun Cluster 3.2, use the following command:


      # cldevice clear
      
    • If you are using Sun Cluster 3.1, use the following command:


      # scdidadm -C