Sun Cluster 2.2 System Administration Guide

Replacing Sun StorEdge MultiPack or Sun StorEdge D1000 Enclosures

This section describes how to replace an entire Sun StorEdge MultiPack or Sun StorEdge D1000 enclosure running VxVM.

How to Replace a Sun StorEdge MultiPack or Sun StorEdge D1000 Enclosure (VxVM)

These are the high-level steps for replacing an entire failed Sun StorEdge MultiPack or Sun StorEdge D1000 in a VxVM configuration:

  1. If you are running shared disk groups, determine the master and slave node by entering the following command on all nodes in the cluster:


    # vxdctl -c mode
    


    Note -

    Complete the following steps from the master node.


  2. Remove all the disks on the failed disk enclosure by running the vxdiskadm utility and entering 4 (Remove a disk for replacement).


    Note -

    This option enables you to remove only one disk at a time. Repeat this procedure for each disk.


  3. Enter the list command.

    In the following example, assume that the disk enclosure on controller c2 needs replacement. Based on the list output, the VxVM names for these disks are c2t2d0, c2t3d0, c2t4d0, c2t5d0, c2t8d0, and c2t9d0.


    Remove a disk for replacement
    Menu: VolumeManager/Disk/RemoveForReplace
    
      Use this menu operation to remove a physical disk from a disk
      group, while retaining the disk name.  This changes the state
      for the disk name to a "removed" disk.  If there are any
      initialized disks that are not part of a disk group, you will be
      given the option of using one of these disks as a replacement.
    
    Enter disk name [<disk>,list,q,?] list
    Disk group: rootdg
    
    DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   STATE
    
    ...
    
    Disk group: demo
    
    DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   STATE
    
    dm c1t2d0       c2t2d0s2     sliced   1519     4152640  -
    dm c1t3d0       c2t3d0s2     sliced   1519     4152640  -
    dm c1t4d0       c2t4d0s2     sliced   1519     4152640  -
    dm c1t5d0       c2t5d0s2     sliced   1519     4152640  -
    dm c1t8d0       c2t8d0s2     sliced   1519     4152640  -
    dm c1t9d0       c2t9d0s2     sliced   1519     4152640  -
    dm c2t2d0       c1t2d0s2     sliced   1519     4152640  -
    dm c2t3d0       c1t3d0s2     sliced   1519     4152640  -
    dm c2t4d0       c1t4d0s2     sliced   1519     4152640  -
    dm c2t5d0       c1t5d0s2     sliced   1519     4152640  -
    dm c2t8d0       c1t8d0s2     sliced   1519     4152640  -
    dm c2t9d0       c1t9d0s2     sliced   1519     4152640  -

  4. Enter the disk name (in this example, c2t2d0).


    Enter disk name [<disk>,list,q,?] c2t2d0
    
    
      The following volumes will lose mirrors as a result of this
      operation:
    
            demo-1
    
      No data on these volumes will be lost.
    
      The requested operation is to remove disk c2t2d0 from disk group
      demo.  The disk name will be kept, along with any volumes using
      the disk, allowing replacement of the disk.
    
      Select "Replace a failed or removed disk" from the main menu
      when you wish to replace the disk.

  5. Enter y or press Return to verify that you want to replace the disk.


    Continue with operation? [y,n,q,?] (default: y) <Return>
    
      Removal of disk c2t2d0 completed successfully.

  6. Enter y to continue.


    Remove another disk? [y,n,q,?] (default: n) y
    
    Remove a disk for replacement
    Menu: VolumeManager/Disk/RemoveForReplace
    
      Use this menu operation to remove a physical disk from a disk
      group, while retaining the disk name.  This changes the state
      for the disk name to a "removed" disk.  If there are any
      initialized disks that are not part of a disk group, you will be
      given the option of using one of these disks as a replacement.

  7. Enter the next example disk name, c2t3d0.


    Enter disk name [<disk>,list,q,?] c2t3d0
    
      The following volumes will lose mirrors as a result of this
      operation:
    
            demo-2
    
      No data on these volumes will be lost.
    
    The following devices are available as replacements:
    
            c1t2d0
    
      You can choose one of these disks now, to replace c2t3d0.
      Select "none" if you do not wish to select a replacement disk.

  8. Enter none, if necessary.


    Note -

    This query arises whenever the utility recognizes a good disk in the system. If there are no good disks, you will not see this query.


    Choose a device, or select "none"
    [<device>,none,q,?] (default: c1t2d0) none
    


  9. Enter y or press Return to verify that you want to remove the disk.


    The requested operation is to remove disk c2t3d0 from disk group
      demo.  The disk name will be kept, along with any volumes using
      the disk, allowing replacement of the disk.
    
      Select "Replace a failed or removed disk" from the main menu
      when you wish to replace the disk.
    
    Continue with operation? [y,n,q,?] (default: y) <Return>
    
      Removal of disk c2t3d0 completed successfully.

  10. Repeat Step 6 through Step 9 for each disk you identified in Step 3.

  11. Power off and replace the disk enclosure.

    For more information, refer to the disk enclosure documentation.


    Note -

    As you replace the disk enclosure, you may see messages on the system console similar to those in the following example. Do not become alarmed, as these messages may not indicate a problem. Instead, proceed with the replacement as described in the next section.


    Nov  3 17:44:00 updb10a unix: WARNING: /sbus@1f,0/SUNW,fas@0,8800000/sd@2,0 (sd17):
    Nov  3 17:44:00 updb10a unix:   SCSI transport failed: reason 'incomplete': \
    
    retrying command
    Nov  3 17:44:03 updb10a unix: WARNING: /sbus@1f,0/SUNW,fas@0,8800000/sd@2,0 (sd17):
    Nov  3 17:44:03 updb10a unix:   disk not responding to selection


  12. Power on the disk enclosure.

    For more information, refer to your disk enclosure service manual.

  13. Attach all the disks removed earlier by running the vxdiskadm utility and entering 5 (Replace a failed or removed disk).


    Note -

    This option enables you to replace only one disk at a time. Repeat this procedure for each disk.


  14. Enter the list command to see a list of disk names now in the REMOVED state.


    Replace a failed or removed disk
    Menu: VolumeManager/Disk/ReplaceDisk
    
     Use this menu operation to specify a replacement disk for a disk
     that you removed with the "Remove a disk for replacement" menu
     operation, or that failed during use.  You will be prompted for
     a disk name to replace and a disk device to use as a replacement.
     You can choose an uninitialized disk, in which case the disk will
     be initialized, or you can choose a disk that you have already
     initialized using the Add or initialize a disk menu operation.
    
    Select a removed or failed disk [<disk>,list,q,?] list
    
    Disk group: rootdg
    
    DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   STATE
    
    ...
    
    Disk group: demo
    
    DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   STATE
    
    dm c2t2d0       -            -        -        -        REMOVED
    dm c2t3d0       -            -        -        -        REMOVED
    dm c2t4d0       -            -        -        -        REMOVED
    dm c2t5d0       -            -        -        -        REMOVED
    dm c2t8d0       -            -        -        -        REMOVED
    dm c2t9d0       -            -        -        -        REMOVED

  15. Enter the disk name (in this example, c2t2d0).


    Select a removed or failed disk [<disk>,list,q,?] c2t2d0
    
      The following devices are available as replacements:
    
            c1t2d0s2 c1t3d0s2 c1t4d0s2 c1t5d0s2 c1t8d0s2 c1t9d0s2

    The vxdiskadm utility detects the new devices and asks you whether the new devices should replace the removed devices.

  16. Enter the "replacement" or "new" device name, or if the utility lists the device as the default, press Return.


      You can choose one of these disks to replace c2t2d0.
      Choose "none" to initialize another disk to replace c2t2d0.
    
    Choose a device, or select "none"
    [<device>,none,q,?] (default: c1t2d0s2) <Return>
    

  17. Enter y or press Return to verify that you want this device (in the example, c1t2d0s2) to be the replacement disk.


     The requested operation is to use the initialized device c1t2d0s2
      to replace the removed or failed disk c2t2d0 in disk group demo.
    
    Continue with operation? [y,n,q,?] (default: y) <Return>
    
      Replacement of disk c2t2d0 in group demo with disk device
      c1t2d0s2 completed successfully.

  18. Enter y to continue.


    Replace another disk? [y,n,q,?] (default: n) y
    

Repeat Step 15 through Step 18 for each of the REMOVED/NODEVICE disk names.