Building DRBD 8.4.x on CentOS 6.x

  1. yum install gcc libxslt kernel-headers kernel-devel-`uname -r` make wget rpm-build flex
  2. mkdir /root/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
  3. wget http://oss.linbit.com/drbd/8.4/drbd-8.4.x.tar.gz
  4. tar xzf drbd-8.4.x.tar.gz
  5. cd drbd-8.4.x
  6. ./configure
  7. make rpm
  8. make km-rpm
  9. Install desired packages from /root/rpmbuild/RPMS/x86_64 or .../i386