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.

Data Loss After "New Config" - Seeking Recovery Advice

Featured Replies

Unraid Version: 6.12.4

 

Hello Unraid community,

 

Before I begin it’s worth mentioning that already resigned to the idea that I’ve lost the data in question. I am reaching out to the forum just to make sure I’ve exhausted every avenue prior to writing the data off as lost and to learn as much as I can from the numerous mistakes. I am currently using Unraid 6.12.4 and lost access to about 12 TB of emulated data due to failed drive connections during a parity rebuild which culminated in an ill-advised "Tools > New Config" operation.

 

Here's the situation:

 

Original Disk 6 Failure: I was in the process of an array expansion and had installed a 6th disk into my array. I had added about 3 TB of data before it failed due to a physical connection issue. Unraid emulated Disk 6 using dual parity drives and I foolishly put off fixing the connection issue until after 12 TB of additional data had accumulated.

 

First Parity Rebuild Attempt: I replaced Disk 6 with a new hard drive to preserve the 3 TB I had while was troubleshooting. I started the parity rebuild, but was encountering slow rebuild speeds (approx. 20 mb/s). Because of this I stopped the rebuild and upgraded the raid controller which was the most likely bottleneck.

 

Second Parity Rebuild Attempt: After the controller install I restarted the parity rebuild but again had slow speeds (approx. 400 mb/s). Within 60 to 90 seconds of starting the rebuild (and before I had a chance to troubleshoot) Parity 2 flagged a UDMA CRC error and Disk 5 lost connection and was disabled.

 

Third Parity Rebuild Attempt: I believe the issue with Parity 2 and Disk 5 were both again related to physical connection issues. So after I burned all my existing SATA cables and replaced them with new ones I have had no connection issues. Unfortunately, following the second rebuild attempt, I was left with a new issue of Disk 5 being connected but remaining in a “Device Disabled” status. 

 

"New Config" Disaster: Sadly in my haste to fix Disk 5 so I could get back to fixing Disk 6 (my fault for rushing), I followed a recommendation from ChatGPT to run "Tools > New Config" with "Retain current assignments" and "Parity is already valid." This fixed the Disk 5 issue but cleared the association between Disk 6 and its emulated data which is no longer available. Now, Unraid sees the new hard drive assigned to Disk 6 as a brand new drive, and won’t rebuild from Parity.

 

Recovery Attempts: I've tried various mdcmd commands and examined disk.cfg, but Unraid still wants to format the drive.

 

My Goal:

To recover the 12TB of emulated data from the parity drives and restore Disk 6 if possible.

 

My Question:

Again I’m resigned to the fact that I’ve probably lost the data but wanted to ask if anyone has any thoughts or options to try? Is there a way to force Unraid to recognize the parity information and rebuild Disk 6 correctly? I'm open to any suggestions, but mostly just want to ensure I’ve tried everything before calling it a loss.

 

I can provide any additional information or logs as needed. Thank you for your time and expertise!

 

Crucial Information:

    Unraid version: 6.12.4
    Parity drives are healthy.
    I do NOT have a complete backup of the emulated 12TB.
    I have a disk.old file, but it's identical to my current disk.cfg.
    Diagnostics logs show "Invalid superblock magic number" errors for Disk 6.
    I have a diagnostics zip from shortly before the "New Config" operation (April 10, 2025, if relevant).

Solved by trurl

  • Community Expert
11 minutes ago, HatSolo said:

I have a diagnostics zip from shortly before the "New Config" operation (April 10, 2025, if relevant).

Post that along with the current diagnostics.

 

Have you done anything else to any disks since that "parity valid"?

  • Community Expert

You were real close to the beginning steps we sometimes use to force Unraid to disable a different disk so we can rebuild it instead, except in addition to Parity Valid, we also check the Maintenance mode box before starting the array. That accepts all assignments without actually mounting any disks so no disks can be changed. Just starting the array in normal mode so the disks are mounted makes some small changes.

 

But maybe not too much to allow us to try to repair the emulated filesystem before rebuilding.

  • Community Expert
20 minutes ago, HatSolo said:

"New Config" operation (April 10, 2025

So several days ago. Have you used your server at all since then?

  • Community Expert

Instead of trying to rebuild anything...

 

Do you still have the original disk6?

  • Author

I have attached the two most recent diagnostics logs that I have. The one from 4/16 is the current state and the one from 4/10 is the second most recent log I have available. 

 

I have not used the disks since I ran the New Config. The only changes to the disks that may have occurred was Unraid attempting to disk-clear Disk 6 when I started the array in an attempt to get it to rebuild from parity. However, disk 6 was empty and the two parity drives and disks 1-5, 7, 8 should not have any changes.

 

I did run a number of read/write operations between the 4/10 diagnostic log and my first parity rebuild attempt on 4/15 but I don't think that matters. I had also recently added drives to the array but I am almost positive that this occurred prior to the 4/10 diagnostics log (but memory is starting to fail me with all the troubleshooting haha).

 

I do have the original Disk 6. It's sitting in the unassigned drives section with the 3 TB of data it had before the initial loss of connection due to the faulty SATA cable. I started using a fresh hard drive to save the 3 TB in case I was unable to get parity to restore the remaining 12 TB. But it's there if needed.

towerarchives-diagnostics-20250410-1540.zip towerarchives-diagnostics-20250416-1034.zip

  • Community Expert

I haven't really studied those old diagnostics yet, but they might be useful to have. New diagnostics as we proceed may tell us everything we really need to know to go forward.

 

From your description, it may be hopeful.

 

So parity and the other disks should mostly be the same as they were before the New Config. Maybe they can mostly emulate disk6 if it were disabled.

 

Unassign disk6, start the array in normal (not maintenance) mode without disk6 assigned.

 

Disk6 will be missing and emulated. If emulated disk6 is mounted we should be able to check its files. If emulated disk6 is unmountable, we may be able to check filesystem on the emulated disk to try to repair it.

 

Either way, post new diagnostics.

 

I will check back in the morning.

  • Author

Sounds good, and thanks for all the help with this!

 

I started the array in normal mode with Disk6 unassigned. Unfortunately it did not emulate the data, Disk6 just disappeared from the array list. I pulled the diagnostics and attached it below though.

 

Thanks again!

towerarchives-diagnostics-20250417-0711.zip

  • Community Expert
  • Solution

Doesn't look like disk6 was ever included in your New Config. And the 4/16 diagnostics seems to confirm that.

 

Let's try again.

 

New Config - Retain All - Apply

Assign disk6

Check BOTH Parity Valid AND Maintenance mode checkboxes.

Start the array.

Stop the array.

Unassign disk6.

Start the array in normal (not maintenance) mode with disk6 unassigned.

Post new diagnostics.

  • Community Expert

Just to clarify, assign new disk6. Keep original safe.

  • Author

Alright looks like we took 1 step forward and 2 steps back haha.

 

Good News:

I ran through your instructions and when I unassigned Disk 6 and started the array, Disk 6 remained in the array list and is now listed as "Not Installed" AND the array started emulating the missing data! I did a quick spot check which confirmed ALL missing files appear to be visible (all data now available through emulation). I also pulled a diagnostics report and have it attached, it is the one from 07:50. I am almost positive that this diagnostics report finished pulling prior to the bad news.

 

Bad News:

As I was spot checking (maybe 2-3 minutes after starting the array) I had a repeat of the connection issue that I had on my 2nd Parity Rebuild attempt (see above). This time Disk 4 was disabled and had it's contents emulated (instead of Disk 5 which was disabled during the 2nd Parity Attempt) along with Parity2 having a "UDMA CRC error count: 5" (Parity2 had a UDMA CRC error count: 1 when Disk 5 was disabled). I pulled a second diagnostic report at 07:57 then stopped the array and shut down. I have not powered on since.

 

So more troubleshooting but unsure how to proceed. 

 

Connection Options:

Addressing the connection issue seems like the top priority. I only noticed the problems start when I upgraded to an LSI 9207-8i raid controller so I am fairly confident that is the root cause of the connection issue. I figure I have 3 options...

 

1.) I could replace the raid controller with a brand new one. (leaning towards this option to rule out as much as possible)

2.) I could change the controller to different PCI slot and purchase higher quality 8087 SATA cables to see if that solves the issue.

3.) Unfortunately, I ran out of ports on my old raid controller so I can't revert back to one that I know works without disconnecting drives. But I do have a GLOTRENDS SA3120J SATA multiplier that I could try (although being a SATA multiplier it is likely too slow for a parity rebuild but could be used for troubleshooting)

 

Array Options:

Once I get the connection issue sorted then here's where I stand with the array. Parity2 has had two UDMA CRC errors but I think they are both related to physical connection issues. The parity drives should still be valid once the connection issue is fixed. The data on Disk 4 should be fine but the drive is currently disabled/emulated and needs to be reconnected without triggering a parity rebuild or a disk clear. Disk 6 is empty (as it's a new drive) and the data does appear to be emulating so it "just" needs a full parity rebuild started. Unsure how to proceed as last time this is where I "misplaced" Disk 6 while getting Disk 5 back into the array so my confidence it totally shot lol.

towerarchives-diagnostics-20250417-0750.zip towerarchives-diagnostics-20250417-0757.zip

  • Community Expert

You can't really make any progress unless hardware is working well.

 

Parity2 and disk5 are on this controller:

00:1f.2 SATA controller [0106]: Intel Corporation 6 Series/C200 Series Chipset Family 6 port Desktop SATA
ST16000NT001-3LV101_ZRS15WZ7-2024-08-22 parity (sdm) 00:1f.2
ST16000NT001-3LV101_ZRS15KP8-2024-08-22 parity2 (sdj) 00:1f.2
ST14000NM001G-2KJ103_ZTM0HSQ5-2024-08-22 disk2 (sdl) 00:1f.2
ST14000NM001G-2KJ103_ZTM0HL71-2024-08-22 disk3 (sdi) 00:1f.2
ST12000VN0008-2YS101_ZRT1A0FF-2024-08-22 disk5 (sdk) 00:1f.2

 

disk4 and disk6 are on this controller:

01:00.0 Serial Attached SCSI controller [0107]: Broadcom / LSI SAS2308 PCI-Express Fusion-MPT SAS-2
ST16000NT001-3LV101_ZRS0R455-2024-08-22 disk1 (sdc) 01:00.0
ST14000NM001G-2KJ103_ZTM0HZN0-2024-08-22 disk4 (sdb) 01:00.0
ST16000NT001-3LV101_ZRS1NZ48-2024-08-22 disk6 (sdf) 01:00.0
ST16000NT001-3LV101_ZR5G4L1Q-2024-08-22 disk7 (sde) 01:00.0
ST16000NT001-3LV101_ZR5G5BR5-2024-08-22 disk8 (sdd) 01:00.0

 

  • Community Expert

Have you considered power? All disks are running simultaneously for rebuilds, parity checks, etc. Bigger load than just normal file access.

  • Author

Sounds good, I went ahead and ordered a replacement raid controller and replacement cables which should be here tomorrow morning. I will plan on swapping everything and powering back on to check connections once I have them. Assuming there are no glaring issues once I power on do you have any recommendations on what to look for or just wait a bit to see if issues arise?

 

Sorry, an important clarification is that I switched Disk 5 to from the PCI controller to the motherboard controller after it disabled on the 2nd parity rebuild attempt. My thought process was that swapping the problematic Disk between controllers would help isolate the issue in the event a drive was disabled again. As it happens Disk 5 has had no issues on the motherboard controller and Disk 4 (on the PCI controller) has now been disabled. So while Disk 5 currently shows up on the motherboard controller, both disabling events actually occurred when the drives in question were connected through the PCI controller.

 

No I hadn't considered power but that's a great thought! My power supply is just over a year old and 600w which, with my ballpark math, feels like it should be enough to handle 11 spinning drives? I also wasn't running a rebuild or parity check when Drive 4 disabled. But I suppose it's always possible that something in the background could have caused a power spike without me realizing. My thought is to go ahead with the PCI controller swap and test, if I'm still seeing issues then I can look at power supply replacement. That is unless you feel 600w is close enough to limit that you think it's worth pursuing concurrently?

  • Author

Alright, I've replaced the raid controller and SATA cables so hopefully that solves the connection issues. Unsure if there is any stress testing we can do prior to attempting a parity rebuild? I never intentionally turned on turbo mode; within settings the "Tunables (md_write_method)" is set to auto so unsure if that means turbo can be utilized under certain conditions? I'm hoping that the connection issues will be sorted by the raid controller replacement but if I have troubles again the power supply will definitely be the next area of focus.

 

Current Status: Raid controller has been replaced and the system powered on with the array stopped and all HDD currently identified including Disk 4 and the two in the unassigned disk devices section (following the connection issue Drive 6 is now listed as Unassigned instead of Not Installed).

Drive 4: Listed as "Device is disabled, contents emulated" but the correct HDD is assigned under the Identification column.

Drive 6: "Device is missing, contents emulated" and the Identification column lists it as unassigned. If I assign ZRS1NZ48 or ZRS1NXQA from the unassigned disk devices section then it updates to a blue square with a "New Device" designation.

All Other Array Disks: Listed as "Normal Operation, Device is active"

 

This is where I ran into trouble originally. Unsure on how to get Drive 4 re-enabled then initiate a parity rebuild on Drive 6? I think I was running into issues where it was trying to parity rebuild Drive 4 (even though it shouldn't be necessary, unless you think it is necessary in the context of the situation) and/or it would try to disk-clear Drive 6 rather than running a parity rebuild. Thoughts and should I try any stress testing before troubleshooting the drives more to confirm I fixed the connection/power issue?

 

Unsure if another diagnostics pull is helpful but I attached a current one just in case. Thanks for the help!

towerarchives-diagnostics-20250418-1037.zip

Edited by HatSolo

  • Author

Sorry that was probably an overly broad response on my part. I spent the weekend reading up more and trying to understand the issues I've run into. One possible problem I noticed was all the HHD's were daisy chained on the same cable coming off the power supply. Unsure if there are separate wattage limits to the individual cables but, just in case, I spread out the HDD's to the other cables coming off the power supply to try and better distribute the load.

As for the array here's the order of operations I'm planning on pursuing now.

1.) Re-run your instructions for "New Config" with retain all and parity valid then start array in Maint Mode to get all disks recognized within the array. I don't want to run a parity rebuild on Disk4 or Disk5 right now because they "should" be correct while I know Disk6 needs to be rebuilt.

2.) Stop the array, unmount Disk6 and restart the array in normal mode to validate that Disk6 data is emulated.

3.) Stress test the system by running a (non-correcting) Parity Check in normal mode with Disk6 unassigned (would love any recommendations if you know of a better way to test the system under load, this was just the safest option I could think of). I planned on running the Parity Test with Disk6 unassigned because I trust the emulated data and Disk6 is currently empty.

4.) Stop array and remount Disk6 to force a parity rebuild of the missing data onto Disk6.

5.) If the earlier Parity Check flagged any issues with Disk5, Disk4, or any other disks then I can determine what likely caused the variance and run a parity rebuild or (correcting) parity check based on need.

 

If I run into any stability issues as I move through the process I will assume it's related to the power supply and prioritize that.

Edited by HatSolo

  • Community Expert
4 hours ago, HatSolo said:

One possible problem I noticed was all the HHD's were daisy chained on the same cable coming off the power supply. Unsure if there are separate wattage limits to the individual cables but, just in case, I spread out the HDD's to the other cables coming off the power supply to try and better distribute the load.

Probably that has been the problem all along. Ideally, no more than 4 drives per PSU cable. If you must use splitters, Molex to SATA are better than SATA to SATA power splitters.

 

4 hours ago, HatSolo said:

2.) Stop the array, unmount Disk6 and restart the array in normal mode to validate that Disk6 data is emulated.

Unassign, not "unmount". Just a correction of your terminology. A drive is "mounted" when the OS loads its filesystem to allow access. Hopefully, emulated disk6 will be mounted.

 

Post diagnostics after that to confirm.

  • Community Expert
Just now, trurl said:

If you must use splitters, Molex to SATA are better than SATA to SATA power splitters.

 

  • Author

Awesome, thanks! Yeah I changed the power so now the 11 drives are evenly split between 3 different cables so hopefully that's sorted.


I went ahead and completed Step 1 and 2 as described above. I also started on Step 3 but ran into issues. When I started the Parity-Check in normal mode (with Disk6 unassigned) it immediately listed a "Sync errors corrected: 1" in the details section which I did not expect given that I had unselected "Write corrections to parity" so I canceled the check. Wondering best course of action from here. I ran a diagnostics pull at this point and figure I have four options unless you can think of a better course of action.

 

1.) Let the Parity-Check finish and assume the "Sync errors corrected" was related to running a Parity-Check with a disk missing.

2.) Stop the Parity-Check and rerun in Maintenance Mode to try and force it to avoid writing.

3.) Run a separate stress test if you have one you'd recommend.

4.) Scrap the Parity-Check and prioritize rebuilding the missing disk while monitoring for connection issues.

 

The good news is I had the array running for 3-4 hours earlier (it was just idle but positive result nonetheless). I really appreciate all the help, thanks!

towerarchives-diagnostics-20250421-1449.zip

  • Community Expert
2 hours ago, trurl said:

Hopefully, emulated disk6 will be mounted.

 

Post diagnostics after that to confirm.

I really wanted the diagnostics immediately after step 2

36 minutes ago, HatSolo said:

I ran a diagnostics

Without the array started in normal mode those don't tell me what I need to know.

  • Author

Sorry about that. I reran Steps 1 & 2, the attached diagnostics log should be the array running in normal mode with Disk6 unassigned. The array did recognize it as missing and was emulating the data.

 

Thanks.

towerarchives-diagnostics-20250421-1748.zip

  • Community Expert

Looks good!

 

2 hours ago, HatSolo said:

Scrap the Parity-Check and prioritize rebuilding the missing disk while monitoring for connection issues.

 

  • Author

Excellent! I started the rebuild and everything looks to be working as expected. Rebuild running at 230 mb/s (as expected) for 20 minutes so far and no issues. Thank you again so much for the help!

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.