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.

One drive disabled, second drive failed

Featured Replies

Hello!

 

I've got an odd one today. I've got a server with 1 parity 1 cache and 4 data drives (2x 2TB, 1x 3TB and 1x 6TB).

Now that happened:

* One of the old 2TB drives (Disk 2) had write errors and got disabled.

* When I wanted to rebuild it, the other one (Disk 1) died hard (read errors, "missing" in unRaid).

* I am able to read the data from the disabled drive when I mount it; I trust it and assume it was a loose cable issue.

 

I am (understandably) unable to start the array in a normal mode - but I would love to temporarily "force" it to start by clearing the "disabled" flag on Disk 2 without rebuilding it - so that I can emulate Disk 1 and recover the data from parity. Is there a way to do that (e.g. by manually changing a config file / database) or am I too optimistic in my assumptions and basically just lost the Disk 1 data?

 

Thanks in advance for any insights - even if those are to confirm my worry that an out-of-unRaid recovery is my only option.

Edited by Jan Kuźniak
fixed units to TB (brainfreeze)

  • Community Expert

Go to Tools-Diagnostics and attach the complete Diagnostics ZIP file to your NEXT post in this thread 

  • Community Expert

Disk1 isn't even giving a valid SMART report, not a good sign, but replace/swap cables and post new diags.

  • Author

Unfortunately, I am confident the Disk 1 is dead - I did the usual cable / port juggle (including power cable), booted the machine with just this drive attached (to isolate power delivery problems) etc. It did show up once, early in the process, but only for a short time and only to disappear for good on the following attempts.

The original question remains: is there a way to force Disk 2 from enabled to disabled (without rebuilding) so that I can start the unRaid array and recover Disk 1 using the parity.

Edited by Jan Kuźniak

  • Community Expert

There's a way to do that, you need a new disk to replace disk1, ideally of the same size, but it will only work if parity is still valid, if yes I can post the instructions.

  • Author

Yes, a new disk will not be a problem. If you wouldn't mind posting the instructions, that would be an invaluable help.

  • Community Expert

-Tools -> New Config -> Retain current configuration: All -> Apply
-Check all assignments and assign any missing disk(s) if needed, including the new disk1, replacement disk should be same size or larger than the old one
-IMPORTANT - Check both "parity is already valid" and "maintenance mode" and start the array (note that the GUI will still show that data on parity disk(s) will be overwritten, this is normal as it doesn't account for the checkbox, but it won't be as long as it's checked)
-Stop array
-Unassign disk1.
-Start array (in normal mode now), ideally the emulated disk will now mount and contents look correct, if it doesn't you should run a filesystem check on the emulated disk
-If the emulated disk mounts and contents look correct stop the array
-Re-assign the disk to rebuild and start array to begin.

  • Author

Thanks JorgeB, I'll give it a shot. I was thinking unRaid wouldn't let me start the array with Disk 1 replaced and Disk 2 disabled - I'm glad that's an option.

Keep your fingers crossed and I'll keep you posted.

  • Author

Hi guys, reporting from the front line.

JorgeB: Your method worked - and didn't work at the same time. I was indeed able to start an array in maintenance mode while marking parity as good, get unRaid to accept Disk 2 as valid and then make it so that it shows it's emulating Disk 1 when I removed the replacement drive. Unfortunately, it can't mount the emulated disk and it wouldn't show up in the devices - so I can't even run a filesystem check on it. Am I missing something obvious? See screenshot below.

 

unraid-two-failed-disks.png

  • Community Expert
25 minutes ago, Jan Kuźniak said:

so I can't even run a filesystem check on it.

You can still run a filesystem check, using the console or GUI, for the latter first and with the array stopped click on it and set filesystem to xfs.

  • Community Expert
Just now, JorgeB said:

and set filesystem to xfs.

Assuming it was xfs, I see you have a btrfs fs also.

  • Author

Yes, that disk was XFS. And here's an odd one - it wouldn't let me change the FS - the "apply" option is grayed out... Also, when I start the array in the maintenance mode, the "check filesystem status" section is missing. I'm tempted to try formatting the spare drive to XFS and re-doing the new config trick you posted at first - maybe that would fool the array into emulating the original FS? (double checking with you guys before I irreversibly fuck something up ;-))

 

image.thumb.png.5a7a4a86b4173513f8cfaf7574816303.png

  • Community Expert

Use the console, start the array in maintenance mode and type:

 

xfs_repair -v /dev/md1

 

  • Author

Seems to have worked, you're my Hero!
I'll attempt recovering the data and let you know how that went.

I have the exact same problem with one disabled and one failed drive. 

I followed the instructions here for my failed disk, but xfs_repair fails with error 117. I saw a lot of file names I recognized during the rebuild attempt and it put a lot of things into lost and found, so I know at least some of my data is there, but it won't actually rebuild a mountable file system. 

  • Author

In my case I was able to rebuild the file system -- but got all the files in "lost+found" (I just hope I recovered all the files - it's sometimes hard to find what's missing). I'm guessing that means I got some minor corruption / out of sync on the first slightly-failed disk and the parity was able to recover almost everything. I am unfortunately not able to comment on your case further.

  • Community Expert
On 7/31/2021 at 12:48 AM, LoftyDwarf said:

exact same problem

Start your own thread with your diagnostics.

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.