Go to main content

Oracle® Solaris Cluster Hardware Administration Manual

Exit Print View

Updated: February 2017
 
 

How 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.

      Use the following command:

      # clresourcegroup status -n nodename
      # cldevicegroup status -n nodename
    2. If necessary, move all resource groups and device groups off the node.
      # clnode evacuate 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.

    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.

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

    The command lists both disks as visible to the cluster.

  6. Boot the node back into cluster mode.
    # shutdown -g 0 -i 0 -y
    ok> boot
  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.
    # cldevicegroup switch -n nodename devicegroup1 devicegroup2
    –n nodename

    The node where you are restoring device groups.

    devicegroup1[ devicegroup2 …]

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

  9. If you moved resource groups off the node in Step 1, restore the resource groups and device groups to the original node.

    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.