Bind mounts, LXC containers and NFS

johnvick

Member
Mar 1, 2022
27
3
8
65
I have NFS shares on separate OMV server that are used for storage in Proxmox 7.1-12 and they are always available on the host during the 8 hours a day the OMV server is on. These are passed through to privileged LXC Ubuntu 21.10 server container using the following line in /etc/pve/nodes/pve/lxc/101.conf:

mp0: /mnt/pve,mp=/shared

This works but only after full power cycle - after container restart or stop backup they go offline. I have spent days trying to get this working better to no avail. My question is, is there a command I can add to cron to get these share mounted without having to do a full power cycle?

Any help appreciated. From my reading NFS in LXC is a tricky business.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!