System Administration Guide: Devices and File Systems

ProcedureSPARC: How to Remove a SCSI Device

The following procedure uses SCSI disk c1t4d0 in the example of removing a device on a SCSI controller.

  1. Become superuser.

  2. Identify the current SCSI configuration.


    # cfgadm -al
    Ap_Id                Type          Receptacle   Occupant     Condition
    c0                   scsi-bus      connected    configured   unknown
    c0::dsk/c0t0d0       disk          connected    configured   unknown
    c0::rmt/0            tape          connected    configured   unknown
    c1                   scsi-bus      connected    configured   unknown
    c1::dsk/c1t3d0       disk          connected    configured   unknown
    c1::dsk/c1t4d0       disk          connected    configured   unknown
  3. Remove the SCSI device from the system.

    1. Type the following cfgadm command.

      For example:


      # cfgadm -x remove_device c1::dsk/c1t4d0
      Removing SCSI device: /devices/sbus@1f,0/SUNW,fas@1,8800000/sd@4,0
      This operation will suspend activity on SCSI bus: c1
    2. Type y at the Continue (yes/no)? prompt to proceed.


      Continue (yes/no)? y
      SCSI bus quiesced successfully.
      It is now safe to proceed with hotplug operation.

      I/O activity on the SCSI bus is suspended while the hot-plug operation is in progress.

    3. Power off the device to be removed and remove it.

    4. Type y at the Enter y if operation is complete or n to abort (yes/no)? prompt.


      Enter y if operation is complete or n to abort (yes/no)? y
      

    Note –

    This step must be performed if you are removing a SCSI RAID device from a SCSI RAID array.


  4. Verify that the device has been removed from the system.


    # cfgadm -al
    Ap_Id                Type          Receptacle   Occupant     Condition
    c0                   scsi-bus      connected    configured   unknown
    c0::dsk/c0t0d0       disk          connected    configured   unknown
    c0::rmt/0            tape          connected    configured   unknown
    c1                   scsi-bus      connected    configured   unknown
    c1::dsk/c1t3d0       disk          connected    configured   unknown