Platform Notes: Sun Enterprise 250 Server

Solstice DiskSuite

The following procedure describes how to deconfigure a disk in use by Solstice DiskSuite software. For more information, refer to the Solstice DiskSuite documentation.

  1. Back up your system.

  2. Type su and your superuser password.

  3. Identify metadevices or applications using the device you plan to remove.

    For example:


    # metadb | grep c0t11d0
    # metastat | grep c0t11d0
    # mount | grep c0t11d0
    

  4. Delete database replicas.

    If there are database replicas on the disk, these must be deleted. For example:


    # metadb -d c0t11d0s0
    

  5. Replace slices or clear metadevices.

    If any slices of the disk are in use by submirrors or within RAID metadevices, they can be replaced by other available slices. For example:


    # metareplace d20 c0t11d0s1 c0t8d0s1
    

    If there are no replacement slices available, the metadevices must be cleared. For example:


    # metaclear d21
    

  6. Replace slices or clear hotspares.

    If any slices of the disk are used by hotspare pools, they can be replaced by other available slices.


    # metahs -r all c0t11d0s1 c0t8d0s1
    

    For example:

  7. Unmount any file systems on the disk.


    Note -

    If the file system(s) are on a disk that is failing or has failed, the umount operation may not complete. A large number of error messages may be displayed in the system console and in the /var directory during the umount operation. If the umount operation does not complete, you may have to restart the system.


    For each file system, type:


     # umount file_system
    

    For example:


    # umount /export/home
    # umount /export/home1
    

    Refer to the Solstice DiskSuite documentation for more information.

  8. Use the ssaadm remove_device command to take the device offline:


    # ssaadm remove_device logical_device_name
    ssaadm: warning: can't quiesce "/dev/rdsk/c0t11d0s2": I/O error
    Bus is ready for the removal of device
    Remove device and reconfigure bus as needed
    Press RETURN when ready to continue

    Here, logical_device_name is the full logical device name for the drive to be removed (/dev/rdsk/c0t11d0s2, for example). You must specify slice 2, which represents the entire disk. Note that this command also accepts a physical device name as an alternative.

    You can safely ignore the warning message since the Enterprise 250 SCSI bus does not require quiescing.

  9. Remove the disk drive from its slot.

    Refer to the Sun Enterprise 250 Server Owner's Guide for drive removal instructions.

  10. Press Return to complete the hot-plug operation.

The ssaadm command deletes the symbolic links for the device in the /dev/dsk, and /dev/rdsk hierarchies.