nfs.mount does not continue to mount in background as it should
I have a following entry in my fstab:
10.0.0.22:/mnt/pool1/somelocation /mnt/somelocation nfs rw,nfsvers=3,proto=tcp,nolock,bg 0 0
The bg
, per nfs manual, indicates that upon failure to mount the share immediately, a child process should be spawned and the attempt to mount should continue in the background. Since this is a tcp protocol, it should by default try for almost a week before giving up, with a check interval between 60 and 600s using a linear backoff.
However, this doesn't work. Having explicitly downed the remote share, the /var/log/messages
has following two lines only:
Mar 14 14:42:40 host auth.err mount[2881]: mount to NFS server '10.0.0.22' failed: Not supported, retrying
Mar 14 14:42:40 host daemon.info init: starting pid 2923, tty '/dev/tty1': '/sbin/getty 38400 tty1'
Mar 14 14:42:40 host daemon.info init: starting pid 2924, tty '/dev/tty2': '/sbin/getty 38400 tty2'
Mar 14 14:42:40 host daemon.info init: starting pid 2928, tty '/dev/tty3': '/sbin/getty 38400 tty3'
Mar 14 14:42:40 host daemon.info init: starting pid 2932, tty '/dev/tty4': '/sbin/getty 38400 tty4'
Mar 14 14:42:40 host daemon.info init: starting pid 2936, tty '/dev/tty5': '/sbin/getty 38400 tty5'
Mar 14 14:42:40 host daemon.info init: starting pid 2940, tty '/dev/tty6': '/sbin/getty 38400 tty6'
Mar 14 14:42:41 host auth.err mount[2885]: mount to NFS server '10.0.0.22' failed: Not supported, retrying
No other attempts are made, the share remains unmounted. Also note the two consecutive mount attempts are barely within a second of each other, which is odd.
Calling the mount /mnt/somelocation
explicitly I see:
host:~# mount /mnt/somelocation
mount.nfs: backgrounding "10.0.0.22:/mnt/pool1/somelocation"
mount.nfs: mount options: "rw,nfsvers=3,proto=tcp,nolock,bg,addr=10.0.0.22"
If I then immediately check running processes for mount
, I can see mount.nfs
running for a couple seconds, before it's gone. This results in two identical /var/log/messages
log lines as shown above.
Also, adding "retry=10000" to the arguments explicitly doesn't help.
I am not sure if this is an NFS or a mount issue, hope you can help triaging it. FYI, I am using an up-to-date Alpine Stable.