Hot swapping sata disks in solaris 10
These are the steps needed to hot plug sata drives with solaris 10. Particularly useful for e-sata.
- Physically connect your (e)sata drive
- Run cfgadm to find your connected device.
- Now execute cfgadm -xsata_port_activate ’sata port’, and answer y when prompted to continue, replacing ’sata port’ with the port your drive is attached to, eg. sata0/5.
[brent@cat ~]$ sudo /usr/sbin/cfgadm -xsata_port_activate sata0/5
Activate the port: /devices/pci@0,0/pci8086,34d0@1f,2:5
This operation will enable activity on the SATA port
Continue (yes/no)? y
- If we run cfgadm again, we can see that the drive is now connected, but unconfigured, so we need to execute cfgadm -cconfigure ‘your port’ to configure the drive
sata0/5::dsk/c0t5d0 disk connected unconfigured ok
[brent@cat ~]$ sudo /usr/sbin/cfgadm -cconfigure sata0/5
- Now if we run cfgadm one last time we can see that the drive is now ready to use
sata0/5::dsk/c0t5d0 disk connected configured ok
When you run the command look for a disconnected & unconfigured device.
sata0/0::dsk/c0t0d0 disk connected configured ok
sata0/1::dsk/c0t1d0 disk connected configured ok
sata0/2::dsk/c0t2d0 disk connected configured ok
sata0/3::dsk/c0t3d0 disk connected configured ok
sata0/4::dsk/c0t4d0 cd/dvd connected configured ok
sata0/5 sata-port disconnected unconfigured failed
In this instance port sata0/5 has the new (e)sata drive.
To remove the drive, simply run cfgadm -cunconfigure ‘your port’ followed by cfgadm -xsata_port_deactivate ‘your port’, answery ‘y’ when prompted.