Posted May 29, 20232 yr I can't add a disk with xfs-encrypted format to my array. I've pre-cleared the disk, added it to the stopped array and set the format for that disk to xfs-encrypted (as for all the other disks in the array). When I start the array, a rebuild is triggered and I also get the "format" button. When I press that, it shortly says "formatting" but right after that it says "Unmountable: volume not encrypted". It also stays that way when the rebuild was done after 7h. I then tried again to format the disk, but the same happend, shorty showing "formatting", follow by "unmountable". I've also set the default disk format to xfs-encrypted as I've read something along these line in the German section of the forum, but to no avail. Does anyone have an idea how I can add an xfs-encrypted disk to my array? tom-diagnostics-20230529-1830.zip
May 29, 20232 yr Community Expert Not seeing why the error for now but why all those rebuilds? Adding a disk doesn't do or require a rebuild. Try this, change the fs to xfs (not encrypted), format the disk, if it formats change back to xfs-encrypted and format again, if it still fails post new diags.
May 29, 20232 yr Author Formatting to xfs worked. Then I stopped the array so that I could change to xfs-encrypted again and that didn't work. I'm back to "unmountable: volume not encrypted". tom-diagnostics-20230529-2222.zip
May 30, 20232 yr Community Expert May 29 22:22:02 Tom emhttpd: shcmd (45081): mkdir -p /mnt/disk6 May 29 22:22:02 Tom emhttpd: /mnt/disk6 mount error: Volume not encrypted May 29 22:22:02 Tom emhttpd: shcmd (45082): umount /mnt/disk6 Do you have a script or are you manually deleting the encryption key after array start?
May 30, 20232 yr Author I have the array set to auto-start and have a script that fetches the array passphrase from another machine. My guess is that this somehow trips up what I wanted to do. I've now got working what I wanted but not the way I wanted it (and I guess it isn't supposed to be that way). What I did now: stopped the array removed the disk that is unmouintable and can't be formatted rebooted the machine as a disk is missing in the array, it wouldn't auto-start and I get the option to enter the passphrase for the array added another disk to the array started the array which cause a rebuild due to the new disk now when I press "format" for the new disk, it does indeed format it and it is also encrypted. the capacity of the new disk is already emulated so I'm confident in 7 hours time when the rebuild is done I have an array of encrypted disks. I'm not really sure why I was bitten so badly, I assume it is related to the auto-start of the array, but that's just a gut feeling. The next time I'll add a new disk, I'll disable auto-start and see if typing in the passphrase of the array again saves me from going through this again.
May 30, 20232 yr Community Expert Solution I don't think the problem is array auto-start, problem is that the keyfile needs to be in RAM for Unraid to be able to format an encrypted disk, if /root/keyfile no longer exists when you format the disk the format will fail.
May 30, 20232 yr Author Ah, ok now I got you. Yes, that's right. I delete the file after the array has been started and I don't get prompted for a passphrase. I do when I use the UD plugin. Thanks that's sorted then.
May 9May 9 I have had this exact same issue, and I hope my solution can help others. I was trying to add a disk to an xfs encrypted array, and no matter what, it would either not be mountable, or when it did mount, it would mount as xfs and the array wouldnt use the disk at all. Array file system is set to xfs encryption, I do not have a script to load the passphrase upon reboot, so I do manually enter my passphrase each time. What I ended up doing that finally got it to work was I cleared the disk in UD - added to array, did not start array - went into disk settings for that disk from the array - noticed default file system for that disk was xfs, not xfs encrypted, changed to encrypted xfs - started array - formatted unmountable disk - disk finally formatted to xfs encrypted and was mounted, and usable in the array. finally after several months, this worked. TL;DR Step 1: Stop array Step 2: clear disk partition in UD Step 3: add disk to array Step 3a: ensure array file system is correct in disk settings under settings tab Step 4: ensure disk file system is correct under that disk settings from array Step 5: start array Step 6: format unmountable disk Step 7: enjoy fully encrypted array as God intended!
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.