Dissecting the configuration files
We now know where all the important files that hold a Proxmox cluster together are placed. We will now look inside some of these files for a better understanding of what they do and what command arguments they use. You can use any Linux editor to view/edit these configuration files. In this book, we will use #nano
to view and edit.
During the learning process, it will be a good idea to make a backup of the configuration files before editing them. In case something goes wrong, you will be able to replace it with the original working configuration file. Simply copy the configuration file using the following command:
# cp /etc/pve/<config_file> /home/<any_folder>
We can also use the SCP
command to back up files to another node:
# scp /etc/pve/<config_file> <user>@<ip_or_hostname>:/<folder>
The cluster configuration file
The
corosync.conf
configuration file stores parameters needed for a cluster operation. Any empty lines or...