DRBD Installation
v0.7.4 on RedHat 8.0 (Psyche) and v0.7.10 on SuSE 9.2


Below are the steps that I executed to get the DRBD packages installed and running on the node1 server (RedHat 8.0 kernel 2.4.20-43_41-smp) and node2 (SuSE 9.2, kernel version 2.6.8-24-15-smp). There is some flexibility in these steps, and it doesnt need to be done this way, but this is what worked for me.

There were some packages/rpms that needed to be brought down, and I found it very difficult to keep going back and forth to SuSE's site to get the rpm's via the admin13's ftp client. SuSE's site wouldnt work for me, and it was a problem - so a small script was written to help pull these things down. Its a script called node2:/usr/local/bin/get_rpm_udpates.sh and it will pull rpm's down based on a syntax pattern specified on the command line - like a very specific and very poor man's apt-get. It pulls all rpm's with that substring, so dont run it with something like "rpm" or you will get EVERY rpm available. (By default, it only takes i586 rpm's from SuSEs 9.2 site because they are the only ones posted on the site that I need right now - there are so few i686 rpm's that they really were not worth searching for.).

Another key piece of all this was to have the environments up to par for running DRBD. For the RedHat server, it required the kernel upgrade from 2.4.18 to 2.4.20 because the DRBD rpm's we were using were compiled for 2.4.20. There is a seperate document for the RedHat kernel upgrade process. On the SuSE side, the entire distribution needs to be updated with the online update feature in yast2. This required an internet connection, and that proved challenging also. I had to load proxy software on admin13 and proxy through there in order to get the required updates since proxy would not allow node2 to directly go out and get them. This admin13 proxy software was only up long enough to get the online updates completed, and to get the drbd rpms using the "get_rpm_updates.sh" script also shown above.

On node2, set the proxy configuration for the updates and downloads. There are two places this needs to be done. First is the yast2 update area.

NOTE :the yast2 "sysconfig" editor could also have been used, but the gui was too slow for me, so I stuck with command line for that one. The gui automatically runs the SuSEconfig when done, so that is a nice feature.


That pretty much covers the setup work, so now we have a foundation on which to install the DRBD software. We are going to replicate the bb and web filesystems from node1 to node2. This is not meant as a cluster, and is really one-way-replication only. There is no intent here to replicate backward, so the heartbeat package was not needed.

The partitions that will be replicated from node1 will be /dev/vg01/bb (the big brother filesystem) and the /dev/vg01/web (the apache filesystem). They were retrieved from a simply "vgdisplay -v" command.

On the node1 server :


On the node2 server :


Now that the software is loaded, its time to configure it.


And now its finally time to bring it all up. Start with the following (on node1) :


Other useful commands :


This page last updated by Paul on 07/18/2005