Plugin remote-mount - Auto mount & reload shared folder after network failure

  • 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.

    Be smart - be lazy. Clone your rootfs. This help is Grateful™.
    OMV 4: 9 x Odroid HC2 + 1 x Odroid HC1 + 1 x Raspberry Pi 4

  • 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?

    Be smart - be lazy. Clone your rootfs. This help is Grateful™.
    OMV 4: 9 x Odroid HC2 + 1 x Odroid HC1 + 1 x Raspberry Pi 4

  • 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.

    Be smart - be lazy. Clone your rootfs. This help is Grateful™.
    OMV 4: 9 x Odroid HC2 + 1 x Odroid HC1 + 1 x Raspberry Pi 4

  • i find the command
    just after the boot i have to launch

    Code
    sudo systemctl start sharedfolders-JOSEPH.mount

    and the shrefolder is well link to the remote mount.
    in syslog at boot, i found that



  • I

    i find the command
    just after the boot i have to launch

    Code
    sudo systemctl start sharedfolders-JOSEPH.mount

    and the sharefolder is well link to the remote mount.
    in syslog at boot, i found that



    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.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!