DRBD on RHEL6 with YUM group
Building DRBD for 2.6.32-71.el6.x86_64 kernel
1.mkdir -p /root/rpmbuild/SOURCES/
2.wget http://oss.linbit.com/drbd/8.3/drbd-8.3.10.tar.gz
3.cp drbd-8.3.10.tar.gz /root/rpmbuild/SOURCES/
4.tar -xvf drbd-8.3.10.tar.gz
5.cd drbd-8.3.10
6../configure --with-km --with-distro=redhat --enable-spec
7.rpmbuild -bb drbd.spec
8.rpmbuild -bb drbd-km.spec
9.cd /root/rpmbuild/RPMS/x86_64
10.mkdir /YUM/DiskReplicator
11.cp drbd-* /YUM/DiskReplicator/
12.cd /YUM/DiskReplicator/
13.createrepo . ---> The "." is important
14.vi /etc/yum.repos.d/rhel6-1.repo
[DiskReplicator]
name=rhel6-1 LoadBalancer repo
baseurl=ftp://192.168.8.2/DiskReplicator
enabled=1
gpgcheck=0
15.cd /tmp/ -->To avoid rpm name clash
16.yum install yum-utils
17.yum-groups-manager -n "Disk Replicator" --id=drbd --description="DRBD, packages from ANSIL" --save=comps.xml --mandatory drbd.x86_64 --mandatory drbd-bash-completion.x86_64 --mandatory drbd-heartbeat.x86_64 --mandatory drbd-km-2.6.32_71.el6.x86_64.x86_64 --mandatory drbd-pacemaker.x86_64 --mandatory drbd-udev.x86_64 --mandatory drbd-utils.x86_64 --mandatory drbd-xen.x86_64
18.createrepo -g comps.xml /YUM/DiskReplicator/
19.yum grouplist "Disk Replicator"
20.yum groupinstall "Disk Replicator"
your post helps me a lot. thanks!
ReplyDeleteWelcome...
DeletePlease feel free to suggest any improvements
your post helps me a lot. thanks!
Deletewhats about drbd module?
ReplyDeleteThis comment has been removed by the author.
ReplyDeletewhat's about dns configuration?
ReplyDeletecontrecchronpi Allison Reed https://wakelet.com/wake/pJkl6fVLgl_vKMCqCFl_j
ReplyDeletebrilbuledoors