How to installing and configuring DRBD

The scenario install and configure DRBD Node1: FQDN: node1.huuphan.local HDD1: 10GB (/dev/sda1) HDD2: 1GB (/dev/sdb1) Node2: FQDN: node2.huuphan.local HDD1: 10GB (/dev/sda1) HDD2: 1GB (/dev/sdb1) Note: device /dev/sdb a unpartitioned for 2 node. Selinux: disabled mode sed -i 's/SELINUX=enforcing/SELINUX=disable/' /etc/sysconfig/selinux To installing NTP for two node yum install ntp ntpdate -y To iptables firewall to allow 7788 port iptables -I eth1 -m state --state NEW -m tcp -p tcp --dport 7788 -j ACCEPT service iptables save To configure /etc/hosts file vim /etc/hosts The output as bellow 172.16.235.145 node1.huuphan.local node1 172.16.235.146 node2.huuphan.local node2 To create /dev/sdb1 device for two node fdisk -l fdisk /dev/sdb The output as bellow Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0xa3977c63. Changes will remain in memory only, un