Hi all I'm new to drbd, and would like to implement it on a machine which has RAID-1 & LVM running, but don't seem to understand the concept very clearly. Can someone please point me into the right direction? The problem I'm having, is that the data on the one PC doesn't sync on the other PC. Code: backup2:~ # cat /proc/drbd version: 0.7.22 (api:79/proto:74) SVN Revision: 2554 build by lmb@dale, 2006-10-30 22:52:11 0: cs:Connected st:Secondary/Secondary ld:Inconsistent ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 My setup is as follows: I have 2 PC's, each with 2x 160GB SATA II HDD's Then I have setup software RAID-1 on each, and LVM on top of it, as follows: Code: /dev/sda │ 149.0 GB │ │MAXTOR-STM316021 │ │ │ │ /dev/sda1 │ 101.9 MB | │Linux RAID │ │md0 │ │ /dev/sda2 │ 2.0 GB │ │Linux swap │swap │ │ │ /dev/sda3 │ 146.9 GB │ │Linux RAID │ │md1 │ │ /dev/sdb │ 149.0 GB │ │MAXTOR-STM316021 │ │ │ │ /dev/sdb1 │ 101.9 MB │ │Linux RAID │ │md0 │ │ /dev/sdb2 │ 2.0 GB | │Linux swap │swap │ │ │ /dev/sdb3 │ 146.9 GB │ │Linux RAID │ │md1 │ │ /dev/md0 │ 101.8 MB | │MD Raid │/boot │ │ │ /dev/md1 | 146.9 GB │ │MD Raid │ │LVM system │ │ /dev/system │ 146.9 GB │ │LVM2 system │ │ │ │ /dev/system/home │ 80.0 GB │ │LV │/home | │ │ /dev/system/opt │ 20.0 GB │ │LV │/opt | │ │ /dev/system/root │ 10.0 GB │ │LV │/ │ │ │ /dev/system/share │ 36.9 GB │ │LV |/share * │ │ | This is my /etc/drbd.conf file: Code: resource r0 { protocol C; # incon-degr-cmd "halt -f"; incon-degr-cmd "echo 'DRBD: primary requested but inconsistent!' | wall; sleep 3000"; # incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 60"; startup { wfc-timeout 0; degr-wfc-timeout 120; } # disk { on-io-error detach; } # or panic, ... syncer { group 0; rate 600M; } on backup1 { device /dev/drbd0; disk /dev/mapper/system-share; meta-disk internal; address 192.168.1.11:7788; } on backup2 { device /dev/drbd0; disk /dev/mapper/system-share; meta-disk internal; address 192.168.1.12:7788; } }
I know this is late and you've either solved it or moved onto another idea so this is for others benefits. the reason is that your in secondary/secondary mode.. there is no primary for a secondary to copy from. 0: cs:Connected st:Secondary/Secondary ld:Inconsistent You need to set at least 1 of the nodes to primary on the (to be) primary node : drbdadm disconnect all drbdadm invalidate-remote all drbdadm primary all drbdadm connect all on the other (secondary) node : drbdadm disconnect all drbdadm invalidate all drbdadm connect all after this, cat your /proc/drbd and you should see something like this : PHP: primary:~# cat /proc/drbd0: cs:SyncSource st:Primary/Secondary ld:Consistent ns:24768676 nr:0 dw:537576684 dr:315968437 al:34170 bm:1852 lo:0 pe:0 ua:0 ap:0 [=======>............] sync'ed: 37.5% (39870/63773)M finish: 1:04:55 speed: 10,476 (9,448) K/sec