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.

replacing data disk and flash drive at the same time

Featured Replies

Hi all,

here is the problem: My config was two data drives and one parity (and two cache drives). One of the data drives was failing and I wanted to check on it. During this process my flash drive also died. To make things worse, I totally forgot to backup my flash drive. (That's something that is never going to happen to me again!)

So now, created a new flash drive, updated the key and identified my drives. Is there a way to set up the array in a way that saves my data?

I was thinking about 1. assigning the drives and starting the array with 'parity is already valid' and 'maintenance mode on', 2. turning array off and 3. starting array regularly. Does that make sense? Thank you all in advance!

 

Solved by JorgeB

  • Community Expert

When the flash drive failed was the failing disk disabled or still enabled?

  • Author

I didn't disable it. I hope, that is what you ask?

Edited by MrSatchmoo

  • Community Expert

Not really, I just wanted to know if the disk was disabled or not, it could have been disable by Unraid, did all disks have a green dot?

  • Author

I think it showed something like not connected

  • Community Expert

It would be good to know for certain, but if you don't, post the diagnostics first, after assigning the drives as they were, but before starting the array.

  • Author

Thank you so much for your help!

What part of the diagnostics file should I post? The whole zip file seems a little bit to much.

Btw, I actually have a diagnostics zip file from between hdd and the flash drive failure. Can I find anything helpful there?

  • Community Expert
1 hour ago, MrSatchmoo said:

Thank you so much for your help!

What part of the diagnostics file should I post? The whole zip file seems a little bit to much.

Btw, I actually have a diagnostics zip file from between hdd and the flash drive failure. Can I find anything helpful there?

We normally want the whole zip as that stops us making continual requests for more of its contents.

  • Community Expert

The earlier diagnostics shows that your drives were:

  Parity: WDC_WD40EFRX-68N32N0_WD-WCC7K2TTPE1K

  Disk1: WDC_WD40EFRX-68N32N0_WD-WCC7K6RETKX4

 

so I assume that the other drive (which was already disabled even then) was

  Disk2: WDC_WD40EFPX-68C6CN0_WD-WX22D83RHEP8

although it was showing as not online at the time, but was being  emulated so any new writes were only being reflected in parity - not in the physical disk.

 

Have you done a New Config yet as the last diagnostics look like might you have?  If so the next steps are likely to be:

  • Tick the Parity is Valid checkbox
  • Start the array in Maintenance mode
  • Stop the array
  • unassign disk2
  • start the array in normal mode to get disk2 emulated
  • post new diagnostics

It is probably also worth seeing if the physical disk2 can be mounted in Unassigned Devices as that would tell us if there is a fallback position if the emulated disk has problems

 

 

 

 

 

  • Author

Hi,

the old (failed) drive (a Seagate) does not show anymore. or rather: As soon as I try to assign it to the array, it vanishes. Because of that I removed the Seagate from the server altogether. The WX22D83RHEP8 is the new one I bought to replace the Seagate.

Should I try to reinstall the failed drive again, before starting the Steps you mentioned?

Thanks again!

  • Community Expert

No.   The point of the steps I mentioned was to see if you can successfully emulate drive2 as all the rebuild process does it make  a physical drive match an emulated one.

  • Author

Thank you! So, I'll try to summarize what I understood so far about my situation, just to be sure, that I'm on the right track here.

If I'm lucky, I have a valid parity disk and one of two data disks. Now I need to tell the system to recreate the second data disk from the before mentioned two disks. As my configuration from my old setup is gone due to the failed flash drive, I somehow have to make sure, that unraid knows wich one of the data drives is valid and wich one is new/replaces the broken one, so it rebuilds that one and not the one with my data on it. Am I correct so far?

Question is, how do I do that. 😨

  • Community Expert
11 minutes ago, MrSatchmoo said:

Thank you! So, I'll try to summarize what I understood so far about my situation, just to be sure, that I'm on the right track here.

If I'm lucky, I have a valid parity disk and one of two data disks. Now I need to tell the system to recreate the second data disk from the before mentioned two disks. As my configuration from my old setup is gone due to the failed flash drive, I somehow have to make sure, that unraid knows wich one of the data drives is valid and wich one is new/replaces the broken one, so it rebuilds that one and not the one with my data on it. Am I correct so far?

Question is, how do I do that. 😨

You follow the steps I gave earlier.   Make sure that the parity drive and disk1 correspond to the serial numbers I gave for them.

  • Author

Sorry for stupid questions, but how do I do that? according to the manual I need to start the array in maintenance mode. is that correct?

Right now disk 2 shows as not installed / unmountable and I see nothing to do a check.

  • Community Expert

Stop the array, click on the emulated disk2 and set the filesystem to xfs, start the array in maintenance mode and check filesystem

  • Author

OK, done. should I upload a log file?

edit: I did the check without -n. It didn't ask for -L.

Here's the data that showed on screen.

Thank you both again!! Awesome!

check_filesystem_status.txt

Edited by MrSatchmoo

  • Community Expert

Start the array in normal mode now, the disk should mount, look for a lost+found folder.

  • Author

Again, thank you, and, again, sorry for more questions. But just to be sure, normal mode with parity and both data disks in the array?

  • Community Expert

Don't change anything in the array, just start in normal mode instead of maintenance mode, and post new diags.

  • Community Expert

Sorting out the lost+found folder is unfortunately a manual task.  You have to decide if it is worth the effort.  The Linux 'file' command can at least help by giving the content type of each file.

  • Community Expert

If you still have old disk2 intact, and it's not completely dead, it may be worth see if you can copy some data from there.

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.