Setup distributed replicated highly available nfs server with drbd and pacemaker on centos7
-------- Setup DRBD two node cluster ---------- Importelrepo gpgkey rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org Install elrepo rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm --Task to perform on both node Install drbd pkg yum install -y kmod-drbd84 drbd84-utils enable iptable rules firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="192.168.122.102" port port="7789" protocol="tcp" accept' firewall-cmd --reload Take backup of original config file mv /etc/drbd.d/global_common.conf /etc/drbd.d/global_common.conf.orig create new file with your configuration vim /etc/drbd.d/global_common.conf --place bellow content in file global { usage-count yes; } common { net { protocol C; sndbuf-size 0; } } disk { fencing resource-only; } handlers { fence-peer “/usr/lib/drbd/crm-fence-peer.sh”; after-resync-target “/usr/lib/drbd/cr