Sorry, I am not fond of Ubuntu
(reminds me too much of the We-know-better-than-you-what's-good-for-you philosophy of other certain OSes)
Thus I cannot say what quirks Ubuntu has to offer to obstruct drbd installation.
I understand Ubuntu is basically a "somewhat patched" Debian.
Probably the biggest challenge is to obtain a root shell in Ubuntu (you don't want to preceede every command by a sudo, do you? ;-)
We make use of DRBD disks on our RHEL Heartbeat clusters (no we aren't using the RH Cluster Server but fiddled up our own solution).
Actually, it is a bit convoluted
because we take ordinary partitions from the SCSI root disks (in BSD/Solaris terms aka slices) which also can be so called extended partitions.
From those we make RAID1 MD devices by Linux raidtools and mdadm.
Then we define DRBD disks from these MDs.
Of the DRBD devices we create LVM PVs, and from them VGs, and of these LVs.
Finally ext3 filesystems are put on these LVs to host the HA applications' data.
All of these resources are made HA by Heartbeat.
But I see no reason why the procedure shouldn't work equally well on Ubuntu.
If you can get a Debian package for drbd driver and utilities, and you don't have any specific needs, take that.
(You should know how to search Debian repositories (possibly Unstable branch), and install from there, i.e. know your apt commands.
Maybe you have to compile the DRBD driver from the sources as we had to.
Then download the DRBD sources from
http://www.drbd.org/The readmes should tell the build and installation procedure.
Usually you require yours kernel sources and development tools as well.
After installation and loading of DRBD driver
you need to edit /etc/drbd.conf and name your resources.
You also need to setup a dedicated private LAN Fast Ethernet or better Gigabit between your DBRBD nodes.
Sorry, don't know the names and locations of NIC config files on Debian, and an interactive ifconfig or ip command wouldn't suffice since you need to bring up the DRBD NICs on boot up before DRBD gets started.
After having edited drbd.conf one simply runs
(Beware syncing direction!)
# drbdadm -- --do-what-I-say primary all
But the required steps should all be described in the docs.
You may also would want to visit this site
http://www.linux-ha.org/DRBD
Madness, thy name is system administration