Jump to content
darthjonathan12

Help! Dead Drive and Unraid wants to build parity

15 posts in this topic Last Reply

Recommended Posts

I have a drive (disk 2) that has refused to spin up, I've tested it on a few different systems and it still won't spin up.  So the array restarted and now It says that all the data on the parity will be overwritten.  it also thinks that the parity and disk 1 are new drives when they are not. How do I start up the array with the disk missing so I can access the data until the new replacement drive shows up? If I can't start up without a new drive How do I start it up without losing any data? 

Capture.PNG

Share this post


Link to post

How exactly did you get to this state? Since parity and disk1 are in fact ALL of your disks then you must have either done a New Config yourself, or else it couldn't read your disk assignments from flash. Did you New Config?

 

Don't do anything else without further advice.

 

Go to Tools - Diagnostics and attach the complete diagnostics zip to your next post.

Share this post


Link to post

a few days ago I accidentally bumped the power cable on the drive and unraid refused to run off of it. So I ran a new config so It would read off the disk again and it rebuilt parity and was fine, Today I tried to add some ssd's and bumped it again, so I ran the new config but this time the drive won't spin up at all. 

Share this post


Link to post

Well you might just try checking all your connections again. You must always double check all connections any time you are mucking about in the case.

 

New Config was not the right way to fix your problem either time. New Config tells Unraid to reset your disk assignments and optionally rebuild parity. So after a New Config you can't rebuild a failed disk without some trickery.

 

I am going to suggest that you shut down your server and leave it down until you are ready to replace that disk. Then we can discuss the trickery required to rebuild it. If you don't follow this advice then there will probably be no way to recover that data.

Share this post


Link to post

Ok I decided that my time was more important than money and caved and bought an 8tb from Best Buy just now so I wouldn't have to wait for shipping, I am ready to get this server back up and running. 

Share this post


Link to post

I have to leave for a few hours. I will tag @johnnie.black to see if he can help you. I suspect he will want you to do the invalidslot command.

Share this post


Link to post

If parity is valid, and the by way you describe what happened it should be, this should work to rebuild disk2:

 

-Assign the new disk2
-Important - After that leave the browser on that page, the "Main" page.

-Open an SSH session/use the console and type:

mdcmd set invalidslot 2 29

-Back on the GUI and without refreshing the page, just start the array, do not check the "parity is already valid" box, disk2 will start rebuilding, disk should mount immediately but if it's unmountable don't format, wait for the rebuild to finish and then run a filesystem check

  • Like 1
  • Upvote 1

Share this post


Link to post

Ok its rebuilding disk 2!!!!!!!!!!!!!!!!

Everything is great!!!!!

 

I'll run a parity check once the disk is rebuilt and hopefully I can get a refund on the 2 month old drive that failed on me. 

 

Thank you so much trurl and johnnie.black!!!!!!!!!!!!

Share this post


Link to post
18 hours ago, johnnie.black said:

If parity is valid, and the by way you describe what happened it should be, this should work to rebuild disk2:

 

-Assign the new disk2
-Important - After that leave the browser on that page, the "Main" page.

-Open an SSH session/use the console and type:


mdcmd set invalidslot 2 29

-Back on the GUI and without refreshing the page, just start the array, do not check the "parity is already valid" box, disk2 will start rebuilding, disk should mount immediately but if it's unmountable don't format, wait for the rebuild to finish and then run a filesystem check

Johnnie,

 

Can you break down what the mdcmd command does...specifically the "29"?

 

Thanks!

 

Share this post


Link to post
31 minutes ago, tuxfania said:

Johnnie,

 

Can you break down what the mdcmd command does...specifically the "29"?

 

Thanks!

 

Sets the specified slots as invalid after a new config, 29 is for parity2 since the OP doesn't have one.

  • Upvote 1

Share this post


Link to post
1 hour ago, johnnie.black said:

Sets the specified slots as invalid after a new config, 29 is for parity2 since the OP doesn't have one.

Thanks...that makes sense...

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now