Drive Replacement - Offline or Spare with CLI
Depending on code commands could be either disk or drive. Pressing tab a few times from the cli prompt will show available commands where syntax can be verified.
Replacing offline / spare drives with the CLI
- Identify failed drives
lsdrive
- Capture details of the drive (enclosure and slot), verify status is offline / spare
lsdrive <drive id>
- Mark the drive as failed
svctask chdrive -use failed <drive id>
- Physically replace the drive
- Identify the new drive
lsdrive
The drive ID may have changed if there was a skipped drive id or ghost drive
- Bring the drive back into the RAID group
svctask chdrive -use candidate <drive id>
svctask chdrive -use spare <drive id>
- Verify drive is a part of an mdisk
lsdrive <drive id>
- Check array rebuild process
lsarraymemberprogress