Friday, August 19, 2011

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"

6 comments:

  1. your post helps me a lot. thanks!

    ReplyDelete
    Replies
    1. Welcome...
      Please feel free to suggest any improvements

      Delete
    2. your post helps me a lot. thanks!

      Delete
  2. This comment has been removed by the author.

    ReplyDelete
  3. what's about dns configuration?

    ReplyDelete

LVM thin provisioning - file system usage and pool usage dosn't match

When I was demonstrating LVM thin provisioning to new batch of campus hires ; they pointed out an important mismatch between thin pool usag...