Sun Cluster 3.1 - 3.2 With Sun StorEdge A3500FC System Manual for Solaris OS

ProcedureHow to Reset the LUN Configuration

Use this procedure to completely remove and reset the LUN configuration.


Caution – Caution –

If you reset a LUN configuration, a new device ID number is assigned to LUN 0. This change occurs because the software assigns a new world wide name (WWN) to the new LUN.


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 RBAC authorization.

  1. From one node that is connected to the storage array or storage system, determine the paths to the LUNs you are resetting.


    # format
    

    For example:


    phys-schost-1# format
    Searching for disks...done
    AVAILABLE DISK SELECTIONS:
    0. c0t5d0 <SYMBIOS-StorEdgeA3500FCr-0301 cyl3 alt2 hd64 sec64>
    /pseudo/rdnexus@0/rdriver@5,0
    1. c0t5d1 <SYMBIOS-StorEdgeA3500FCr-0301 cyl2025 alt2 hd64 sec64>
    /pseudo/rdnexus@0/rdriver@5,1
  2. If a volume manager does not manage the LUNs on the controller module that you are resetting, proceed to Step 4.

  3. If a volume manager manages the LUNs on the controller module that you are resetting, remove the LUN from any diskset or disk group.

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

    You must completely remove LUNs that were managed by VERITAS Volume Manager from Veritas Volume Manager control before you can delete the LUNs.


    # vxdisk offline cNtXdY
    # vxdisk rm cNtXdY
    
  4. On one node, reset the LUN configuration.

    For the procedure about how to reset the LUN configuration, see the Sun StorEdge RAID Manager User’s Guide.

  5. Use the format command to label the new LUN 0.

  6. Remove the paths to the old LUNs you reset.


    # rm /dev/rdsk/cNtXdY*
    # rm /dev/dsk/cNtXdY*
    
    # rm /dev/osa/dev/dsk/cNtXdY*
    # rm /dev/osa/dev/rdsk/cNtXdY*
    
  7. On both nodes, update device namespaces.


    # devfsadm -C
    
  8. On both nodes, remove all obsolete device IDs.

    • 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
      
  9. Move all resource groups and device groups off the node.

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


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


      # scswitch -S -h from-node
      
  10. Shut down the node.

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

  11. To create the new Solaris device files and links, perform a reconfiguration boot by adding -r to your boot instruction.

    If an error message like the following appears, ignore it. Continue with the next step.

    device id for '/dev/rdsk/c0t5d0' does not match physical disk's id.

  12. After the node reboots and joins the cluster, repeat Step 6 through Step 11 on the other node. This node is attached to the storage array or storage system.

    The device ID number for the original LUN 0 is removed. A new device ID is assigned to LUN 0.