Пакет PCS
nodeN# apt install pcs
nodeN# ps ax | grep pcsd
nodeN# passwd hacluster
node1# pcs host auth node1 node2
Username: hacluster
Password:
node1: Authorized
node2: Authorized
node1# pcs cluster help
node1# pcs cluster setup mycluster --start --force node1 node2
или
node1# pcs cluster setup mycluster --start --force node1 addr=10.5.12.113 node2 addr=10.5.12.213
nodeN# pcs cluster status
nodeN# cat /etc/corosync/corosync.conf
node1# pcs property set stonith-enabled=false
node1# pcs property set no-quorum-policy=ignore
node1# pcs resource list | tee res_list.txt
node1# pcs resource create pr_ftp lsb:proftpd
node1# pcs resource create pr_ip ocf:heartbeat:IPaddr2 ip=192.168.X.10 cidr_netmask=32 nic=eth0
node1# pcs resource delete ...
nodeN# pcs status
node1# pcs resource group add gr_ftp_ip pr_ftp pr_ip
node1# pcs resource move gr_ftp_ip node1
node1# pcs config
node1# pcs constraint delete cli-prefer-gr_ftp_ip
nodeN# systemctl enable corosync
nodeN# systemctl enable pacemaker
node1# crm_mon
node2# init 6
nodeN# pcs cluster stop # --force
nodeN# pcs cluster start
nodeN# pcs cluster destroy
Удаляет на узле ВСЕ конфигурации и убирает сервисы из автозагрузки
nodeN# systemctl stop pcsd
nodeN# systemctl disable pcsd