Hello,
I have two raspberrpi4 with omv running. Now I wanted to add a external 18TB HDD on each omvpi. On the one setup it worked properly but on the other setup something went wrong with password etc (not sure at all) so I deleted the encrypted device again restboot an created a new encrypted device. But i cant mount with omv.
When I type in the password to mount it, i get the following error:
Fehler #0:
OMV\Exception: Unable to unlock encrypted device: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; echo -n 'mypersonalpasswdisnotfortheinternet' | cryptsetup luksOpen '/dev/sda' 'sda'-crypt --key-file=- 2>&1' with exit code '5': Device sda-crypt already exists. in /usr/share/openmediavault/engined/rpc/luks.inc:243
Stack trace:
#0 [internal function]: OMVRpcServiceLuksMgmt->openContainer(Array, Array)
#1 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#2 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('openContainer', Array, Array)
#3 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('LuksMgmt', 'openContainer', Array, Array, 1)
#4 {main}
So i did some research und found i way to mount the volume by putty commans line:
sudo cryptsetup luksOpen /dev/sda lukslvm
->
After this the volume is mounted an I could create a new file system BTFRS in the OMV webinterface and it even shows up.
Then OMV Interface forces me to save this changes but it does not succeed with the following error:
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 fstab 2>&1' with exit code '1': raspberrypi: ---------- ID: create_filesystem_mountpoint_d361fb77-212e-49f2-bcfa-8cac2000c3e5 Function: file.accumulated Result: True Comment: Accumulator create_filesystem_mountpoint_d361fb77-212e-49f2-bcfa-8cac2000c3e5 for file /etc/fstab was charged by text Started: 09:48:38.715803 Duration: 2.395 ms Changes: ---------- ID: mount_filesystem_mountpoint_d361fb77-212e-49f2-bcfa-8cac2000c3e5 Function: mount.mounted Name: /srv/dev-disk-by-uuid-141f01a4-5b03-4f6e-8767-8cac55fd3baa Result: True Comment: Target was already mounted Started: 09:48:38.720365 Duration: 324.742 ms Changes: ---------- umount: Forced remount because options (user_xattr) changed ---------- ID: create_filesystem_mountpoint_bd42ab22-d03e-404b-9e7f-4825d495fd13 Function: file.accumulated Result: True Comment: Accumulator create_filesystem_mountpoint_bd42ab22-d03e-404b-9e7f-4825d495fd13 for file /etc/fstab was charged by text Started: 09:48:39.045851 Duration: 3.674 ms Changes: ---------- ID: mount_filesystem_mountpoint_bd42ab22-d03e-404b-9e7f-4825d495fd13 Function: mount.mounted Name: /srv/dev-disk-by-uuid-cf1a0583-f711-4225-a498-8f92d58dddbc Result: True Comment: Started: 09:48:39.049963 Duration: 101.39 ms Changes: ---------- ID: create_filesystem_mountpoint_b646811b-8de4-4f4b-94b4-5a2142969283 Function: file.accumulated Result: True Comment: Accumulator create_filesystem_mountpoint_b646811b-8de4-4f4b-94b4-5a2142969283 for file /etc/fstab was charged by text Started: 09:48:39.152127 Duration: 3.212 ms Changes: ---------- ID: mount_filesystem_mountpoint_b646811b-8de4-4f4b-94b4-5a2142969283 Function: mount.mounted Name: /srv/dev-disk-by-id-dm-name-lukslvm Result: True Comment: Target was successfully mounted Started: 09:48:39.155726 Duration: 156.557 ms Changes: ---------- mount: True ---------- ID: create_remotemount_mountpoint_8bec11b3-9bea-46b1-ad82-53c63c891770 Function: file.accumulated Result: True Comment: Accumulator create_remotemount_mountpoint_8bec11b3-9bea-46b1-ad82-53c63c891770 for file /etc/fstab was charged by text Started: 09:48:39.313485 Duration: 4.708 ms Changes: ---------- ID: mount_filesystem_mountpoint_8bec11b3-9bea-46b1-ad82-53c63c891770 Function: mount.mounted Name: /srv/8bec11b3-9bea-46b1-ad82-53c63c891770 Result: True Comment: Target was already mounted Started: 09:48:39.318774 Duration: 159.913 ms Changes: ---------- umount: Forced remount because options (iocharset=utf8) changed ---------- ID: create_remotemount_mountpoint_0956d660-73fc-491f-8da8-259d619cb03c Function: file.accumulated Result: True Comment: Accumulator create_remotemount_mountpoint_0956d660-73fc-491f-8da8-259d619cb03c for file /etc/fstab was charged by text Started: 09:48:39.479686 Duration: 5.05 ms Changes: ---------- ID: mount_filesystem_mountpoint_0956d660-73fc-491f-8da8-259d619cb03c Function: mount.mounted Name: /srv/0956d660-73fc-491f-8da8-259d619cb03c Result: True Comment: Target was already mounted Started: 09:48:39.485297 Duration: 110.332 ms Changes: ---------- umount: Forced remount because options (iocharset=utf8) changed ---------- ID: create_remotemount_mountpoint_d2ad9d01-b507-4862-bb00-7f8dd1152f20 Function: file.accumulated Result: True Comment: Accumulator create_remotemount_mountpoint_d2ad9d01-b507-4862-bb00-7f8dd1152f20 for file /etc/fstab was charged by text Started: 09:48:39.596346 Duration: 3.688 ms Changes: ---------- ID: mount_filesystem_mountpoint_d2ad9d01-b507-4862-bb00-7f8dd1152f20 Function: mount.mounted Name: /srv/d2ad9d01-b507-4862-bb00-7f8dd1152f20 Result: True Comment: Target was already mounted Started: 09:48:39.600467 Duration: 116.572 ms Changes: ---------- umount: Forced remount because options (iocharset=utf8) changed ---------- ID: create_remotemount_mountpoint_c77486d4-50e6-40ec-8fd1-80971215fe76 Function: file.accumulated Result: True Comment: Accumulator create_remotemount_mountpoint_c77486d4-50e6-40ec-8fd1-80971215fe76 for file /etc/fstab was charged by text Started: 09:48:39.717762 Duration: 5.377 ms Changes: ---------- ID: mount_filesystem_mountpoint_c77486d4-50e6-40ec-8fd1-80971215fe76 Function: mount.mounted Name: /srv/c77486d4-50e6-40ec-8fd1-80971215fe76 Result: False Comment: mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) Started: 09:48:39.723632 Duration: 125.386 ms Changes: ---------- ID: append_fstab_entries Function: file.blockreplace Name: /etc/fstab Result: True Comment: Changes were made Started: 09:48:39.857118 Duration: 25.494 ms Changes: ---------- diff: --- +++ @@ -5,6 +5,7 @@ # use dphys-swapfile swap[on|off] for that # >>> [openmediavault] /dev/disk/by-uuid/141f01a4-5b03-4f6e-8767-8cac55fd3baa /srv/dev-disk-by-uuid-141f01a4-5b03-4f6e-8767-8cac55fd3baa ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2 +/dev/disk/by-uuid/cf1a0583-f711-4225-a498-8f92d58dddbc /srv/dev-disk-by-uuid-cf1a0583-f711-4225-a498-8f92d58dddbc ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2 /dev/disk/by-id/dm-name-lukslvm /srv/dev-disk-by-id-dm-name-lukslvm btrfs defaults,nofail 0 2 //192.168.178.22/f100 /srv/8bec11b3-9bea-46b1-ad82-53c63c891770 cifs _netdev,iocharset=utf8,vers=1.0,nofail,credentials=/root/.cifscredentials-37d342d1-61ad-44b5-a960-a04ac92a71c6 0 0 //192.168.178.22/d100 /srv/0956d660-73fc-491f-8da8-259d619cb03c cifs _netdev,iocharset=utf8,vers=1.0,nofail,credentials=/root/.cifscredentials-bdae06b6-35aa-4d41-975b-1ac5717565cb 0 0 Summary for raspberrypi ------------- Succeeded: 14 (changed=6) Failed: 1 ------------- Total states run: 15 Total run time: 1.148 s
This is how it looks without the chance applying changes:
Look a little like chaos with outher device. This might be caused by remote mount what I needed to save files from my old synology nas.
But I dont understand how to clean up the setup that I am able to mount the new device by OMV and even save the changes.
Thanks in advance for your help!
BR pinky