Read Unraid disk in Ubuntu


Recommended Posts

I’ve been looking all over and can’t find details of this. So, please be kind and show me how bad my search-fu is.

 

Pulled a drive out of Unraid and I’m trying to read it in Ubuntu, while preserving the data. Ubuntu sees the drive but it’s tagged as “linux_raid_member” and I’m unable to mount the XFS partition. I’ve seen references to removing the MD tag using mdadm but I can’t sort out how to make that work.

 

Bottom line, I want to read a XFS drive out of Unraid in an Ubuntu system.

 

Try not to flame me too hard, I really did search for this.

Link to comment

Does it mount ok in Unassigned Devices in Unraid?

 

Something is strange with your setup, Unraid doesn't use mdadm at all, and to my knowledge a valid XFS drive in Unraid would never be set up as anything other than a single normal partition across the whole drive. A valid drive in Unraid should mount with no issues in any linux that supports modern XFS.

Link to comment
8 hours ago, trurl said:

Unless you mount it read-only, you will invalidate Unraid parity

I'm not concerned about that. If, for some reason, I had Unraid drives but no Unraid server available to me, how do I read the drives?

 

I appreciate that you guys are giving me workarounds to my situation, but it's not really answering my question. How can I read an Unraid XFS formatted drive in an Ubuntu system when it's marked as "linux_raid_member"?

Link to comment
7 minutes ago, Bitbass said:

missing what you're asking

There is the array, which can be (optionally) protected by parity, and there are pools. The default (and only pool until 6.9) is cache. You can have multiple pools, and each pool can have multiple disks if they are btrfs instead of XFS, so that is what I was wondering about.

 

7 minutes ago, Bitbass said:

treating Unraid like a JBOD

Your use of the term JBOD makes me wonder. What controller was the drive attached to in Unraid? Are you using RAID controllers?

Link to comment
2 minutes ago, trurl said:

There is the array, which can be (optionally) protected by parity, and there are pools. The default (and only pool until 6.9) is cache. You can have multiple pools, and each pool can have multiple disks if they are btrfs instead of XFS, so that is what I was wondering about.

 

Your use of the term JBOD makes me wonder. What controller was the drive attached to in Unraid? Are you using RAID controllers?

That drive would have been attached through an HBA. I think it's a 9207, but I could be wrong. No RAID enabled on that. Unraid definitely sees the drives as individuals.

 

Unrelated, so I hope I'm not going to confuse things. I also have a Dell R710 with a H700(?) and I have to explicitly create RAID0's for each drive if I want to pass those through without RAID being applied. That's not the case with this instance of Unraid. Just giving you some context for my familiarity with these. 

Link to comment
1 hour ago, Bitbass said:

I appreciate that you guys are giving me workarounds to my situation, but it's not really answering my question. How can I read an Unraid XFS formatted drive in an Ubuntu system when it's marked as "linux_raid_member"?

And you are not hearing what we are telling you, normally Unraid XFS drives do NOT show as linux raid member, implying there is something wrong. I was trying to determine whether the drive currently mounts correctly in Unraid. Given what you are telling us, I don't think it will.

 

20 hours ago, JonathanM said:

Something is strange with your setup, Unraid doesn't use mdadm at all, and to my knowledge a valid XFS drive in Unraid would never be set up as anything other than a single normal partition across the whole drive. A valid drive in Unraid should mount with no issues in any linux that supports modern XFS.

 

Link to comment
35 minutes ago, JorgeB said:

This suggest the drive was previously used with Linux RAID and not properly wiped before using it with Unraid

If that is indeed the case, is there a way to reset the partition layout to one that can be mounted in a general purpose linux without erasing the existing format and data?

Link to comment
3 minutes ago, JonathanM said:

If that is indeed the case, is there a way to reset the partition layout to one that can be mounted in a general purpose linux without erasing the existing format and data?

Possibly, using wipefs to delete just that info, but it's something I've never tried, so cannot help with.

Link to comment

In case someone else stumbles across this (including me) here's what I did. And it worked fine this time, but who knows if each situation will be a little different. I imagine the first command has the potential to destroy things, so use caution:


 

sudo wipefs /dev/sdf
sudo wipefs -o 0x1000 -f /dev/sdf
sudo fdisk -l
sudo xfs_repair /dev/sdf1
sudo mount /dev/sdf1 /mnt/sdf

 

I also modified fstab because of the partition being in there. It might end up being a problem for me later, but I know where to go then.  

 

Thanks for getting me headed in the right direction, even if I had trouble seeing it! :) 

 

  • Like 1
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.