Add CRM command to switch an online node manually into maintenance (without reboot). HOW

manilx

Member
Mar 25, 2022
79
5
13
Reading this I have found n o documentation on how actually do this....

How do I put a node in maintenance mode now?

thx in advance
 
To manually switch a Proxmox VE node into maintenance mode without rebooting, you can follow these steps: Log in to the Proxmox VE web interface and navigate to the "Nodes" section. Select the node you want to put into maintenance mode. Expand the "More" dropdown menu and choose "Maintenance Mode." Confirm your decision to switch the node into maintenance mode. Verify that the node is in maintenance mode and perform necessary tasks. To exit maintenance mode, repeat the steps and select the option to exit maintenance mode. For customized solutions tailored to your business needs, consider exploring the best bespoke services. I think it's what you might like.
 
Last edited:
I had the same issue recently and found it tricky too! For putting a node in maintenance mode, it usually involves using the command line or management console specific to your setup. I had to check the admin guide for my system and followed these steps: log in to your management console, locate the node settings, and then select the option to set the node to maintenance mode.

If you’re looking for more in-depth options or tools that could help with this process, you might check out some ERP solutions like AcuPower - https://acupowererp.com/acumatica/manufacturing-edition , which offers extensive features and support.
 
Last edited:
This has been working for me for many months, up until very recently

Code:
ha-manager crm-command node-maintenance enable pve01

Now, it's no longer working. Not sure why! PVE 9.2.18, 3 node cluster, no ceph
 
The node(s) just do not ever enter maintenance mode. No error message is printed, and I don't really see anything relevant in the syslogs either. I upgraded to PVE 9.2.20 yesterday, so I will test again
 
The update to 9.2.20 hasn't changed anything, the ha-manager crm-command node-maintenance enable pve01 command still does not succeed in setting the node to maintenance mode.
 
The update to 9.2.20 hasn't changed anything, the ha-manager crm-command node-maintenance enable pve01 command still does not succeed in setting the node to maintenance mode.

is pve01 offline? what does the ha-status panel say about pve01 once you execute the command?
 
Last edited:
No, pve01 is online (all nodes are online…) Actually, when I checked in the GUI, I realized somehow that HA was disarmed. Must have been left in an inconsistent state after the last shutdown failure. After I re-armed HA, the ha-manager crm-command node-maintenance enable… commands are working again now :)

The remaining question is: why is no error message output if these commands are issued while HA is in disabled state?
 
The remaining question is: why is no error message output if these commands are issued while HA is in disabled state?

pve-ha-crm is logging a warning, you should find ' ignoring maintenance command for node pve01 - HA stack is disarmed' in your journal.

feel free to file a bug on bugzilla if you think it's is still an issue
 
I don't know... let me check with API and see if there is anything useful in the API response first... in general I would not expect API client or CLI command to follow with a grep of journal log to look for success/failure