Hello!
I have OMV 4.1.9 (clean installation) with linux software raid5 (volume MD127, clean, created with OMV 3.x, lately mounted on new 4.x OMV server, i do not know but may be this is important)
Volume contains 6 shared folders, some of them created on old 3.x server, some - on new 4.x
Everything working fine, all folders are accessible,
BUT
some time ago i`ve noticed what any operation with shared folders section ended with the error after "Apply" button is pressed
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl restart 'sharedfolders-WORKSHOP.mount' 2>&1' with exit code '1': Job for sharedfolders-WORKSHOP.mount failed. See "systemctl status sharedfolders-WORKSHOP.mount" and "journalctl -xe" for details.
Error #0:
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl restart 'sharedfolders-WORKSHOP.mount' 2>&1' with exit code '1': Job for sharedfolders-WORKSHOP.mount failed.
See "systemctl status sharedfolders-WORKSHOP.mount" and "journalctl -xe" for details. in /usr/share/php/openmediavault/system/process.inc:175
Stack trace:
#0 /usr/share/php/openmediavault/system/systemctl.inc(86): OMV\System\Process->execute(Array, 1)
#1 /usr/share/php/openmediavault/system/systemctl.inc(160): OMV\System\SystemCtl->exec('restart', NULL, false)
#2 /usr/share/openmediavault/engined/module/sharedfolders.inc(66): OMV\System\SystemCtl->restart()
#3 /usr/share/openmediavault/engined/rpc/config.inc(194): OMVModuleSharedfolders->startService()
#4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
#5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
#7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(565): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusLp...', '/tmp/bgoutputhJ...')
#8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#9 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
#10 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
#11 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#12 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
#13 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
#14 {main}
Alles anzeigen
systemctl status sharedfolders-WORKSHOP.mount
root@NASserver1:~# systemctl status sharedfolders-WORKSHOP.mount
● sharedfolders-WORKSHOP.mount - Mount shared folder WORKSHOP to /sharedfolders/WORKSHOP
Loaded: loaded (/etc/systemd/system/sharedfolders-WORKSHOP.mount; enabled; vendor preset: enabled)
Active: active (mounted) (Result: exit-code) since Wed 2018-08-29 15:50:02 MSK; 12min ago
Where: /sharedfolders/WORKSHOP
What: /dev/md127
Process: 20067 ExecUnmount=/bin/umount /sharedfolders/WORKSHOP (code=exited, status=32)
Tasks: 0 (limit: 4915)
CGroup: /system.slice/sharedfolders-WORKSHOP.mount
авг 29 13:43:32 NASserver1 systemd[1]: Failed unmounting Mount shared folder WORKSHOP to /sharedfolders/WORKSHOP.
авг 29 14:47:04 NASserver1 systemd[1]: Unmounting Mount shared folder WORKSHOP to /sharedfolders/WORKSHOP...
авг 29 14:47:04 NASserver1 systemd[1]: sharedfolders-WORKSHOP.mount: Mount process exited, code=exited status=32
авг 29 14:47:04 NASserver1 systemd[1]: Failed unmounting Mount shared folder WORKSHOP to /sharedfolders/WORKSHOP.
авг 29 15:14:19 NASserver1 systemd[1]: Unmounting Mount shared folder WORKSHOP to /sharedfolders/WORKSHOP...
авг 29 15:14:19 NASserver1 systemd[1]: sharedfolders-WORKSHOP.mount: Mount process exited, code=exited status=32
авг 29 15:14:19 NASserver1 systemd[1]: Failed unmounting Mount shared folder WORKSHOP to /sharedfolders/WORKSHOP.
авг 29 15:50:02 NASserver1 systemd[1]: Unmounting Mount shared folder WORKSHOP to /sharedfolders/WORKSHOP...
авг 29 15:50:02 NASserver1 systemd[1]: sharedfolders-WORKSHOP.mount: Mount process exited, code=exited status=32
авг 29 15:50:02 NASserver1 systemd[1]: Failed unmounting Mount shared folder WORKSHOP to /sharedfolders/WORKSHOP.
Alles anzeigen
"WORKSHOP" in the code above is one of the 6 shared folders. journalctl said that some of the shared folders was unmounted? but in the case of WORCKSHOP -
NASserver1 systemd[1]: Failed unmounting Mount shared folder WORKSHOP to /sharedfolders/WORKSHOP.
This situation rep every time when i try to add the new shared folder, change permissions or privileges or even try to add comments to the folder!
Please, point me where to dig the roots of this problem!
UPDATE:
I`ve tried to look on the content of RAID root dir and found this
root@NASserver1:~# ls /srv/dev-disk-by-label-DATA
ADDTestFolder aquota.group aquota.user DATA_ARHIV DOCS GoodSync HOME lost+found MEDIA Nemo plexmediaserver PRESENTATIONS TimeMashine VirtuaBoxer WORKSHOP www WWW
root@NASserver1:~#
The first Folder in the list "ADDTestFolder" is the folder i`ve tried to add via OMV shared folders section of web interface. It IS ACTUALLY ADDED but i got an error and this folder is absent in OMV shared folders list