Sun Cluster 3.1 - 3.2 Hardware Administration Manual for Solaris OS

ProcedureHow to Remove an Internal Disk Mirror

  1. If necessary, prepare the node for removing the mirror.

    1. Determine the resource groups and device groups that are running on the node.

      Record this information because you use this information later in this procedure to return resource groups and device groups to the node.

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


        # clresourcegroup status -n nodename
        # cldevicegroup status -n nodename
        
      • If you are using Sun Cluster 3.1, use the following command:


        # scstat
        
    2. If necessary, move all resource groups and device groups off the node.

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


        # clnode evacuate fromnode
        
      • If you are using Sun Cluster 3.1, use the following command:


        # scswitch -S -h fromnode
        
  2. Remove the internal mirror.


    # raidctl -d clt0d0
    
    -d clt0d0

    Deletes the mirror of primary disk to the mirror disk. Enter the name of your primary disk as the argument.

  3. Boot the node into single user mode.


    # reboot -- -S
    
  4. Clean up the device IDs.

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


      # cldevice repair /dev/rdsk/clt0d0 /dev/rdsk/clt1d0
      
      /dev/rdsk/clt0d0 /dev/rdsk/clt1d0

      Updates the cluster's record of the device IDs. Enter the names of your disks separated by spaces.

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


      # scdidadm -R /dev/rdsk/clt0d0
      # scdidadm -R /dev/rdsk/clt1d0
      
      -R /dev/rdsk/clt0d0
      -R /dev/rdsk/clt1d0

      Updates the cluster's record of the device IDs. Enter the names of your disks separated by spaces.

  5. Confirm that the mirror has been deleted and that both disks are visible.

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


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


      # scdidadm -l
      

    The command lists both disks as visible to the cluster.

  6. Boot the node back into cluster mode.


    # reboot
    
  7. If you are using Solaris Volume Manager and if the state database replicas are on the primary disk, recreate the state database replicas.


    # metadb -c 3 -ag /dev/rdsk/clt0d0s4
    
  8. If you moved device groups off the node in Step 1, restore the device groups 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
      
  9. If you moved resource groups off the node in Step 1, restore the resource groups and device groups to the original node.

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

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


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

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

      resourcegroup[ resourcegroup2 …]

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

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


      # scswitch -z -g resourcegroup -h nodename