Data not restored to new drive


petecemi

Recommended Posts

Hi, a disk in my array began showing errors in the ERRORS column and there were a bunch of logs in syslog showing read errors, unRaid still showed it as a healthy drive though.  I ran a long SMART scan and that showed that "Errors occurred".

 

I followed "The Procedure" as documented in the wiki (with slight difference):

Quote

 

Power down

Install the new drive

Power on

Assign the new drive in the slot of the old drive

Go to the Main -> Array Operation section

Put a check in the Yes, I'm sure checkbox (next to the information indicating the drive will be rebuilt), and click the Start button

The rebuild will begin, with hefty disk activity on all drives, lots of writes on the new drive and lots of reads on all other drives

All of the contents of the old drive will be copied onto the new drive, making it an exact replacement, except possibly with more capacity than the old drive.

 

The array has just finished rebuilding but has not restored the data that was on the failed drive, is that right?!

Luckily I still have the old drive as an unassigned drive and can access the files from it, but I was expecting the rebuild to actually restore the files that were on the removed drive.

 

What did I do wrong?

Link to comment

Those look like the right steps.   If you are sure that is exactly what you did you should try clicking on the drive in the Main tab and run the option to check the file system.  

 

A common mistake (despite the warnings) is to add an additional step of formatting the drive not realizing this is not part of the recovery procedure and will update parity  to indicate there is an empty file system on the drive.

 

43 minutes ago, petecemi said:

The array has just finished rebuilding but has not restored the data that was on the failed drive, is that right?!

There is no separate restore step - data should be restored as part of the rebuild.   In fact it will be set to what was shown on the emulated drive before the rebuild was done!  The rebuild process is not aware of data and is merely working at the physical sector level restoring them to what it thinks should be their current content regardless of whether it is part of a file or not.

43 minutes ago, petecemi said:

Luckily I still have the old drive as an unassigned drive and can access the files from it, but I was expecting the rebuild to actually restore the files that were on the removed drive.

Copying the data back is probably the easiest way forward if the file system check did not result in your data being shown again.

Link to comment

Thanks for the response, I stopped the array and started it in Maintenance mode then checked Disk 8 (with -n flag) but it does not show any of the files that were on the old drive.

 

I did not format the fresh drive, I just selected the dropdown for Disk8 and changed it from the old drive to the new one and then checked the box before starting the array.  The indicator showed that the drive was emulated during rebuild, but it did not show any files, I did add some new files onto the drive during rebuild.

 

I will copy the files from the old drive into the share for now, but somewhat worried if this happens again in future.

 

Link to comment

Disk8 was unmountable and you formatted it, formatting deletes all data, correct procedure would be running a filesystem check.

 

Also Parity2 had some sync errors, which suggests Parity1 could also have some, and possibly the reason for the disk being unmountable.

 

Parity needs to be 100% in sync for a rebuild to be successful.

Edited by johnnie.black
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.