Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Feature Requests
  3. Feature request: Auto try to reconnect NFS backup targets if they went offline between two backup tasks.

Feature request: Auto try to reconnect NFS backup targets if they went offline between two backup tasks.

Scheduled Pinned Locked Moved Feature Requests
nfs
3 Posts 2 Posters 442 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    holm
    wrote on last edited by girish
    #1

    I use a nfs target for backups. and sometimes i have to restart some servers or routers or vpn. and even sometimes after this the backup volume is not mounted.

    Screenshot-2023-04-19-21-06-18.png

    then the next backup fails. and the only thing i have to do is to click "remount storage" one time, 1 second later the mountpoint is green again and then i can manually start a new backup or wait for the automatic one.

    it would be nice, if the backup task clicks the remount storage button for me 😉

    i am not sure if this is a feature request or a bug report 😇

    girishG 1 Reply Last reply
    4
    • H holm

      I use a nfs target for backups. and sometimes i have to restart some servers or routers or vpn. and even sometimes after this the backup volume is not mounted.

      Screenshot-2023-04-19-21-06-18.png

      then the next backup fails. and the only thing i have to do is to click "remount storage" one time, 1 second later the mountpoint is green again and then i can manually start a new backup or wait for the automatic one.

      it would be nice, if the backup task clicks the remount storage button for me 😉

      i am not sure if this is a feature request or a bug report 😇

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @holm yeah agreed. I am not sure why the kernel or the filesystem doesn't have a mechanism for this. We want this for CIFS and SSHFS as well.

      Does anyone know if there is any obvious reconnection mechanism? FWIW, we use systemd mounts.

      1 Reply Last reply
      1
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by girish
        #3

        It seems that one can setup an "automount" that will make systemd automatically mount when a mount is accessed . It's unclear if this also applies to mount failures or just "not ever mounted". If someone wants to try, I think we need something like this:

        • The systemd unit file must be named systemd-escape -p --suffix=automount <HOSTPATH>

        • Then, create a file /etc/systemd/system/<unit_filename_from_above_command>:

        [Unit]
        Description=Automount of hostpath
        
        [Automount]
        Where=HOST_PATH_HERE
        
        [Install]
        WantedBy=multi-user.target
        
        • systemctl enable <unit_filename>

        If that works, I can put this in our code (for volumes and backups).

        1 Reply Last reply
        1
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search