Jump to content

Do I have to rebuild parity after starting array with disk missing?


Recommended Posts

I made a mistake and have a quick question:

I forgot to stop automatic array start on boot and I accidentally booted with a drive not connected.

Of course, it said "Disk missing" and did not start.  I have since re-connected the drive but I can't remember if, once Unraid has found a drive missing, that it must rebuild parity.  Will it notice that the drive is now connected and assume parity if valid?  Is there any way to tell it to trust the parity?  Or should I just reboot and let it rebuild parity?

Thanks.

Link to comment

Since Unraid was running with the missing disk, any writes to that slot updated parity, so the content on the physical disk is no longer in sync with what is emulated. You have 2 options, either throw away any changes to that slot, and rebuild parity from the missing disk, or update the physical disk to match what is emulated by rebuilding the disk. Either choice results in a lengthy rebuild process, your choice whether you want to throw away the data that was written to the emulated copy and revert to an unknown state on the disconnected drive.

 

If the emulated drive is mounted and looks good, it's usually a better choice to rebuild the drive instead of rebuilding parity.

 

All this assumes your drives are all perfectly healthy with solid connections, any failures while in this state will likely cause lost data.

Link to comment
3 hours ago, JonathanM said:

Since Unraid was running with the missing disk, any writes to that slot updated parity, so the content on the physical disk is no longer in sync with what is emulated. You have 2 options, either throw away any changes to that slot, and rebuild parity from the missing disk, or update the physical disk to match what is emulated by rebuilding the disk. Either choice results in a lengthy rebuild process, your choice whether you want to throw away the data that was written to the emulated copy and revert to an unknown state on the disconnected drive.

 

If the emulated drive is mounted and looks good, it's usually a better choice to rebuild the drive instead of rebuilding parity.

 

All this assumes your drives are all perfectly healthy with solid connections, any failures while in this state will likely cause lost data.

Ok. I was wrong.  I just looked at the screen shot that I made when it happened and the array was actually not started.

It just showed a list of all the drive slots listing the drive numbers that are populated and the one drive that was missing.

So, parity should be good and can just start the array now, right?

Here's a screen shot of main now (after shutdown, re-attaching the disk and booting).

 

screen_shot.jpg

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...