The cfgadm command fails for some HBA devices (such as SGX-SAS6-EXT-Z, SGX-SAS6-INT-Z, SG-SAS6-REM-Z). For example:
# cfgadm -c unconfigure Slot1 cfgadm: Component system is busy, try again: unconfigure failed WARNING: (pcieb2): failed to detach driver for the device (mpt_sas9) in the Connection Slot1 WARNING: (pcieb2): failed to detach driver for the device (mpt_sas9) in the Connection Slot1
Workaround: Disable the fault management daemon before running the svcadm unconfigure command.
# svcadm disable fmd # ps -ef |grep fmd ... # cfgadm -c unconfigure PCI-EM0
After completing the cfgadm task, re-enable the fault management daemon.
# svcadm enable fmd