Jump to content

Help needed with replacing a faulty drive/undoing new config


Recommended Posts

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

Link to comment
Posted (edited)

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
Link to comment

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.

Link to comment

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?

Link to comment
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

 

Link to comment

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

Link to comment
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.

Link to comment
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.

Link to comment

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?

Link to comment
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.

Link to comment

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?

Link to comment
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.

Link to comment

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.

Link to comment

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...