denshoproject / ddr-local

Web UI used for interacting with DDR collections and entities on a local machine.
Other
3 stars 0 forks source link

hq: editor VMs not connecting production storage nfs share on boot #283

Closed GeoffFroh closed 2 years ago

GeoffFroh commented 4 years ago

Production storage for ddr editor VMs in HQ is located on an nfs share which should be mounted through an entry in /etc/fstab but share fails to mount automatically at boot as expected. Invoking mount -a will connect the share successfully.

The VMs are deb10 running on Virtualbox (v.??). This behavior does not occur on other deb10 VMs running on the HQ VMware ESXi infrastructure.

Possible remeditation:

https://unix.stackexchange.com/questions/530900/etc-fstab-does-not-mount-automatically-on-debian-10

pkikawa commented 4 years ago

virbox 6.0.20 r137117

GeoffFroh commented 4 years ago

Try adding:

x-systemd.after=network-online.target

To the nfs mount options in /etc/fstab

E.g.,

x-systemd.after=network-online.target,tcp,nolock,intr

See: https://unix.stackexchange.com/questions/349264/fstab-mount-wait-for-network https://www.freedesktop.org/software/systemd/man/systemd.mount.html

(In addition, recommended Qumulo mount options are discussed here: https://care.qumulo.com/hc/en-us/articles/115008111268-Recommended-NFS-Mount-Options )

GeoffFroh commented 4 years ago

Another possibility would be to use systemd natively to do the mount; see article here:

https://blog.tomecek.net/post/automount-with-systemd/

IMPORTANT: