Switch NFS MP on the same path without rebooting

michaelj

Renowned Member
Jun 30, 2016
57
0
71
37
Hi Community !

I have a volume that I want to (switch) mount in the same location without doing downtime on the host / CT.
Is it possible to unmount / mount an NFS volume in a container without stop / start the CT ?

Unmounting is done on the host and the mount point is configured in the CT configuration file /etc/pve/lxc/xxx.cfg


Regards.
 
do u ask if u must stop/shutdown or restart a computer to mount/umount nfs shares? u must concretize your question. whats is your configuration'?
normally, u never have to stop a pc to mount/umount a nfs share.
 
Hi Floh8,

I'm switching to a new NFS server, I would like to mount my new server (partition) in the same directory without stopping my CT, is this possible?
 
My CT test uses a /ftp mount point on my SRV1
SRV1 is replaced by a new SRV2 (new ip, etc) with the same content inside /ftp, I would like to mount /ftp from SRV2 on my CT test without rebooting / downtime.
 
Last edited:
also, u must go in detail a little bit. if not, u can not follow u. u use a container on host A with a container. Inside is a nfs mount to srv B, mounted to /ftp. U will replace srv B with srv C. Right?
 
Not exactly. My CT is on the host A, and the host A, srv B is a external nfs server mounted via /etc/fstab at /ftp path.

In the CT, the mount point is enable through the config file /etc/pve/lxc/123.cfg like this :

mp0: /ftp,mp=/ftp

So my new server C will be update in the /etc/fstab on the host but is it possible to update the content of the CT without stop / start ?

The aim is to avoid rebooting all the vm mounting this mount point.
 
In my case, the answer is no.

I have to stop start all the CT in order to point on the new NFS server.
 

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!