CentOS 7
Sponsored Link

DRBD 9 : Install2018/07/12

 
Install DRBD (Distributed Replicated Block Device) to configure Distributed Storage System.
This example is based on the environment like follows.
+----------------------+          |          +----------------------+
| [    DRBD Node#1   ] |10.0.0.51 | 10.0.0.52| [    DRBD Node#2   ] |
|   node01.srv.world   +----------+----------+   node02.srv.world   |
|                      |                     |                      |
+----------------------+                     +----------------------+

It's necessarry the server you'd like to install DRBD has free block-device.
[1] Update system and install required packages first and reboot on all Nodes.
[root@node01 ~]#
yum -y update

[root@node01 ~]#
yum -y install gcc gcc-c++ make automake autoconf help2man libxslt libxslt-devel flex rpm-build kernel-devel

[root@node01 ~]#
[2] Install DRBD on all Nodes.
Download DRBD 9 from the official site below.
⇒ https://www.linbit.com/en/drbd-community/drbd-download/
[root@node01 ~]#
mkdir -p rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}

[root@node01 ~]#
wget www.linbit.com/downloads/drbd/9.0/drbd-9.0.14-1.tar.gz \
www.linbit.com/downloads/drbdmanage/drbdmanage-0.99.18.tar.gz \
www.linbit.com/downloads/drbd/utils/drbd-utils-9.5.0.tar.gz
[root@node01 ~]#
tar zxvf drbd-9.0.14-1.tar.gz

[root@node01 ~]#
cd drbd-9.0.14-1

[root@node01 drbd-9.0.14-1]#
make kmp-rpm

[root@node01 drbd-9.0.14-1]#
[root@node01 ~]#
tar zxvf drbdmanage-0.99.18.tar.gz

[root@node01 ~]#
cd drbdmanage-0.99.18

[root@node01 drbdmanage-0.99.18]#
make rpm

[root@node01 drbdmanage-0.99.18]#
[root@node01 ~]#
tar zxvf drbd-utils-9.5.0.tar.gz

[root@node01 ~]#
cd drbd-utils-9.5.0

[root@node01 drbd-utils-9.5.0]#
vi drbd.spec.in
# line 34: add

%bcond_without sbinsymlinks
%undefine with_sbinsymlinks
[root@node01 drbd-utils-9.5.0]#
./configure

[root@node01 drbd-utils-9.5.0]#
make rpm

[root@node01 drbd-utils-9.5.0]#
cd /root/rpmbuild/RPMS/x86_64
[root@node01 x86_64]#
rpm -Uvh drbd-utils-9.5.0-1.el7.x86_64.rpm \
drbd-udev-9.5.0-1.el7.x86_64.rpm \
drbd-bash-completion-9.5.0-1.el7.x86_64.rpm \
kmod-drbd-9.0.14_3.10.0_862.6.3-1.el7.x86_64.rpm

Preparing...                          ################################# [100%]
Updating / installing...
   1:drbd-utils-9.5.0-1.el7           ################################# [ 25%]
   2:drbd-udev-9.5.0-1.el7            ################################# [ 50%]
   3:drbd-bash-completion-9.5.0-1.el7 ################################# [ 75%]
   4:kmod-drbd-9.0.14_3.10.0_862.6.3-1################################# [100%]
[root@node01 x86_64]#
rpm -Uvh /root/drbdmanage-0.99.18/dist/drbdmanage-0.99.18-1.noarch.rpm

Preparing...                          ################################# [100%]
Updating / installing...
   1:drbdmanage-0.99.18-1             ################################# [100%]
Matched Content