Before You Begin
Review the following conditions when replacing an identical device on a SCSI controller:
If you are replacing a mirrored or unmirrored boot device that is part of a ZFS root pool, see https://www.oracle.com/technetwork/articles/servers-storage-admin/o11-091-sol-dis-recovery-489183.html.
If the device is controlled by legacy volume management software, consult your volume management documentation for the specific steps to replace a device. If you have an active Oracle support plan, see the following references:
If you are using Solaris Volume Manager (SVM), see MOS document 1010753.1.
If you are using Veritas Volume Manager (VxVM), see MOS document 1003122.1, 1011782.1, and 1002285.1.
# cfgadm -al
# cfgadm -x replace_device device-apid
I/O activity on the SCSI bus is suspended while the hot-plug operation is in progress.
The replacement device should be of the same type and at the same address (target and LUN) as the device to be removed.
# cfgadm -al
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.