An HDD has two redundant ports. You must unconfigure both ports.
In this step we arbitrarily choose to start with c5, which is shown in Locate an HDD. The cfgadm command requires an Ap_Id, and for c5 the Ap_Id is c5::w5000cca02505cc12,0.
# cfgadm -c unconfigure c5::w5000cca02505cc12,0
Caution - The blue Ready to Remove LED lights on the HDD if this first step is successful. However, the HDD is not ready for removal at this point. Do not remove the HDD until both ports are unconfigured.
# cfgadm -c unconfigure Ap_Id cfgadm: Hardware specific failure: failed to unconfigure SCSI device: I/O error
If the error appears, you must quiesce the HDD and unconfigure it fully before attempting to remove the drive. See HDD and SSD Hot-Plug Capabilities.
In this step we unconfigure c13, which has the Ap_Id c13::w5000cca02505cc11,0.
# cfgadm -c unconfigure c13::w5000cca02505cc11,0
Caution - If one operation fails and another succeeds, the blue Ready to Remove LED might be lit but the HDD is not ready for removal until both ports are unconfigured.
# format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c0t5000CCA025048FD0d0 <HITACHI-H106060SDSUN600G-A2B0 cyl 64986 alt 2 hd 27 sec 668> solaris /scsi_vhci/disk@g5000cca025048fd0 /dev/chassis/SPARC_M5-32.AK00056255//SYS/IOU1/HDD0/disk ...
The selected drive should have disappeared from the output when compared to the output before the unconfigure operation. For example, if the format command listed eight drives before the unconfigure command, you should see seven drives now.
# cfgadm -al Ap_Id Type Receptacle Occupant Condition ... c5 scsi-sas connected configured unknown c5::w5000cca02505cc12,0 disk-path connected unconfigured unknown ... c13 scsi-sas connected configured unknown c13::w5000cca02505cc11,0 disk-path connected unconfigured unknown ...
The output should display paths for both ports. The HDD is ready to remove when both paths show unconfigured.
See Remove an HDD.