Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Curtis Vaughan wrote: > I've been looking through the archives for DRDB-User list for info on > how exactly to do a Debian install, but I guess I'm really confused. > OK, I'm using sarge. I've installed: > module-assistant > kernel-headers > drbd > drbd0.7-utils You will need drbd0.7-module-source too. > Am I supposed to use module-assistant to help me build and install drbd > or do I need to compile drbd into the kernel myself? DRBD allows both: to compile the DRBD module _into_ the kernel, or to compile it as a loadable module _against_ the kernel (headers). > (see: http://wiki.linux-ha.org/DRBD_2fHowTo_2fInstall -or- http:// > svn.drbd.org/drbd/tags/drbd-0.6.12/INSTALL) > But neither of these take into consideration the fact that deb already > has a precompiled package. Hmm, I didn't find a precompiled one on packages.debian.org. > I mean what do I do now? There are many ways. From my last history snippets I can quote you 2 variants, which both are the 'Debian way'. 1) the shortest #install drbd apt-get install drbd0.7-module-source m-a a-i drbd0.7-module-source (Maybe some 'apt-get install' are missing;-) This is the recommended way, if you want not change, patch or recompile the kernel. See also quote at bottom of this message. 2) example with a Debian kernel patch, the debian way. BTW, this uses the vserver patch, which is an interesting combination. cel600:/home/helmut# cat vserver+drbd.howto 41 apt-get update 44 apt-get upgrade 45 apt-get dist-upgrade 49 apt-get install kernel-package 50 apt-get install kernel-source-2.6.8 51 cd /usr/src 53 apt-get install dlocate 55 apt-get install libdb3-dev libncurses-dev docbook-utils 66 apt-get install util-vserver kernel-patch-vserver vlan 70 nano /etc/apt/sources.list 71 apt-get update 72 apt-get install util-vserver -t unstable 73 nano /etc/apt/sources.list 88 tar xjf /usr/src/kernel-source-2.6.8.tar.bz2 96 cd /usr/src 98 cd kernel-source-2.6.8 101 cp /boot/config-2.6.8-2-386 .config 103 export PATCH_THE_KERNEL=YES 104 make-kpkg --rootcmd fakeroot --revision custom01 --added-patches vserver --append-to-version +vserver --initrd binary-arch 106 cd .. 108 dpkg -i kernel-image-2.6.8+vserver_custom01_i386.deb 109 dpkg -i kernel-headers-2.6.8+vserver_custom01_i386.deb 110 apt-get update 111 apt-cache search drbd 112 apt-get install drbd0.7-utils 113 apt-get install drbd0.7-module-source module-assistant 117 apt-get install fakeroot 144 tar xzf drbd0.7.tar.gz 175 cd /usr/src/kernel-source-2.6.8 181 apt-get install dpatch 182 make-kpkg --append-to-version +vserver modules_image 183 dpkg -i /usr/src/drbd0.7-module-* 184 update-modules 185 modprobe drbd (From history numbers you can see, that I removed some lines of trial and error. Hopefully the important lines are present. Some steps will not be necessary, as this was on a fresh 'naked' Sarge installation.)  Here is, what Phil Hug (one of the maintainers) recommends: ----quote begin---- I think it would make sense to update the wiki for installation on debian: default installation (compilation and installation is just one step): m-a a-i drbd0.7-module-source this builds drbd against the current running kernel (if it doesn't find an already built module on debian.org) and installs it automatically. ;-) in case you want to build against a custom kernel have a look at the m-a man page. (e.g. --kernel-dir might be of interest or --kvers-list if you want to build against another "official" debian kernel) ----quote end----  www.linux-vserver.org is one possibility to have a kind of 'virtual machine' completely mounted on a DRBD device, and restart the 'virtual machine' via heartbeat. XEN is another possibility - a short HOWTO should be found via Google on the XEN mailing list. HTH Helmut Wollmersdorfer