Abilitare il modulo drbd all'avvio\\ in particolare su debian e raspbian\\ dopo aver installato il pacchetto editare il file /etc/modules e aggiungere semplicemente il nome del modulo\\ # /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. drbd Questo serve nel caso in cui bisogna far gestire le risorse a pacemaker per il cluster\\ altrimenti si avvia abilita e si avvia il servizio \\ systemctl enable drbd.service systemctl start drbd.service -------------------------- ====PACEMAKER 2023==== Nuovo modo per creare risorse drbd in un cluster pacemaker:\\ 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