[DRBD-user] problem with syncing of disks

Ravi Kanth raveeknth at gmail.com
Tue Sep 28 16:20:11 CEST 2010

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


I have 3 machines with similar configuration. Lets say A, B and C as the
machines. I create a drbd cluster using A and B. Once A and B are
consistent, I disconnected B, replaced the drbd.conf file and connected it
to C.  C is synced with B now. When I write any data on to A-B cluster, then
disconnect B and connect it with C, those new data are not found. Instead
Machines B-C are still in sync and shows 0KB maked out of sync.

Conf files
###############

A - B conf file

global {
usage-count no;
}
common { syncer { rate 1G; } }
resource r7 {
protocol C;
handlers {
pri-on-incon-degr "echo '!DRBD! pri on incon-degr' | wall;
/etc/init.d/hearbeat stop ";
outdate-peer "/usr/lib/heartbeat/drbd-peer-outdater";
}
on ninja1 {
device /dev/drbd7;
disk /dev/loop0;
address 10.0.2.150:7788;
meta-disk internal;
}
on ninja2 {
device /dev/drbd7;
disk /dev/loop0;
address 10.0.2.151:7788;
meta-disk internal;
}

net {
allow-two-primaries;
sndbuf-size 512k;
timeout 60;
connect-int 10;
ping-int 10;
ping-timeout 5
ko-count 0;
max-epoch-size 8096;
}
}

##########
B - C conf file


global {
usage-count no;
}
common { syncer { rate 1G; } }
resource r7 {
protocol C;
handlers {
pri-on-incon-degr "echo '!DRBD! pri on incon-degr' | wall;
/etc/init.d/hearbeat stop ";
outdate-peer "/usr/lib/heartbeat/drbd-peer-outdater";
}
on ninja2 {
device /dev/drbd7;
disk /dev/loop0;
address 10.0.2.151:7788;
meta-disk internal;
}
on ninja3 {
device /dev/drbd7;
disk /dev/loop0;
address 10.0.2.152:7788;
meta-disk internal;
}

net {
allow-two-primaries;
sndbuf-size 512k;
timeout 60;
connect-int 10;
ping-int 10;
ping-timeout 5;
ko-count 0;
max-epoch-size 8096;
}
}
##############

What I am trying to acheive here is make a copy of changes done on A-B on to
C. I don't want to use stacked resources method. Please let me know what I
might be doing wrong or this approach is wrong?
Thanking you
Ravee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20100928/987053bd/attachment.htm>


More information about the drbd-user mailing list