Building DRBD9 on CentOS/RHEL7

hint: resulting RPMS can be found here

requirements

yum -y groupinstall compat-libraries development security-tools

yum -y install mlocate vim createrepo wget kabi-yum-plugins docbook-style-xsl docbook-simple docbook-slides docbook-style-dsssl docbook-utils docbook-utils-pdf pygobject2
#TODO w/o X11 nor texlive

yum install gcc gcc-c++ make automake autoconf help2man libxslt libxslt-devel flex rpm-build kernel-devel

yum install po4a

mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}/

grab

wget http://www.linbit.com/downloads/drbd/9.0/drbd-9.0.23-1.tar.gz
wget http://www.linbit.com/downloads/drbdmanage/drbdmanage-0.99.18.tar.gz
wget http://www.linbit.com/downloads/drbd/utils/drbd-utils-9.13.1.tar.gz

extract, build and install

tar xzf drbd-9.0.23-1.tar.gz
cd drbd-9.0.23-1/
make -j16 kmp-rpm
ll /root/rpmbuild/RPMS/x86_64/
cd ../

tar xzf drbd-utils-9.13.1.tar.gz
cd drbd-utils-9.13.1/
vi drbd.spec.in

%bcond_without sbinsymlinks
+ %if %{rhel} == 7
+ %undefine with_sbinsymlinks
+ %endif

./configure
make -j16 rpm
ls -lhtr /root/rpmbuild/RPMS/x86_64/
cd ../

tar xzf drbdmanage-0.99.18.tar.gz
cd drbdmanage-0.99.18/
make -j16 rpm
ll dist/
cd ../

install

cd /root/rpmbuild/RPMS/x86_64/
rpm -Uvh *.rpm
rpm -qa | grep drbd
cd drbdmanage-0.99.18/dist/
rpm -ivh drbdmanage-0.99.18-1.noarch.rpm

share

rm -f epel-release-latest-7.noarch.rpm
scp -r *.rpm lin2:~/
scp -r *.rpm lin3:~/
scp drbdmanage-0.99.18/dist/drbdmanage-0.99.18-1.noarch.rpm lin2:~/
scp drbdmanage-0.99.18/dist/drbdmanage-0.99.18-1.noarch.rpm lin3:~/

and on the other nodes

cd ~/
rm -f epel-release-latest-7.noarch.rpm
yum install pygobject2
rpm -Uvh *.rpm

Resources

download

LINBIT https://github.com/LINBIT

Index of /downloads http://www.linbit.com/downloads/

Index of /downloads/drbd/9.0 http://www.linbit.com/downloads/drbd/9.0/

All Downloads https://www.linbit.com/linbit-software-download-page-for-linstor-and-drbd-linux-driver/

build

3.4. Compiling packages from source https://www.linbit.com/drbd-user-guide/drbd-guide-9_0-en/#s-from-source

Building DRBD9 https://www.alteeve.com/w/Building_DRBD9

How to Setup DRBD to Replicate Storage on Two CentOS 7 Servers https://www.tecmint.com/setup-drbd-storage-replication-on-centos-7/

DRBD 9 : Install https://www.server-world.info/en/note?os=CentOS_7&p=drbd9&f=1

Compile drbd9 on CentOS7 https://zero.latelan.com/2018-05-23/compile-drbd9-on-centos7/


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun