Managing Devices in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

SPARC: How to Remove a SCSI Device

  1. Identify the current SCSI configuration.
    # cfgadm -al
  2. Remove the SCSI device from the system.
    1. Type the following command.
      # cfgadm -x remove_device device
    2. Type y at the prompt to proceed.

      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. Confirm that the operation has been completed.

    Note -  This step must be performed if you are removing a SCSI RAID device from a SCSI RAID array.
  3. Verify that the device has been removed from the system.
    # cfgadm -al
Example 2-3  Removing a SCSI Device

In this example, the disk c3t3d0 is removed.

# cfgadm -al
Ap_Id            Type         Receptacle   Occupant     Condition
c2               scsi-bus     connected    configured   unknown
c2::dsk/c2t0d0   CD-ROM       connected    configured   unknown
c3               scsi-sas     connected    configured   unknown
c3::dsk/c3t0d0   disk         connected    configured   unknown
c3::dsk/c3t1d0   disk         connected    configured   unknown
c3::dsk/c3t2d0   disk         connected    configured   unknown
c3::dsk/c3t3d0   disk         connected    configured   unknown

# cfgadm -x remove_device c3::dsk/c3t3d0
Removing SCSI device: /devices/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@3,0
This operation will suspend activity on SCSI bus: c3
Continue (yes/no)? y
SCSI bus quiesced successfully.
It is now safe to proceed with hotplug operation.

After power to the device has been turned off and the device is removed, the operation continues with a prompt.

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

# cfgadm -al
Ap_Id            Type         Receptacle   Occupant     Condition
c2               scsi-bus     connected    configured   unknown
c2::dsk/c2t0d0   CD-ROM       connected    configured   unknown
c3               scsi-sas     connected    configured   unknown
c3::dsk/c3t0d0   disk         connected    configured   unknown
c3::dsk/c3t1d0   disk         connected    configured   unknown
c3::dsk/c3t2d0   disk         connected    configured   unknown