Jump to content

Error while mounting a unraid xfs encrypted on a plain debian


Recommended Posts

Hey everyone,
 

I am preparing to migrate my server to unraid, so I am testing some fail safes.
 

My test was: Open unraid, format a usb stick as XFS encrypted on a debian
 

I am decrypt with `sudo cryptsetup open /dev/sdd1 luksrecoverytarget -- type luks` and it is actually mapping it to `/dev/mapper/luksrecoverytarget`

Now the problem is to mount it...
 

`sudo mount /dev/mapper/luksrecoverytarget /tmp/data/` returns:
mount: /tmp/data: wrong fs type, bad option, bad superblock on /dev/mapper/luksrecoverytarget, missing codepage or helper program, or other error.
 

And more debugging here:
 

sudo xfs_repair /dev/mapper/luksrecoverytarget
Phase 1 - find and verify superblock...
Superblock has unknown compat/rocompat/incompat features (0x0/0x8/0x8).
Using a more recent xfs_repair is recommended.
Found unsupported filesystem features.  Exiting now.
 

sudo xfs_db -c uuid /dev/mapper/luksrecoverytarget
Superblock has unknown read-only compatible features (0x8) enabled.
Attempted to mount read-only compatible filesystem read-write.
Filesystem can only be safely mounted read only.
can't read superblock for AG 0
failed to read UUID from AG 0
cache_purge: shake on cache 0x2399920 left 1 nodes!?
cache_purge: shake on cache 0x2399920 left 1 nodes!?
cache_zero_check: refcount is 1, not zero (node=0x23ae0d0)

 

Any idea ? I am getting scared and probably will abort my plan to migrate to unraid.

Link to comment

It is not clear to me where the formatting and reading are taking place?

 

I would expect you to be partitioning and formatting on the Unraid side to ensure the partitioning conforms to Unraid standards.    You should then be trying to read this on the Debian system to prove it can be read outside Unraid.   Your narrative suggests you might be trying the other way around?

Link to comment
22 hours ago, itimpi said:

It is not clear to me where the formatting and reading are taking place?

 

I would expect you to be partitioning and formatting on the Unraid side to ensure the partitioning conforms to Unraid standards.    You should then be trying to read this on the Debian system to prove it can be read outside Unraid.   Your narrative suggests you might be trying the other way around?


Sorry I skipped that step on my text.

Yes, the preparation was:

I added the pendrive to a unraid installation with no disks! I added the pendrive to disk 1, choose XFS encrypted, and I started the array! 

After that I shut it down and then I am now trying to open the disk outside of unraid.

Link to comment
On 3/7/2023 at 2:26 PM, radicalrj said:

Using a more recent xfs_repair is recommended.
Found unsupported filesystem features.  Exiting now.

This suggests you are using an older and incompatible xfs progs, you can always boot using an Unraid trial key on a different computer and mount the disks there.

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