Technical Knowledge Base

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

  1. Identify failed drives
lsdrive
  1. Capture details of the drive (enclosure and slot), verify status is offline / spare
lsdrive <drive id>
  1. Mark the drive as failed
svctask chdrive -use failed <drive id>
  1. Physically replace the drive
  2. Identify the new drive
lsdrive

The drive ID may have changed if there was a skipped drive id or ghost drive

  1. Bring the drive back into the RAID group
svctask chdrive -use candidate <drive id>
svctask chdrive -use spare <drive id>
  1. Verify drive is a part of an mdisk
lsdrive <drive id>
  1. Check array rebuild process
lsarraymemberprogress