Libro sobre Proxmox maestria
Chapter 6
Before we start editing the cluster.conf file, we are going to copy the file and edit the copied file. That way we can activate it from the GUI. The command to do so is as follows:
Any changes made to a configuration file with the extension .new at the end are treated as temporary changes. When activated from the GUI or through node reboot, these temporary changes permanently get transferred to the main configuration file. In this case, our main cluster file is /etc/pve/cluster.conf. This also helps to validate any new changes before they are applied. Validation checks each line to make sure there are no syntax errors in the configuration file. Validation can be done through the following command:
Let us now add the fencing to the cluster configuration file cluster.conf.new. In this configuration, the power_wait option sets the delay between performing power cycles. Without this option, nodes will be turned off immediately and turned back on without any delay. Setting a delay ensures that nodes will be turned off for a set amount of time before powering them back on. The following code shows delay set for 10 seconds: