[DRBD-user] Build a DRBD partition without clean old data

Longming Lee longming at corp.url.com.tw
Tue Mar 8 02:04:32 CET 2005

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


Hi,

I prepare two PCs for DRBD and duplicate /dev/sdb1 to each other by DRBD.
But there are some data in PC1 /dev/sdb1 already. I issued
'drbdsetup /dev/drbd0 primary --do-what-I-say' at both PCs, and don't
do 'mkfs -t ext3 /dev/drbd0' at PC1 for keeping old data, but do it at PC2.
Reboot both PC and start DRBD and Heartbeat OK. Data of /dev/drbd0 will be
replicated from PC1 to PC2.

But:
1. The disk I/O performance of /dev/drbd0 is very poor.
2. I disconnect the network of PC1, then I get the error message at PC1:
"Kernel panic: drbd0: Sorry, I have no access to goot data anymore."

If I do 'mkfs -t ext3 /dev/drbd0' at PC1, DRBD will be OK after I disconnect
the network of PC1 and well done.

How can I make a good /dev/drbd0(/dev/sdb1) without clear old data of
/dev/drbd0?
(/dev/sdb1 is the physical disk partition used)

regards,

Longming 3/8



More information about the drbd-user mailing list