DRBD的安装配置
1.安装依赖包:(Primary,Secondary)
yum install gcc gcc-c++ make glibc flex kernel-devel kernel-headers
 
2.安装DRBD:(Primary,Secondary都要做这步操作)
wget http://oss.linbit.com/drbd/8.4/drbd-8.4.4.tar.gz
tar -xvf drbd-8.4.4.tar.gz
cd drbd-8.4.4
./configure --prefix=/usr/local/drbd-8.4.4 --with-km
make KDIR=/usr/src/kernels/2.6.32-279.el6.x86_64/
make install
cp /usr/local/drbd/etc/rc.d/init.d/drbd /etc/rc.d/init.d
chkconfig --add drbd
chkconfig drbd on
3.加载DRBD模块:
modprobe drbd
4.查看DRBD模块是否加载到内核:
lsmod |grep drbd

此出处http://tlinux.blog.51cto.com/7288656/1735853