DRBD : Install2015/03/10 |
Install DRBD (Distributed Replicated Block Device) to configure Distributed Storage System.
This example is based on the environment like follows. +----------------------+ | +----------------------+ | [ DRBD Server#1 ] |10.0.0.30 | 10.0.0.31| [ DRBD Server#2 ] | | drbd01.srv.world +----------+----------+ drbd02.srv.world | | | | | +----------------------+ +----------------------+
It's necessarry the server you'd like to install DRBD has free block-device.
This example shows to configure to use a block-device "/dev/vg_r0/lv_r0".
|
|
[1] | Update system & install required packages first and reboot on both Hosts. |
[root@drbd01 ~]# yum -y update [root@drbd01 ~]# yum -y install gcc make automake autoconf libxslt libxslt-devel flex rpm-build kernel-devel [root@drbd01 ~]# |
[2] |
Install DRBD on both Hosts.
By the way, drbd-km package is built with the current version of kernel, so
if you will update kernel in the future, then you need to re-build DRBD again with the version of kernel.
Confirm the latest DRBD and download it on the site below. ⇒ http://oss.linbit.com/drbd/ |
[root@drbd01 ~]#
mkdir -p rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} [root@drbd01 ~]# wget http://oss.linbit.com/drbd/drbd-utils-latest.tar.gz \
http://oss.linbit.com/drbd/8.4/drbd-8.4.5.tar.gz
[root@drbd01 ~]#
tar zxvf drbd-8.4.5.tar.gz [root@drbd01 ~]# cd drbd-* [root@drbd01 drbd-8.4.5]# make km-rpm [root@drbd01 drbd-8.4.5]#
[root@drbd01 ~]#
[root@drbd01 x86_64]# tar zxvf drbd-utils-latest.tar.gz [root@drbd01 ~]# cd drbd-utils-* [root@drbd01 drbd-utils-8.9.1]# ./configure [root@drbd01 drbd-utils-8.9.1]# make rpm [root@drbd01 drbd-utils-8.9.1]# cd /root/rpmbuild/RPMS/x86_64
rpm -Uvh drbd-utils-*.rpm drbd-km-*.rpm Preparing... ########################################### [100%] 1:drbd-utils ########################################### [ 50%] 2:drbd-km-2.6.32_504.8.1.########################################### [100%] |
Sponsored Link |