[PVE-User] How to update NFS storage IP on a cluster?

Stefan Radman stefan.radman at me.com
Mon Mar 20 17:23:24 CET 2023


Ciao Alessio 

The cleanest way is to create a new share on the same volume, bind it only to the new IP 10.0.20.2, move the virtual disks from the old share to the new one and then dissolve the old share.

That should always work as long as the NFS server volume holding both shares has enough space to hold two instances of the largest virtual disk while you are moving it.

Stefan

> On Mar 20, 2023, at 16:07, Alessio Cecchi via pve-user <pve-user at lists.proxmox.com> wrote:
> 
> 
> From: Alessio Cecchi <alessio at skye.it>
> Subject: Re: [PVE-User] How to update NFS storage IP on a cluster?
> Date: March 20, 2023 at 16:07:46 GMT+1
> To: pve-user at lists.proxmox.com
> 
> 
> Hi,
> 
> I cannot use the "Move Storage" because the share is only one and only the IP is changing.
> 
> What do you think if I add the hostname in /etc/hosts only in the first node (without VM running), update the share in storage.cfg with the hostname, proxmox will try to mount but will fail in all others nodes, the old share will remain available and VM still running.
> 
> So I can live migrating VM on the update node and do the same for others node one for one.
> 
> Thanks
> 
> Il 19/03/23 15:24, Alessio Cecchi via pve-user ha scritto:
> 
>> Hi,
>> 
>> I'm running a PVE 5.4 cluster with 8 nodes and NFS as shared storage for
>> VM. Yes I have to update PVE cluster, this IP updates is a prerequisite
>> for this.
>> 
>> I need to update the IP of the mounted NFS from 10.0.10.2 to 10.0.20.2
>> because I added a new VLAN only dedicated to NFS traffic (now is on the
>> same VLAN of Internet traffic). On the NFS server storage IPs are
>> already configured and reachable from all Promox nodes.
>> 
>> My idea was to live migrate VM to another node, update the IP in
>> storage.cfg in the local node, umount/remount NFS and migrate VM back on
>> the local node. And do it for all nodes.
>> 
>> But when I update the storage.cfg Proxmox mount automatically the NFS
>> storage with the new IP on all nodes, with the same mount point. So I
>> have the same NFS storage mounted two times with different IP, but I
>> don't think is a good thing for running VM.
>> 
>> Another idea might be to set in /etc/hosts a name for the NFS server,
>> set the hostname in storage.cfg, live migrate VM to another node, change
>> /etc/hosts per single node with the new IP, umount/mount NFS, and
>> migrate VM back on the local node. But the problem is the same, auto
>> mount of the new NFS mount point on all nodes after storage.cfg is saved.
>> 
>> Is there a way to update storage.cfg on a single node without propagate
>> the auto mount to all others nodes?
>> 
>> Do you have any other suggestions for doing this IP address update
>> without interruption of service/stopping VM?
>> 
>> Thanks
>> 
> -- 
> Alessio Cecchi
> Postmaster @http://www.qboxmail.it
> https://www.linkedin.com/in/alessice
> 
> 
> _______________________________________________
> pve-user mailing list
> pve-user at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user



More information about the pve-user mailing list