Go to main content

Managing Devices in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020
 
 

SPARC: How to Replace an Identical Device on a SCSI Controller

Before You Begin

Note the following conditions when replacing an identical device on a SCSI controller:

  1. (Optional) Display the SCSI configuration to identify the device to be replaced.
    # cfgadm -al
  2. Replace a device on the SCSI bus with another device of the same type.
    1. Indicate the device to be replaced.
      # cfgadm -x replace_device device-apid
    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. Add the replacement device and power it on.

      The replacement device should be of the same type and at the same address (target and LUN) as the device to be removed.

    5. At the prompt that appears, type y to confirm that the operation has been completed.
  3. Verify that the device has been replaced.
    # cfgadm -al
Example 9  Replacing Devices of the Same Type on a SCSI Bus

In this example, the disk c3t3d0 is replaced by an identical device.

# cfgadm -al
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 replace_device c3::dsk/c3t3d0
Replacing 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.

Power to the device is turned off and the device is replaced. After the replacement device is installed and power is turned on, 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
c3::dsk/c3t3d0   disk         connected    configured   unknownThe device is replaced.