Questo contenuto non è disponibile nella lingua selezionata.
Chapter 8. Modifying, displaying, and exporting the corosync.conf file
The corosync.conf
file provides the cluster parameters used by corosync
, the cluster manager that Pacemaker is built on. In general, you should not edit the corosync.conf
directly but, instead, use the pcs
interface
8.1. Modifying the corosync.conf file with the pcs command Copia collegamentoCollegamento copiato negli appunti!
You can use the pcs
command to modify the parameters in the corosync.conf
file.
The following command modifies the parameters in the corosync.conf
file:
pcs cluster config update [transport pass:quotes[transport options]] [compression pass:quotes[compression options]] [crypto pass:quotes[crypto options]] [totem pass:quotes[totem options]] [--corosync_conf pass:quotes[path]]
pcs cluster config update [transport pass:quotes[transport options]] [compression pass:quotes[compression options]] [crypto pass:quotes[crypto options]] [totem pass:quotes[totem options]] [--corosync_conf pass:quotes[path]]
The following example command udates the knet_pmtud_interval
transport value and the token
and join
totem values:
pcs cluster config update transport knet_pmtud_interval=35 totem token=10000 join=100
# pcs cluster config update transport knet_pmtud_interval=35 totem token=10000 join=100
8.2. Displaying the corosync.conf file with the pcs command Copia collegamentoCollegamento copiato negli appunti!
The following command displays the contents of the corosync.conf
cluster configuration file.
pcs cluster corosync
# pcs cluster corosync
You can print the contents of the corosync.conf
file in a human-readable format with the pcs cluster config
command, as in the following example.
The output for this command includes the UUID for the cluster if the UUID was added manually as described in Identifying clusters by UUID.
8.3. Exporting the corosync.conf file Copia collegamentoCollegamento copiato negli appunti!
You can run the pcs cluster config show
command with the --output-format=cmd
option to display the pcs
configuration commands that can be used to recreate the existing corosync.conf
file on a different system, as in the following example.