Proxmox not mounting NFS shares located in /etc/fstab

helojunkie

Well-Known Member
Jul 28, 2017
69
2
48
56
San Diego, CA
I am running the latest version of Proxmox and I am having an issue where when I reboot my proxmox server (not often but it does happen) my NFS mounts located in /etc/fstab are not getting mounted. I am using these NFS mounts within a bunch of CTs so as a result those CT have cascading failures on boot.

I can manually mount the exports by issuing

Code:
mount /mount/media

from the command line and it works perfectly, so I know it can see the mount information in /etc/fstab.

Looking for ideas on how to troubleshoot.

Thanks
 
So i'am right when i say the mounts are not for proxmox datacenter? They are for some other things like home...?
If no, please use the pve-datacenter do add NFS-Shares. If not... please post your export from your NFS-Server. And your Fstab from your PVE-Host.
 
Hi Fireon

I am using the NFS mounts for bind mounts within a bunch of containers. The mount works perfectly if I wait for the machine to boot, issue the mount command from the command line and then boot the CTs.

I followed the wiki instructions for doing bind mounts.

If you still need my fstab and export let me know I am on the road right now and can post them later.

Thanks
 
That is how I am doing it, I thought that was a bind mount. Maybe I misunderstood the concept, but this is what is in my conf file:

Code:
mp0: /mount/media,mp=/mount/media,size=0

Here my fstab on the prox server:
Code:
phxnas:/mnt/vol1/media /mount/media nfs

Mounts perfectly when I issue:
Code:
mount /mount/media

Just does not mount when I reboot the prox server. I have to manually issue the mount command on each bootup.
 
So the files are not on PVE right, So how you mount it, show me your fstab NFSentries in PVE. A solution can be do set a little sleep in den /etc/rc.local.
Code:
...
sleep 10
mount -a
...
This is often if the network is starting to slow, or the nfs-server is responding to slow. Had an similar problem at an customer. You can also start an dummy-vm with an time waiting for the next vm to start.
 

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!