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.

Help needed with replacing a faulty drive/undoing new config

Featured Replies

One of my drives (disk1) showed some SMART warnings so I returned it and got sent a new one. When I plugged the new one in, despite it being exactly same model of drive, it said the replacement disk was too small. After some poking around on the forums I saw someone suggesting to use "New Config" to fix this (I created a New Config preserving all current assignments). However, after doing this, it says that all existing data on my parity drive will be overwritten when I start the array and I don't want that to be overwritten as I'll lose all my data.

I haven't done anything after creating a New Config as I don't want to lose anything. Can anyone help me please?

image.thumb.png.98a887a908e84c9e9e4fa3cdc61b87c8.pngtower-diagnostics-20240619-1620.zip

  • Community Expert

New config cannot be used to replace a disk, it warns exactly about that.

 

Is old disk1 still connected? If yes, which one is it?

 

 

  • Author

Unfortunately, I do not have the old disk1 as it had to be returned before I recieved the new drive

 

EDIT: I know I've been stupid by making a new config but is there any way at all to get the data back?

Edited by lukemattle
add line

  • Author

I found a file called disk.old in my boot device under /boot/config, would this be of any use?

  • Community Expert

You can try this, but it will only work if parity is still valid:

 

-Assuming the array is still as the screenshot above, after the new config
-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) and post new diags.

  • Author

I believe my parity is still valid but the thing that worries me is that when I tried to replace disk1 without the new config, it said that the replacement disk was too small despite it being the same model of WD Green 6TB. Should I still proceed with your instructions?

  • Community Expert

If it's the same size yes, there could have been a partition staring sector difference.

  • Author

After looking through my share it looks like most of my files are gone. Do they still exist on the parity drive?

  • Community Expert
Jun 20 01:16:59 Tower kernel: mount: attempt to access beyond end of device
Jun 20 01:16:59 Tower kernel: md1p1: rw=4096, sector=11721045063, nr_sectors = 1 limit=11720979536
Jun 20 01:16:59 Tower kernel: XFS (md1p1): last sector read failed

 

Looks like that disk really is smaller, post the output of:

 

fdisk -l /dev/sdc

and

fdisk -l /dev/sdd

 

  • Author

image.png.a68235f32821444b2d497eafb7cc1cf4.png

  • Community Expert

So as you can see by the number of sectors, the disk is actually smaller, so it won't do, was this disk shucked? In any case you will need a different 6TB disk.

  • Author

So if I buy a different 6TB disk (or larger) will I get my data back?

  • Community Expert

If parity is valid it should work, but cannot be larger than 6TB, that would require a parity swap, and for that you would need a place older disk, like the old one.

  • Author

Would you explain to be what exactly I need to do to get my data back please? Also, why does all my data not appear when I unassign disk 1, as the parity should be valid with the parity drive (sdc) and disk 2 (sde), nothing should have been wiped. Thanks for all your help so far

  • Community Expert
26 minutes ago, lukemattle said:

Would you explain to be what exactly I need to do to get my data back please?

A new 6TB disk, assuming parity is valid

 

26 minutes ago, lukemattle said:

Also, why does all my data not appear when I unassign disk 1, as the parity should be valid with the parity drive (sdc) and disk 2 (sde),

Because current disk1 is smaller than the previous disk, I though you've been over all this.

  • Author
Quote

A new 6TB disk, assuming parity is valid

Don't suppose you know if an HGST HUS726060ALE614 6TB would be the same size/bigger than my old WD? I can't find the exact size in bytes anywhere and that is the only 6TB drive I can pick up for a reasonable price.

  • Author

I just had a power cut and when the power came back on, it started the array with disk1 assigned to the new WD drive (which unraid said was too small before the new config) and is now doing a data rebuild. Should I let it continue?

  • Community Expert
17 minutes ago, lukemattle said:

Don't suppose you know if an HGST HUS726060ALE614 6TB would be the same size/bigger than my old WD?

All 6TB disks should be the same size, disk that come from enclosures can sometimes be smaller.

 

3 minutes ago, lukemattle said:

Should I let it continue?

Assuming the disk is still unmountable you can cancel.

  • Community Expert

According to the diagnostics it looks like you ran a format (thus wiping the data from the emulated drive)?

  • Author

What does it say I ran a format on? All that happened to my knowledge is that my power went out and when it came back on, it was doing a data rebuild. Earlier I mounted the drive to unassigned devices to see if it had anything on it, would that have formatted it?

  • Community Expert
Jun 20 04:32:47 Tower emhttpd: creating volume: disk1 (xfs)
Jun 20 04:32:47 Tower emhttpd: shcmd (64108): /sbin/wipefs -af /dev/md1p1

 

Disk was formatted, so only option now would be to use something like UFS explorer, it may or not recover some data.

  • Author

Crap. Can't believe I had a power cut at the worst time. Luckily I have backups of anything that I cared about. Thanks for your help.

  • Community Expert

Format is not related to the power cut, someone must have clicked the format button, also the syslog covers almost 24H uptime, including the new config, not sure how there could have been a power cut, since the syslog starts over after every boot.

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.