Mount previously created encrypted disks


Recommended Posts

Hi,

 

I'm thinking of migrating from OMV 6 to Unraid 6.12.8.

 

I have four disks, which are first encrypted with LUKS and then formatted as XFS.

 

However, when I add the disks to Unraid array and select "xfs - encrypted" as file system type, enter my LUKS password and start the array, I get "Unmountable: Unsupported partition layout".

 

Here are logs from this operation:

Mar 14 03:22:28 Tower emhttpd: Opening encrypted volumes...
Mar 14 03:22:28 Tower emhttpd: shcmd (215): touch /boot/config/forcesync
Mar 14 03:22:28 Tower emhttpd: Mounting disks...
Mar 14 03:22:28 Tower emhttpd: mounting /mnt/disk1
Mar 14 03:22:28 Tower emhttpd: shcmd (216): mkdir -p /mnt/disk1
Mar 14 03:22:28 Tower emhttpd: /mnt/disk1 mount error: Unsupported partition layout
Mar 14 03:22:28 Tower emhttpd: shcmd (217): rmdir /mnt/disk1
Mar 14 03:22:28 Tower emhttpd: mounting /mnt/disk2
Mar 14 03:22:28 Tower emhttpd: shcmd (218): mkdir -p /mnt/disk2
Mar 14 03:22:28 Tower emhttpd: /mnt/disk2 mount error: Unsupported partition layout
Mar 14 03:22:28 Tower emhttpd: shcmd (219): rmdir /mnt/disk2
Mar 14 03:22:28 Tower emhttpd: mounting /mnt/disk3
Mar 14 03:22:28 Tower emhttpd: shcmd (220): mkdir -p /mnt/disk3
Mar 14 03:22:28 Tower emhttpd: /mnt/disk3 mount error: Unsupported partition layout
Mar 14 03:22:28 Tower emhttpd: shcmd (221): rmdir /mnt/disk3
Mar 14 03:22:28 Tower emhttpd: mounting /mnt/disk4
Mar 14 03:22:28 Tower emhttpd: shcmd (222): mkdir -p /mnt/disk4
Mar 14 03:22:28 Tower emhttpd: /mnt/disk4 mount error: Unsupported partition layout
Mar 14 03:22:28 Tower emhttpd: shcmd (223): rmdir /mnt/disk4

 

If I open a shell, I can easily decrypt and mount the disks with:

root@Tower:~# cryptsetup open /dev/sdc sdc_decrypted
Enter passphrase for /dev/sdc: 

root@Tower:~# mount /dev/mapper/sdc_decrypted /mnt/sdc_decrypted

root@Tower:~# mount
....
/dev/mapper/sdc_decrypted on /mnt/sdc_decrypted type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)

 

What am I missing here?

 

Cheers!

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.