Containers with question marks when renaming Node

billybob

New Member
May 3, 2022
8
1
3
Renaming a node (modifying /etc/hosts, /etc/hostname) causes the following issues (see attached):
  • Both old & the new node names show in the Web GUI
  • Under old node name, all LXC containers show with a question mark
  • Under new node, none of the VMs & containers show up.
1651591494997.png

If I manually try to copy /etc/pve/nodes/pve1/lxc to /etc/pve/nodes/pxmx1/lxc, I get the error from the command eventhough the target directory does not have any files.
1651592234808.png
 
Renaming a node in a cluster can be a bit finicky, it seems you forgot to change the corosync config which is linked at the very bottom of the renaming a node page.
The problems you are experiencing here are most likely from the desynchronized corosync configurations. Following the steps documented in the link above should resolve these issues.
 
Renaming a node in a cluster can be a bit finicky, it seems you forgot to change the corosync config which is linked at the very bottom of the renaming a node page.
The problems you are experiencing here are most likely from the desynchronized corosync configurations. Following the steps documented in the link above should resolve these issues.
Thanks for your response.

Node is not participating in a cluster. This is a standard standalone node.
 
Node is not participating in a cluster. This is a standard standalone node.
Sorry, I was thrown off by the picture you included because that looked like non-quorate cluster behaviour to me.

I could reproduce the same problem you were facing myself. It seems to stem from trying to rename a node that contains guests.
If I manually try to copy /etc/pve/nodes/pve1/lxc to /etc/pve/nodes/pxmx1/lxc, I get the error from the command eventhough the target directory does not have any files.
1651592234808.png
The pmxcfs (manages the /etc/pve directory) does not allow multiple guest configurations of the same id. Therefore copying the files does not work. Alternatively you can move the files to the lxc folder in the new node. This resolved the problem for me, you should be able to safely remove the node folder after that but I would advise you to make a backup just in case.
 

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!