Disk Replacement

Disk Replacement

Steps to replace disk on a daos system (hot swap):

  1. Identify the disk to be replaced (this should cause the disk to blink):

dmg storage query list-devices -l aurora-daos-xxxx:10003 dmg storage led identify -l aurora-daos-xxxx:10003 970005:01:00.0
  1. Mark disk as faulty:

dmg storage set nvme-faulty -l aurora-daos-xxxx:10003 -u $UUID

At this stage if you were not swapping an already bad disk rebuild should be triggered.

  1. Verify the marked disk is in 'EVICTED' state:

dmg storage query list-devices -l aurora-daos-xxxx:10003
UUID:47459e51-b1f0-47b9-a256-b10955396d5c [TrAddr:970005:01:00.0 NSID:1] Roles:NA Targets:[0 8] Rank:4 State:EVICTED LED:ON UUID:9ffe66a8-565f-47a4-8abc-00be61d48071 [TrAddr:970005:03:00.0 NSID:1]
  1. Perform the Hot swap.

    1. Pull the old disk out.

    2. Wait alteast 20s-30s.

    3. Inserting new disk.

  1. Verify the states of old and new disk. Old disk should show 'UNPLUGGED', new one should show 'NEW'

dmg storage query list-devices -l aurora-daos-xxxx:10003
UUID:47459e51-b1f0-47b9-a256-b10955396d5c [TrAddr:] Roles:NA Targets:[0 8] Rank:4 State:UNPLUGGED LED:NA UUID:595d253b-90fd-4526-a012-75f41688b3e9 [TrAddr:970005:01:00.0 NSID:1] Roles:NA Targets:[] Rank:4 State:NEW LED:ON
  1. Allow rebuild to complete triggered in step 2.

  1. Run dmg disk replace:

dmg storage replace nvme --old-uuid $OLD_UUID --new-uuid $NEW_UUID -l aurora-daos-xxxx:10003

Rebuild should be triggered as the disk should reintegrate on it's own. But it can take some time for it to show. So please wait. You can perform step 8 in the meanwhile.

  1. Verify the state of new disk, it should show 'NORMAL'. Old disk should not be in the list anymore.

dmg storage query list-devices -l aurora-daos-xxxx:10003
UUID:595d253b-90fd-4526-a012-75f41688b3e9 [TrAddr:970005:01:00.0 NSID:1] Roles:NA Targets:[0 8] Rank:4 State:NORMAL LED:ON
  1. Wait for rebuild to complete.

 

Comments