Strumenti Utente

Strumenti Sito


software:pacemaker

pacemaker cluster

nuvo modo per creare risorse drbd o comunque comandi aggiornati funzionanti a novembre 2023

pcs resource create r_hddns ocf:linbit:drbd drbd_resource=r0 op monitor interval=29s role=Master monitor interval=31s role=Slave promotable promoted-max=1 promoted-node-max=1 clone-max=2 clone-node-max=1 notify=true 
pcs resource create r_fsbind Filesystem device="/dev/drbd0" directory="/etc/bind" fstype="ext4"
pcs constraint colocation add r_fsbind with Master r_hddns-clone
pcs constraint order promote r_hddns-clone then start r_fsbind
pcs resource create r_ipbind ocf:heartbeat:IPaddr2 ip=192.168.1.33 cidr_netmask=24 op monitor interval=30s
pcs constraint colocation add r_ipbind with r_fsbind
pcs resource create r_srvbind ocf:heartbeat:anything binfile=/usr/sbin/named cmdline_options="-f -u bind" pidfile=/var/run/named.pid op monitor interval=20s op start interval=0s timeout=20s
pcs constraint colocation add r_srvbind with r_ipbind
software/pacemaker.txt · Ultima modifica: 2023/11/10 09:10 da stefano