Failed Drive, successful rebuild, drive empty


Recommended Posts

After my last parity check this past weekend I found that I had a drive that had been marked 'drive disabled contents emulated'.  My smart error count was high.

 

I had a spare drive that I thought was good, popped it in and began a rebuild, it stopped rebuilding about 2 minutes in and again put this replacement drive in 'drive disabled contents emulated' mode.  So I went out and bought a brand new drive, installed it, formatted it and the array rebuild kicked off.  It ran for 10+ hrs, stats screen shows over 70,000 writes to the new drive. HOWEVER, the drive is entirely empty after the rebuild completed.

 

There are no errors that I see, it completed the rebuild successfully, but not a single byte of data is sitting on this new drive.

 

I don't get it.  I'm assuming I've lost data, but I have no idea what.  What are my next steps to examine what may have happened? I've attached my diagnostics file.

 

Edited by shutterbug
Link to comment
1 minute ago, shutterbug said:

formatted it

 

1 minute ago, shutterbug said:

the drive is entirely empty after the rebuild completed

Formatting writes a blank table of contents to the emulated drive slot. You formatted the emulated drive and rebuilt that fresh format to the new drive.

 

Do you still have the original drive? You may be able to salvage some data from it.

 

Moral of the story, formatting is NEVER part of a successful rebuild. The content that is emulated is what will be written to the rebuilt drive. If the drive is unmountable as well as disabled, then a separate process is needed to check the file system. Parity rebuild recreates the drive exactly as it was when it failed a write, any file system corruption will be rebuilt as well.

Link to comment
Just now, jonathanm said:

 

Formatting writes a blank table of contents to the emulated drive slot. You formatted the emulated drive and rebuilt that fresh format to the new drive.

 

Do you still have the original drive? You may be able to salvage some data from it.

 

Moral of the story, formatting is NEVER part of a successful rebuild. The content that is emulated is what will be written to the rebuilt drive. If the drive is unmountable as well as disabled, then a separate process is needed to check the file system. Parity rebuild recreates the drive exactly as it was when it failed a write, any file system corruption will be rebuilt as well.

When I say I formatted it, unraid forced the format.  i.e. I powered down, installed new drive, when unraid came back online the array was not started and it noted something along the lines of "to continue click here to format the drive".  Once I did that, the rebuild began. This is the same process I've used multiple times to replace a failed drive.

Link to comment
39 minutes ago, shutterbug said:

When I say I formatted it, unraid forced the format.  i.e. I powered down, installed new drive, when unraid came back online the array was not started and it noted something along the lines of "to continue click here to format the drive".  Once I did that, the rebuild began. This is the same process I've used multiple times to replace a failed drive.

A format is never part of a rebuild process.   When you put in the new drive unRAID might have offered an option to format it as it would not at that point contain a valid file system.    However continuing with the rebuild (without doing the format) would have put back the data and the old file system.

Link to comment
  • 2 years later...

This is definitely possible. I just rebuilt a drive for 4 hours and then was told at the end it was successful. But after the rebuild and even after a reboot the disk still said un-mountable  (was mountable before first rebuild) and the only option to fix this was to format the drive otherwise I could not start the array. I formatted and now it is just running the same parity/rebuild process again. Pretty sure data is gone, but seems to be writing a lot again on the second build to disk, probably just zeros. Luckily I don't trust anything and backed up to the other disks in the array to a /backup share when I took the disk offline, since the disk failure seemed fake since it seems to be caused by a sleep command/event occurring during a read/write of that disk. Any clue what I did wrong? I did not pre-clear the disk before first re-build since I expected every location to be written anyways.

Link to comment
9 hours ago, GoldenEye22 said:

and the only option to fix this was to format the drive otherwise I could not start the array.

Like mentioned above array start and unmountable disks are completely unrelated, you can start the array with all disks unmountable, in fact you can only format a disk after array start, so when you format it the array must have been running.

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.