SATA Hot-Plugging
cfgadm Command
You can display SATA device information as follows:
gz [ ~ ]# cfgadm -al
Ap_Id Type Receptacle Occupant Condition
sata9/0::dsk/c6t0d0 disk connected configured ok
sata9/1::dsk/c6t1d0 disk connected configured ok
sata9/2::dsk/c6t2d0 disk connected configured ok
sata9/3::dsk/c6t3d0 disk connected configured ok
sata9/4::dsk/c6t4d0 disk connected configured ok
sata9/5::dsk/c6t5d0 disk connected configured ok
sata10/0 sata-port empty unconfigured ok
sata10/1 sata-port empty unconfigured ok
.
How to Unconfigure a SATA Device
SATA devices must be unconfigured before they can be removed and replaced.
- Become an administrator.
- Identify the device to be unconfigured.
# cfgadm -al | grep c6t5d0
sata9/5::dsk/c6t5d0 disk connected configured ok - Unconfigure the device.
# cfgadm -c unconfigure sata9/5
Note only specify disk, not the full path
- Confirm that the device is unconfigured.
# cfgadm | grep sata9/5 sata9/5 disk connected unconfigured ok
How to Configure a SATA Device
- Become an administrator.
- Configure the device.
# cfgadm -c configure sata9/5
- Confirm that the device is configured.
# cfgadm | grep sata9/5 sata9/5::dsk/c6t5d0 disk connected configured ok