Is it safe to shutdown a machine while rebuilding/recovering/growing a RAID5 array that was built with mdadm

12,471

A normal shutdown is well managed by mdadm, but a blackout (as always) may be tragic.

Share:
12,471

Related videos on Youtube

jsnfwlr
Author by

jsnfwlr

Updated on September 17, 2022

Comments

  • jsnfwlr
    jsnfwlr almost 2 years

    I have recently started a recovery on my 5-drive RAID in my file-server, and it says it'll take 691+ minutes to complete. I was wondering what would happen to the process if the machine lost power - say in a blackout? Would I need to restart the recovery process again? Would I lose the whole RAID of data?

    Also, what would happen if I was in the process of growing the RAID and the power went out?

  • jsnfwlr
    jsnfwlr almost 14 years
    If I shut it down (or more likely, my wife decides to shut it down) would it mean I need to restart the recovery/growth of the array, or would the next boot of the machine resume it from where it left off?
  • Jasper
    Jasper almost 14 years
    The recovery/growth will start all over again.