I jumped into the discussion on this thread, but did not want to step on any toes, so decided to start my own topic.
Current set up is:
PVE host directly passes disks to VM (ubuntu-server)
--> VM runs NFS server and exports directories
--> PVE host NFS client mounts those exports
--> PVE host bind-mounts some of the NFS directories into (unprivileged) containers.
This works well until the file-server VM needs to reboot. Sometimes everything goes smoothly. Most of the time, the PVE host can reaquire the NFS exports (they are accessible on the host), but all of the containers get "stale file handle" errors.
Most of the solutions I have found online discussing the issue of NFS server rebooting, and NFS clients getting "stale" errors are to unmount and remount the NFS share on the client. In this case, the PVE host is the client, and this solution can work there.
But what do I do about the containers? Is there a command I can run on the PVE host to "refresh" container mounts? Is there a command inside the container that will do that? Or do I need to just reboot all the containers?
Current set up is:
PVE host directly passes disks to VM (ubuntu-server)
--> VM runs NFS server and exports directories
--> PVE host NFS client mounts those exports
--> PVE host bind-mounts some of the NFS directories into (unprivileged) containers.
This works well until the file-server VM needs to reboot. Sometimes everything goes smoothly. Most of the time, the PVE host can reaquire the NFS exports (they are accessible on the host), but all of the containers get "stale file handle" errors.
Most of the solutions I have found online discussing the issue of NFS server rebooting, and NFS clients getting "stale" errors are to unmount and remount the NFS share on the client. In this case, the PVE host is the client, and this solution can work there.
But what do I do about the containers? Is there a command I can run on the PVE host to "refresh" container mounts? Is there a command inside the container that will do that? Or do I need to just reboot all the containers?