Suse 9.0 DRBD Setup


I had a lot of difficulty on one of these machines with the install. As it turns out, it was due to me trying to choose options during the install which the bootable install disk simply didnt like. I was trying to change partition sizes, change default install packages, and tune the way the install was to take place. Apparently this was designed simply to be done as a "take all defaults" type of install, and then tune everything later. This is ultimately what I had to do to get this to work.

Current System(s) Configuration :

ComponentSystem : SuSE1System : Suse2
MotherBoardCyrixIntel
ProcessorCyrix 6x86 166+Intel Pentium Pro 200Mhz
Memory96 Mb 72 Pin SIMM's128 Mb 72 Pin SIMM's
I/O ControllerOnBoard PCIAdaptec 2940
Storage4.3 Gig Maxtor EIDE9.1 Gig Seagate Barracuda SCSI - ST19101W
CD/DVDBenQ 56x CDRomHP DVD-Rom 305
Network3com 3c509-Combo (ISA)3com 3c509-TPO (ISA)
VideoMatrox Millenia 4Mb (PCI)Trident 9440 1Mb (PCI)
PointerPS/2 MousePS/2 Mouse

First thing to do is to go to suse.com and download the installation disk1 cdrom image and burn it. If you dont have a bootable cdrom, its a lot more difficult to make all the floppy diskettes with modules, etc (if you even have a spare floppy drive). Since this proved too much difficulty for me and my spare parts bin, I decided that it was easier to go SCSI intead.

Perhaps at some point, I will pen down all the installation notes, but for now, the main objective is to document how to work with the DRBD facility.

In order to switch control of writes from primary to secondary, run this on the primary "/etc/ha.d/resource.d/datadisk drbd0 stop", and on the secondary run the "/etc/ha.d/resource.d/datadisk drbd0 start" commands. I have not yet setup full failover functionality, so I have not automated this yet.

Some other useful status commands, or ways to check health and configuration :

Thats pretty much it. Then it was just a bunch of testing and further tuning.