If i can try something to help yu
Sorry, I don't have a solution.
If i can try something to help yu
Sorry, I don't have a solution.
I have exactly the same probleme my shared folder on the remotemount is empty when reboot.
didi someone find a solution, even if it is "dirty" like a command to launch after rebooting ?
thanks in advance
Well, my autofs method outside OMV still works fine...
Try the command
sudo mount -a
On the local server after the remote has been restarted.
my autofs method outside OMV still works fine...
So change the plugin to use autofs.
the problem is not on the mount, remotemount plugin works fine, the problem is the sharefolder is empty. if i update the sharefolder (changin comment for exemple) with the web admin in sharedfolder menu, all is become good.
does somedy know which command "links the sharedfolder to the remotemount" ? just to try to "re-launch" it
sorry for my poor english, i am french
Assume remote server R with share r. Local server L with share l.
So, are you saying that you, on L, mount r from R using remote mount and then from L share the remote mount r again as l? That is you share a shared folder?
I didn't think that was possible. You can't share a share again. Not using NFS at least. But I may be wrong? Is it possible with SMB/CIFS?
yes , it is what I do in SMB, and it worked very well with OMV 3 and works with OMV4 but not if i reboot.
If it did work in OMV3, and sometimes works in OMV4, then I suspect that it is a bug.
It should not work. I believe it breaks the rules for a POSIX filesystem. And it might even cause problems and data loss. But perhaps SMB/CIFS is special?
I believe it is possible to do this but it involves things like rebinds/binds and redirections so that r is shared as r from L, and still directly accessed only from R. Not as l on L. And I never got it to work. It makes my head hurt even to think about it. Inception shared shares shared sharing.
I doubt that OMV by default do rebinds/binds to allow sharing a mounted share like this.
It would be VERY interesting if I am wrong. It would mean that I could restructure my setup so that all shares on all my OMV servers are shared again from one server. Perhaps using NFS caching on a SSD using fs-cache.
i think the solution is here : https://unix.stackexchange.com…execute-after-fstab-mount
but i have to analyse and understand the different solution proposed because i have never manipulate mounting with systemd
i find the command
just after the boot i have to launch
and the shrefolder is well link to the remote mount.
in syslog at boot, i found that
Apr 25 20:31:37 openmediavault kernel: [ 24.599695] FS-Cache: Netfs 'cifs' registered for caching
Apr 25 20:31:37 openmediavault kernel: [ 24.599822] Key type cifs.spnego registered
Apr 25 20:31:37 openmediavault kernel: [ 24.599826] Key type cifs.idmap registered
Apr 25 20:31:37 openmediavault systemd[1]: Started OpenBSD Secure Shell server.
Apr 25 20:31:37 openmediavault kernel: [ 24.700817] CIFS VFS: Error connecting to socket. Aborting operation.
Apr 25 20:31:37 openmediavault kernel: [ 24.702027] CIFS VFS: cifs_mount failed w/return code = -101
Apr 25 20:31:37 openmediavault kernel: [ 24.702277] CIFS VFS: Error connecting to socket. Aborting operation.
Apr 25 20:31:37 openmediavault kernel: [ 24.704295] CIFS VFS: cifs_mount failed w/return code = -101
Apr 25 20:31:37 openmediavault systemd[1]: srv-fe9d3aa7\x2d7096\x2d4bbe\x2db304\x2d177d68c961ef.mount: Mount process exited, code=exited status=32
Apr 25 20:31:37 openmediavault systemd[1]: Failed to mount /srv/fe9d3aa7-7096-4bbe-b304-177d68c961ef.
Apr 25 20:31:37 openmediavault systemd[1]: Dependency failed for Remote File Systems.
Apr 25 20:31:37 openmediavault systemd[1]: remote-fs.target: Job remote-fs.target/start failed with result 'dependency'.
Apr 25 20:31:37 openmediavault systemd[1]: Dependency failed for Mount shared folder ABRAHAM to /sharedfolders/ABRAHAM.
Apr 25 20:31:37 openmediavault systemd[1]: sharedfolders-ABRAHAM.mount: Job sharedfolders-ABRAHAM.mount/start failed with result 'dependency'.
Apr 25 20:31:37 openmediavault systemd[1]: srv-fe9d3aa7\x2d7096\x2d4bbe\x2db304\x2d177d68c961ef.mount: Unit entered failed state.
Apr 25 20:31:37 openmediavault systemd[1]: srv-76271169\x2dc010\x2d45b4\x2db710\x2d1461078eec04.mount: Mount process exited, code=exited status=32
Apr 25 20:31:37 openmediavault systemd[1]: Failed to mount /srv/76271169-c010-45b4-b710-1461078eec04.
Apr 25 20:31:37 openmediavault systemd[1]: Dependency failed for Mount shared folder JOSEPH to /sharedfolders/JOSEPH.
Apr 25 20:31:37 openmediavault systemd[1]: sharedfolders-JOSEPH.mount: Job sharedfolders-JOSEPH.mount/start failed with result 'dependency'.
Apr 25 20:31:37 openmediavault systemd[1]: srv-76271169\x2dc010\x2d45b4\x2db710\x2d1461078eec04.mount: Unit entered failed state.
Display More
I
i find the command
just after the boot i have to launchand the sharefolder is well link to the remote mount.
in syslog at boot, i found that
CodeDisplay MoreApr 25 20:31:37 openmediavault kernel: [ 24.599695] FS-Cache: Netfs 'cifs' registered for caching Apr 25 20:31:37 openmediavault kernel: [ 24.599822] Key type cifs.spnego registered Apr 25 20:31:37 openmediavault kernel: [ 24.599826] Key type cifs.idmap registered Apr 25 20:31:37 openmediavault systemd[1]: Started OpenBSD Secure Shell server. Apr 25 20:31:37 openmediavault kernel: [ 24.700817] CIFS VFS: Error connecting to socket. Aborting operation. Apr 25 20:31:37 openmediavault kernel: [ 24.702027] CIFS VFS: cifs_mount failed w/return code = -101 Apr 25 20:31:37 openmediavault kernel: [ 24.702277] CIFS VFS: Error connecting to socket. Aborting operation. Apr 25 20:31:37 openmediavault kernel: [ 24.704295] CIFS VFS: cifs_mount failed w/return code = -101 Apr 25 20:31:37 openmediavault systemd[1]: srv-fe9d3aa7\x2d7096\x2d4bbe\x2db304\x2d177d68c961ef.mount: Mount process exited, code=exited status=32 Apr 25 20:31:37 openmediavault systemd[1]: Failed to mount /srv/fe9d3aa7-7096-4bbe-b304-177d68c961ef. Apr 25 20:31:37 openmediavault systemd[1]: Dependency failed for Remote File Systems. Apr 25 20:31:37 openmediavault systemd[1]: remote-fs.target: Job remote-fs.target/start failed with result 'dependency'. Apr 25 20:31:37 openmediavault systemd[1]: Dependency failed for Mount shared folder ABRAHAM to /sharedfolders/ABRAHAM. Apr 25 20:31:37 openmediavault systemd[1]: sharedfolders-ABRAHAM.mount: Job sharedfolders-ABRAHAM.mount/start failed with result 'dependency'. Apr 25 20:31:37 openmediavault systemd[1]: srv-fe9d3aa7\x2d7096\x2d4bbe\x2db304\x2d177d68c961ef.mount: Unit entered failed state. Apr 25 20:31:37 openmediavault systemd[1]: srv-76271169\x2dc010\x2d45b4\x2db710\x2d1461078eec04.mount: Mount process exited, code=exited status=32 Apr 25 20:31:37 openmediavault systemd[1]: Failed to mount /srv/76271169-c010-45b4-b710-1461078eec04. Apr 25 20:31:37 openmediavault systemd[1]: Dependency failed for Mount shared folder JOSEPH to /sharedfolders/JOSEPH. Apr 25 20:31:37 openmediavault systemd[1]: sharedfolders-JOSEPH.mount: Job sharedfolders-JOSEPH.mount/start failed with result 'dependency'. Apr 25 20:31:37 openmediavault systemd[1]: srv-76271169\x2dc010\x2d45b4\x2db710\x2d1461078eec04.mount: Unit entered failed state.
I have the exact same issue described by the OP.
I currently am using the remote-mount plugin to mount a network share on my router. I then make a shared folder based on this remote-mount and use rsnapshot to sync backups across it.
Occasionally, if the router reboots or there is some time of network interruption, the there will be a mounting error.
The only way I’ve found to recover from it is rebooting the OMV server. I run these rsnapshot backups nightly and I’ve had to setup a scheduled task to reboot the OMV server each night prior to backups. I’d really like to stop needing to fully reboot the server.
Is there any potential solutions for this?
Nevermind, it appears this may have been fixed at some point recently?
Now it seems to auto reconnect the remote mount point when interruptions occur.
I'm not sure if it does this by default or of this is because I ran the following command like @neeqkowlah mentioned above.
sudo systemctl start sharedfolders-backup.mount
^The name of the shared folder obviously depends on what you named yours.
Don’t have an account yet? Register yourself now and be a part of our community!