All commands for reference purposes are in the link below. Available commands will vary by firmware version.
https://www.ibm.com/docs/fi/v3700/7.8.1?topic=interface-array-commands
Do this to fail-out disks before removal:
svctask chdrive -allowdegraded -use failed XX (where XX is the drive unit number determined in the GUI)
Do this to clear failed-out disks from the GUI:
svctask chdrive -use failed XX (where XX is the drive ID unit number)
svctask chdrive -use unused XX
Do this to mark added disks as candidate disk:
svctask chdrive -use candidate XX (where XX is drive ID unit number)
Do this to clear dump space after failed firmware upgrade, before re-attempting the upgrade:
cleardumps -prefix /dumps
cleardumps -prefix /home/admin/upgrade