While performing hot-plugging operations with SATA devices, you might see the following error messages.
About non existent file errors
do_control_ioctl: open failed: errno:2 cfgadm: Library error: Cannot open ap_id: /devices/pci@0,0/pci10... No such file or directory
The message might indicate that you are configuring or unconfiguring the device by specifying the device's logical Ap_Id with the cfgadm command, such as sata0/0::dsk/c7t0d0. Use the HBA Ap_Id or controller number instead.
About hardware specific failure
Unconfigure the device at: /devices/pci@2,0/pci1022... This operation will suspend activity on the SATA device Continue (yes/no)? y cfgadm: Hardware specific failure: Failed to unconfig device \ at ap_id: /devices/pci@2,0/pci10...
The message indicates that you are unconfiguring a device that is part of an active ZFS storage pool. Remove that device from the pool first.