<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#3333ff">
Hi all<br>
<br>
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. <br>
<br>
backup2:~ # cat /proc/drbd<br>
version: 0.7.22 (api:79/proto:74)<br>
SVN Revision: 2554 build by lmb@dale, 2006-10-30 22:52:11<br>
0: cs:Connected st:Secondary/Secondary ld:Inconsistent<br>
ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0<br>
<br>
<br>
My setup is as follows:<br>
I have 2 PC's, each with 2x 160GB SATA II HDD's<br>
Then I have setup software RAID-1 on each, and LVM on top of it, as
follows:<br>
<br>
/dev/sda │ 149.0 GB │ │MAXTOR-STM316021
│ │ │ │<br>
/dev/sda1 │ 101.9 MB | │Linux RAID
│ │md0 │ │<br>
/dev/sda2 │ 2.0 GB │ │Linux swap
│swap │ │ │<br>
/dev/sda3 │ 146.9 GB │ │Linux RAID
│ │md1 │ │<br>
/dev/sdb │ 149.0 GB │ │MAXTOR-STM316021
│ │ │ │<br>
/dev/sdb1 │ 101.9 MB │ │Linux RAID
│ │md0 │ │<br>
/dev/sdb2 │ 2.0 GB | │Linux swap
│swap │ │ │<br>
/dev/sdb3 │ 146.9 GB │ │Linux RAID
│ │md1 │ │<br>
/dev/md0 │ 101.8 MB | │MD Raid
│/boot │ │ │<br>
/dev/md1 | 146.9 GB │ │MD Raid
│ │LVM system │ │<br>
/dev/system │ 146.9 GB │ │LVM2 system
│ │ │ │<br>
/dev/system/home │ 80.0 GB │ │LV
│/home | │ │<br>
/dev/system/opt │ 20.0 GB │ │LV
│/opt | │ │<br>
/dev/system/root │ 10.0 GB │ │LV
│/ │ │ │<br>
/dev/system/share │ 36.9 GB │ │LV
|/share * │ │ |<br>
<br>
This is my /etc/drbd.conf file:<br>
<br>
resource r0 {<br>
protocol C;<br>
# incon-degr-cmd "halt -f";<br>
incon-degr-cmd "echo 'DRBD: primary requested but inconsistent!' |
wall; sleep 3000";<br>
# incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 60";<br>
<br>
startup { wfc-timeout 0; degr-wfc-timeout 120; }<br>
# disk { on-io-error detach; } # or panic, ...<br>
syncer {<br>
group 0;<br>
rate 600M;<br>
}<br>
<br>
<br>
on backup1 {<br>
device /dev/drbd0;<br>
disk /dev/mapper/system-share;<br>
meta-disk internal;<br>
address 192.168.1.11:7788;<br>
}<br>
on backup2 {<br>
device /dev/drbd0;<br>
disk /dev/mapper/system-share;<br>
meta-disk internal;<br>
address 192.168.1.12:7788;<br>
}<br>
}<br>
<br>
<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
Kind Regards
Rudi Ahlers
CEO, SoftDux
Tel: 087 508-9573
Cell: 082 554 7532
Web: <a class="moz-txt-link-freetext" href="http://www.SoftDux.com">http://www.SoftDux.com</a>
Forum: <a class="moz-txt-link-freetext" href="http://Forum.SoftDux.com">http://Forum.SoftDux.com</a>
Join SA WebHostingTalk today, on <a class="moz-txt-link-freetext" href="http://www.WebHostingTalk.co.za">http://www.WebHostingTalk.co.za</a></pre>
</body>
</html>