[6.9.2] Unmountable disk being rebuilt


Recommended Posts

I just replaced a 4TB drive with a 6TB drive, but the new drive says "unmountable", even though the array is currently rebuilding....  Seems like the rebuild will finish and I'll still have an unmountable drive which means the data is lost?  Can someone please advise what I should do?

 

image.png.7e700d25a45baf64d71fae85b3ec258f.png

Link to comment
27 minutes ago, nerbonne said:

OK, i'm somewhat concerned that once the rebuild finishes, the data on that drive will be gone.

It shouldn't, but next time you should attempt to fix the filesystem on the emulate disk before rebuilding, just in case it isn't.

 

Let it finish, you can still do a new config in the end if needed.

Link to comment

Ok, I waited until the rebuild was done, put the array in maintenance mode, ran xfs_repair, but it just scrolled FOREVER, so I got impatient and turned it off, put the original drive back in, new config, and now parity is rebuilding.  

 

That being said, can you explain "next time you should attempt to fix the filesystem on the emulated disk before rebuilding".  Any time I put in a disk, it automatically starts a rebuild.  How exactly do you do what you are suggesting?  Should a new/replacement disk just be formatted automatically?  Why did unRaid try to re-use the existing file system...

Link to comment
58 minutes ago, nerbonne said:

That being said, can you explain "next time you should attempt to fix the filesystem on the emulated disk before rebuilding".  Any time I put in a disk, it automatically starts a rebuild.  How exactly do you do what you are suggesting?  Should a new/replacement disk just be formatted automatically?  Why did unRaid try to re-use the existing file system...

The rebuild puts on a replacement disk exactly what unRaid thinks is on the “emulated” disk.     You can therefore run the file system repair against the emulated disk BEFORE putting in a replacement disk.   If the repair of the emulated disk does not work then not much point in rebuilding as the rebuilt disk will have the same problems and you need to try an alternative method of getting your files back (e.g. original disk, backups).

 

1 hour ago, nerbonne said:

Ok, I waited until the rebuild was done, put the array in maintenance mode, ran xfs_repair, but it just scrolled FOREVER

What was showing while it was  scrolling?    This is not normal and in most cases the xfs_repair is a very fast process.

Link to comment

What was showing while scrolling: Just dots like this ................

 

Forever, screens and screens and screens of them.

 

The emulated disk didn't have any errors, as the original disk didn't have errors.  The problem was that the replacement disk was not imported properly...  How can I prevent that in the future.  Seems like I should have been asked something like "replacement disk does not have a mountable file system, do you really want to start a rebuild", in which case, I would have said no and used a different disk.

 

Anyways, I do appreciate all the support.  The original disk is back in, parity is rebuilding, no data lost (unless the disk fails during parity rebuild... :( )  I formatted the replacement disk in Windows to wipe any Linux stuff, and I plan on trying to swap the disks again when the parity rebuild is complete.

Link to comment
Just now, nerbonne said:

What was showing while scrolling: Just dots like this ................

That would only happen if no file system superblock can be found and the repair process starts looking through every sector on the disk to see if it can find a backup copy.   This sometimes works but also often means that the file system corruption is sufficient to stop the repair process working.   Any rebuilt drive would have exactly the same behaviour as it is simply a sector-for-sector copy of the emulated drive.   That is one reason why it is recommended you try to repair the emulated drive first as a successful repair only takes a minute or so.   If you cannot repair the emulated drive you will not be able to repair the rebuilt one either. 

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.