OS: CentOS 7 64 bit
Device: /dev/sda - 10GB
/dev/sdb - 10GB
Hostname: node1
IP: 192.168.1.11
Gateway: 192.168.1.1
Prefix: 24
OS: CentOS 7 64 bit
Device: /dev/sda - 10GB
/dev/sdb - 10GB
Hostname: node2
IP: 192.168.1.12
Gateway: 192.168.1.1
Prefix: 24
2. Steps to take
2.1 Installing DRBD
- Before installing, we have to configure the hostname for each node and write them in
hosts
[root@node1 ~] hostnamectl set-hostname node1
[root@node2 ~] hostnamectl set-hostname node2
- Add in
hosts
of each server
vi /etc/hosts
192.168.1.11 node1
- Next, we install DRBD on both servers. First, we add the DRBD repos and key
rpm -ivh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org
- Before installing, we check the latest version of DRBD.
yum info *drbd* | grep Name
Name : drbd90-utils
Name : drbd90-utils-sysvinit
Name : kmod-drbd90
After running the above command, we see the current version is drbd90
- We continue to install DRBD on both servers.
yum -y install drbd90-utils kmod-drbd90
Attention: If the above key is corrupted, please do the following to import the keys available in /etc/pki/rpm-gpg/
and redo the installation step above.
rpm --import /etc/pki/rpm-gpg/*
- Enable the DRBD module on both servers
- Double check that DRBD is working:
lsmod | grep drbd
drbd 405309 0
libcrc32c 12644 2 xfs,drbd
Post a Comment
Post a Comment