Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

6.12.10 Rebuilding data from parity after drive failure

Featured Replies

Hey kind folks,

So, I had a power cable issue with one of my drives in one of my UnRaid machines. I replaced the cable and the drive works just fine, but the file system was reported as corrupted. I did a slow NTFS format of the drive in a windows machine, then placed the drive into the NAS. It was showing as unmountable, so after I successfully did a data rebuild in Maintenance Mode, rebooted the machine to take it out of maintenance, the array started but my drive was still emulated and showing up as unmountable. In the documentation (here: https://docs.unraid.net/unraid-os/manual/storage-management/#rebuilding-a-drive-onto-itself ), I noticed that it sates that "If an emulated drive is marked as unmountable then a rebuild will not fix this and the rebuilt drive will have the same unmountable status as the emulated drive. The correct handling of unmountable drives is described in a later section. It is recommended that you repair the file system before attempting a rebuild as the repair process is much faster that the rebuild process and if the repair process is not successful the rebuilt drive would have the same problem."
I took the drive out again, placed it in a window machine, deleted the partition and left the drive empty and without a file system.

And now the question: in order to rebuild the data from parity onto this drive, would formatting it in order to create a supported partition allow me to rebuild the data onto this drive or will it update the parity drive to consider the new drive as amply and leave it as it is?

If the above mentioned is not the right procedure, could any of you suggest the correct procedure, please?

Many thanks!

image.png

Solved by itimpi

  • Community Expert
  • Solution
23 minutes ago, Bo_ said:

It is recommended that you repair the file system before attempting a rebuild as the repair process is much faster that the rebuild process and if the repair process is not successful the rebuilt drive would have the same problem."

Did you follow the procedure to do this as documented here in the online documentation accessible via the Manual link at the bottom of the Unraid GUI.

 

You could have done that on the emulated disk before rebuilding, or on the physical drive after rebuilding.  Since it appears you removed the physical drive (which is a shame as you are going to need to rebuild it again) sounds as if you are going to need to do it on the emulated one.

  • Author
12 hours ago, itimpi said:

Did you follow the procedure to do this as documented here in the online documentation accessible via the Manual link at the bottom of the Unraid GUI.

 

 

No, I initially did not find that bit of documentation and thank you for sharing it. 
So, I followed the procedure above, ran the check with no parameters, found a few inconsistencies, than ran it with -L and it turned out successfully. Turns out there were some security camera files that were corrupted, so nothing important, really. 

Did a reboot and now, I'm at the point where it says that Disk 2 is unmountable due to unsupported partition layout.
Would formatting it allow me to rebuild the data from the parity drive or will it update the parity to show Disk 2 as empty?

image.png

  • Community Expert
42 minutes ago, Bo_ said:

or will it update the parity to show Disk 2 as empty?

this.

 

Follow @JorgeB advice and post diagnostics.

  • Author

After I un assign the drive it says that "Start will disable the missing disk and then bring the array on-line. Install a replacement disk as soon as possible."

Would this be a safe operation? I mean starting the array with Disk 2 disabled?

image.png

  • Community Expert

Invalid partition is not a filesystem problem, making Unraid emulate the disk will recreate the partition correctly, assuming parity is valid.

  • Author

The emulated data seems all right a a glance and when I ran the rebuild previously, it encountered no errors.
Now that I ran the check and the repair, I would like to try a new data rebuild on the 2nd drive, but I can't seem to find the option. 
Note: Drive 2 currently has no partition of any kind. I deleted the existing partition on a windows machine, so that UnRaid would see it as a fresh replacement drive

  • Author

Yes, it is the same drive. Thank you. I'm looking into it

  • Author

Awesome! Thank you! It worked.
Turns out running the array with an unassigned drive IS a safe operation and the data rebuild has started.

Thank you kindly, @itimpi and @JorgeB for your assistance!

image.png

  • Author

Data rebuild successful. Drive 2 is now back in great shape. 
Thank you so much for your assistance! image.thumb.png.58963840d3c6505e47ad2501a07b67da.png

  • Author

image.png.c16629866857404a6fd2bd5c29e239ac.png

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.