Other posts for reference:
LUKS Automount no longer working on new hardware
RE: LUKS + KeyFile + AutoMount? [SOLVED]
I moved my omv setup from an intel server to a new hp small form factor pc, now 3 of my data drives will not auto mount anymore.
My current fstab is:Display MoreCode
/dev/disk/by-label/data1 /srv/dev-disk-by-label-data1 ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2/dev/disk/by-label/data2 /srv/dev-disk-by-label-data2 ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2/dev/disk/by-label/data3 /srv/dev-disk-by-label-data3 ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2/dev/disk/by-label/data4 /srv/dev-disk-by-label-data4 ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
In addition I have crypttab setup for auto unlocking:Code
This always worked before on the old server.
Now syslog shows:Code
Repeating for each drive. Every time OMV starts it shows "a start job is running for /dev/disk/" cycling through the uuid and label of each drive for 90 seconds before it fails. the data1 partition on the system drive still works for some reason I don't understand.
Now OMV doesn't load because of an issue with trying to load mergerfs while the drives aren't mounted, so i tried to remove the unionfs from the omv config manually, now it shows a bunch of errors and the file systems and luks tabs arent loading in the web interface.
Couldn't extract an UUID from the provided path '/dev/disk/by-label/data2'.
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run --no-color quota 2>&1' with exit code '1': omv-server: Data failed to compile: ---------- Rendering SLS 'base:omv.deploy.quota.default' failed: while constructing a mapping in "<unicode string>", line 42, column 1 found conflicting ID 'quota_off_no_quotas_' in "<unicode string>", line 69, column 1
So essentially the entire omv system is now broken, and I even tried creating a new omv install on a flash drive, and it still won't auto mount the data drives. At this point I'm better off just running a media server off Windows 10 but cant convert my ext4 drives back to ntfs. This is too much troubleshooting for a simple media server with basic encryption.
I don't understand how just using a different motherboard has caused automounting to stop working.
You should drop to terminal and start testing the disks. See how if unlocking manually works, then test the key file. Just go one by one. Maybe remove the key file from the crypttab change it to - and test to be prompted at boot for unlock n