Sun Cluster 2.2 System Administration Guide

14.3.5 How to Replace a Sun StorEdge A5000 Disk (SSVM or CVM)

  1. Identify all volumes or applications using the failing disk.

    If the volumes are mirrored or RAID5, the disk can be replaced without stopping the volume. Otherwise all I/O to the disk must be stopped using the appropriate commands. For example, use the umount(1M) command to unmount a file system on a stripe or concatenation.

  2. Use the vxdiskadm command to replace and offline a disk device.

    For SSVM, perform these commands on the machine mastering the logical host owning the disk group.

    Enter 4 (Remove a disk for replacement), then enter 11 (Disable [offline] a disk device).

    You can also use the graphical user interface if desired.

  3. Use the luxadm command to remove the device and device nodes.

    This command is interactive and will prompt you to physically remove the disk. For example:

    # luxadm remove_device -F /dev/rdsk/c2t20d0s2
    

    Perform the command on every node connected to the array.

  4. Physically replace the disk, then use the luxadm command to insert the new disk.

    This creates the new device and device nodes. For example:

    # luxadm insert_device ratbert,r4
    

    Perform the command on every node connected to the array.

  5. Notify the volume manager of the new disk.

    # vxdctl enable
    
  6. Use the vxdiskadm command to bring the new disk into SSVM control.

    Enter 5 (Replace a failed or removed disk).

  7. (Optional) The volume can now be restored if needed.

    This completes the disk replacement procedure.