[DRBD-user] Can DRBD 8 synchronise SDA1?

Ante Karamatic ivoks at grad.hr
Sat Feb 7 15:06:35 CET 2009

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


On Sat, 7 Feb 2009 05:54:47 -0800 (PST)
Bluntknife <paul_rawlinson at msn.com> wrote:

> I currently have 2 Ubuntu 8.10 servers and have successfully
> installed and configured DRBD and a drbd.conf file...I think.  The
> service runs and when I type the cmd "drbdadm up r0" I see a
> connection between the 2 servers stating that the DRBD connection is
> established. The problem is the connection drops almost straight away
> and I think it's because I am trying to synchronise my SDA1 partition.
> 
> I want my secondary server to be an exact clone of the primary and I
> thought I could use DRBD for this.  
> 
> Should it be possible to synchronise my primary partition (the boot
> and system files)?

You can't 'mirror' partitions that's mounted. You have to create drbd
on top of /dev/sda1 and then create filesystem on /dev/drbdX and
mount /dev/drbdX, not /dev/sda1. Think of it as mdadm or lvm, where you
have to use upper level (/dev/mdX or /dev/mapper/X-Y). It's the same
logic, only here you have to use /dev/drbdX



More information about the drbd-user mailing list