I'm trying to use MergeFS plugin on my new OMV6 installation. When I merge 2 of my shared folders (each one pointing to a folder named "media" on different disks), everything is ok. However, if I try to add a third shared folder (again, pointing to a folder named "media" on a third different drive), then I get this error:
Code
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 mergerfs 2>&1' with exit code '1': debian:
----------
ID: configure_pool_dir
Function: file.directory
Name: /srv/mergerfs
Result: True
Comment: The directory /srv/mergerfs is in the correct state
Started: 12:28:05.945908
Duration: 4.889 ms
Changes:
----------
ID: remove_mergerfs_mount_files
Function: module.run
Result: True
Comment: file.find: ['/etc/systemd/system/srv-mergerfs-media.mount']
Started: 12:28:05.951368
Duration: 2.54 ms
Changes:
----------
file.find:
- /etc/systemd/system/srv-mergerfs-media.mount
----------
ID: configure_mergerfs_media
Function: file.managed
Name: /etc/systemd/system/srv-mergerfs-media.mount
Result: True
Comment: File /etc/systemd/system/srv-mergerfs-media.mount updated
Started: 12:28:05.954028
Duration: 35.597 ms
Changes:
----------
diff:
New file
mode:
0644
----------
ID: systemd-reload_media
Function: cmd.run
Name: systemctl daemon-reload
Result: True
Comment: Command "systemctl daemon-reload" run
Started: 12:28:05.990282
Duration: 239.331 ms
Changes:
----------
pid:
11222
retcode:
0
stderr:
stdout:
----------
ID: enable_media_mergerfs
Function: service.enabled
Name: srv-mergerfs-media.mount
Result: True
Comment: Service srv-mergerfs-media.mount is already enabled, and is in the desired state
Started: 12:28:06.264423
Duration: 36.432 ms
Changes:
----------
ID: restart_media_mergerfs
Function: cmd.run
Name: systemctl restart srv-mergerfs-media.mount
Result: False
Comment: Command "systemctl restart srv-mergerfs-media.mount" run
Started: 12:28:06.301357
Duration: 15.783 ms
Changes:
----------
pid:
11247
retcode:
1
stderr:
Failed to restart srv-mergerfs-media.mount: Unit srv-mergerfs-media.mount failed to load properly: File name too long.
See system logs and 'systemctl status srv-mergerfs-media.mount' for details.
stdout:
Summary for debian
------------
Succeeded: 5 (changed=4)
Failed: 1
------------
Total states run: 6
Total run time: 334.572 ms
OMV\ExecException: 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 mergerfs 2>&1' with exit code '1': debian:
----------
ID: configure_pool_dir
Function: file.directory
Name: /srv/mergerfs
Result: True
Comment: The directory /srv/mergerfs is in the correct state
Started: 12:28:05.945908
Duration: 4.889 ms
Changes:
----------
ID: remove_mergerfs_mount_files
Function: module.run
Result: True
Comment: file.find: ['/etc/systemd/system/srv-mergerfs-media.mount']
Started: 12:28:05.951368
Duration: 2.54 ms
Changes:
----------
file.find:
- /etc/systemd/system/srv-mergerfs-media.mount
----------
ID: configure_mergerfs_media
Function: file.managed
Name: /etc/systemd/system/srv-mergerfs-media.mount
Result: True
Comment: File /etc/systemd/system/srv-mergerfs-media.mount updated
Started: 12:28:05.954028
Duration: 35.597 ms
Changes:
----------
diff:
New file
mode:
0644
----------
ID: systemd-reload_media
Function: cmd.run
Name: systemctl daemon-reload
Result: True
Comment: Command "systemctl daemon-reload" run
Started: 12:28:05.990282
Duration: 239.331 ms
Changes:
----------
pid:
11222
retcode:
0
stderr:
stdout:
----------
ID: enable_media_mergerfs
Function: service.enabled
Name: srv-mergerfs-media.mount
Result: True
Comment: Service srv-mergerfs-media.mount is already enabled, and is in the desired state
Started: 12:28:06.264423
Duration: 36.432 ms
Changes:
----------
ID: restart_media_mergerfs
Function: cmd.run
Name: systemctl restart srv-mergerfs-media.mount
Result: False
Comment: Command "systemctl restart srv-mergerfs-media.mount" run
Started: 12:28:06.301357
Duration: 15.783 ms
Changes:
----------
pid:
11247
retcode:
1
stderr:
Failed to restart srv-mergerfs-media.mount: Unit srv-mergerfs-media.mount failed to load properly: File name too long.
See system logs and 'systemctl status srv-mergerfs-media.mount' for details.
stdout:
Summary for debian
------------
Succeeded: 5 (changed=4)
Failed: 1
------------
Total states run: 6
Total run time: 334.572 ms in /usr/share/php/openmediavault/system/process.inc:196
Stack trace:
#0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(62): OMV\System\Process->execute()
#1 /usr/share/openmediavault/engined/rpc/config.inc(167): OMV\Engine\Module\ServiceAbstract->deploy()
#2 [internal function]: Engined\Rpc\Config->applyChanges(Array, Array)
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
#5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(588): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusLq...', '/tmp/bgoutput3c...')
#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#7 /usr/share/openmediavault/engined/rpc/config.inc(189): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
#8 [internal function]: Engined\Rpc\Config->applyChangesBg(Array, Array)
#9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
#11 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
#12 {main}
Alles anzeigen
If I run systemctl status srv-mergerfs-media.mount, I get this:
Code
srv-mergerfs-media.mount - MergerFS mount for media
Loaded: error (Reason: Unit srv-mergerfs-media.mount failed to load properly: File name too long.)
Active: inactive (dead)
Where: /srv/mergerfs/media
What: /srv/dev-disk-by-uuid-00259a2c-d4c1-4c25-8464-6f6d7e10ea74/media/:/srv/dev-disk-by-uuid-814e4bb0-de6d-4587-946d-c11316764bf5/media/:/srv/dev-disk-by-uuid-e3ba9cb9-e610-4b98-ad8f-87bc4e4099db/media/
(Notice the three paths I'm trying to merge, showed above. The third path I'm trying to add is the /srv/dev-disk-by-uuid-814e4bb0-de6d-4587-946d-c11316764bf5/media. If I just add the other two, I don't get this error)
I've tried to google this, but I have no clue where to start digging... Any help will be appreciated.