# apt-get install drbd0.7-module-source
# apt-get install drbd0.7-utils
# apt-get install dpatch
# cd /usr/src
# tar -zxf drbd0.7.tar.gz
# cd /usr/src/modules/drbd
# module-assistant prepare
# module-assistant automatic-install drbd0.7-module-source
Navigate the module package creation procedure as logically as
possible; details for this procedure are not provided.
# cd /usr/src
# dpkg -i drbd0.7-module-2.4.27-2-k7_0.7.10-3+2.4.27-8_i386.deb
DRBD 구성
양쪽 장비에 /etc/drbd.conf 파일에 동일하게 구성한다.
resource drbd-resource-0 {
protocol C;
incon-degr-cmd "halt -f"; # killall heartbeat would be a good alternative :->
disk {
on-io-error panic;
}
syncer {
rate 10M; # Note: 'M' is MegaBytes, not MegaBits
}
on host-a {
device /dev/drbd0;
disk /dev/hda8;
address 10.0.0.10:7789;
meta-disk internal;
}
on host-b {
device /dev/drbd0;
disk /dev/hda8;
address 10.0.0.20:7789;
meta-disk internal;
}
}