Jump to content

Unmountable drives in new config coming from Freenas ZFS


Recommended Posts

I think I have messed up in a big way!

 

Background:

I am coming from a freenas install. I installed the zfs plugin to mount my pool in unraid and copy to a temporary array on unraid. This worked just fine. After doing that I added the drives from the zfs pool to the unraid array. They all formatted fine and my array was working fine. I decided to remove some of the drives from the unraid array. Moved all of my data from the drives to other drives. After doing that I stopped the array created a new config and added back the drives I wanted to keep in the array making sure to put parity in correct slot. Once I started the array the parity build started but 3 of my drives reported back as unmountable and needed to be formatted. 1 of the 3 drives has over 1tb of data on it that I dont want to lose.

 

I am starting to think that I should have destroyed the zfs pool somehow and that the unraid array is sitting on top of this zfs pool? But surely when I added the entire pool to the unraid array and formatted that should have killed it. 

 

My other thought is that the zfs pool plugin is still running and may be causing an issue? If I start a new config a couple of the drives show as "zfs_member" but not all the 8 drives that were part of the pool. Should I remove the zfs plugin and reboot?  I dont want to do anything until someone can possibly point me in the wrong direction. Want to minimize the risk of losing family photos.

 

Thanks chaps

 

UNRAIDformat.png

The 3 drives that were part of the zfs pool showing as unmountable

 

UNRAIDnofilesystem.png

If I stop the array and remove the drives from the array so that they show up in unnassigned I see the following. No file system and cant mount. The partitions are there though.

 

 

UNRAIDunmountable.png

unraid-diagnostics-20210813-0717.zip

Edited by molesza
Link to comment

I temporarily removed all drives from the array whilst stopped so that "unassigned drives" would read them. Shows file systems all over the place.

 

I have also realised that the 2tb drive that has information on it and is unmountable was never part of the ZFS pool. It was one of the original drives in the unraid array to move data from the zfs pool to the array.

 

There were 8 drives total in the ZFS pool. 1vdev of 4x2tb drives and another vdev of 4x4tb drives, all part of the same ZFS pool. The only drives showing up as "zfs_member" are the 4x4tb drives. One of those 4tb drives is the current parity drive so cant possibly be part of a ZFS pool.

 

UNRAIDunnassigned.png

Edited by molesza
Link to comment

Thanks for your reply! Below is the output.

 

I stopped the array and specified "xfs" for the filesystem on those drives instead of "auto" and the array starts up with all drives mounted! Which is great! However I feel there is an underlying problem that needs sorting.

 

I have removed the ZFS plugin and the "ZFS Companion" plugin and rebooted. No reports of "zfs_member" on drives now.

 

image.thumb.png.cb2d3c0c984ab8e820b8c23d0ace51fe.png 

Link to comment
50 minutes ago, molesza said:

I stopped the array and specified "xfs" for the filesystem on those drives instead of "auto" and the array starts up with all drives mounted! Which is great!

That's good, but that means there's a problem with the auto function, since it wasn't detecting any of the supported filesystems, it's not just Unraid since UD also didn't detect a valid filesystem on those disks, please also post output of:

blkid

 

53 minutes ago, molesza said:

I have removed the ZFS plugin and the "ZFS Companion" plugin and rebooted. No reports of "zfs_member" on drives now.

Yes, that can happen with previously used zfs drives since they use 2 partitions and Unraid only wipes one of them, but it's harmless.

Link to comment
12 minutes ago, JorgeB said:

Yeah, those three disks sdf, sdg and sdh don't have a filesystem UUID, was anything different done with them when they were added to the array and formatted?

 

I am not sure unfortunately. Can I create a UUID on those drives now? If not I could transfer off all the data to other drives and reformat? Or when they eventually get replaced that would sort out the problem I guess? It doesnt really bother me, as long as the integrity of the array is OK.

Edited by molesza
Link to comment

Data should be fine but if you leave them like that you can run into trouble mounting them in the future, even if you just forget to set the fs or need to mount them with UD, try this, it should be safe but first do it on one of the empty disks just in case, start the array in maintenance mode them type:

 

xfs_admin -U generate /dev/mdX

 

Replace X with the disk number, e.g. md8, then start array in normal mode and post output of blkid again.

Link to comment

It came back with a new UUID when i ran the command but it still didnt mount and the blkid command is attached.

 

I have to go to the office now and I'm quite worried about losing data. I am going to mount forcing XFS on those three drives and let parity rebuild. I'm thinking once that is done I will:

 

1) transfer the data off all those drives

2) set filesystem back to auto

3) stop and start the array

4) format the unmountable drives

 

This should do the trick right? I'm just worried about having no parity and a drive failing.

 

Really Really appreciate your help so far.

UNRAIDblkid4.png

Link to comment

OK all good! I let the array rebuild parity. Then I used Unbalance to move the data off of the drive that still had data on it. After this I stopped the array and set all the disks to "auto" on file system. Started the array and the 3 disks were waiting to be formatted. I went ahead and did this and now the drives are all mounting on xfs automatically. Thank you JorgeB !

Link to comment
1 hour ago, molesza said:

Unraid did mention that it would rebuild parity when I did this but it only formatted the drives. Maybe I should run a parity check?

In principle the format operation would have updated parity but as mentioned it would not do any harm to run a check to make sure it is valid.

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