[DRBD-user] drbd invalidate

Nadezhda S. Zhivchikova ming at pereslavl.ru
Fri Mar 26 11:46:59 CET 2010

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


Hello.

I have a 2 nodes (node1 and node2) with kernel 2.6.20, DRBD 0.7.23, LVM 2.01.04-5.

I say invalidate on Secondary node.

When Resync has finished, I see in /proc/drbd: 

 0: cs:Connected st:Primary/Secondary ld:Consistent  
    ns:1024000 nr:0 dw:3081256 dr:6169436 al:15 bm:973 lo:0 pe:0 ua:0
ap:0
 1: cs:Unconfigured
 2: cs:Unconfigured

Then, I try to compare the partitions of the nodes. The partitions are
different:

node1:~# ssh node2 "dd if=/dev/vg0/test" | cmp - /dev/vg0/test
- /dev/vg0/test differ: char 65541, line 1
2048000+0 records in
2048000+0 records out
1048576000 bytes transferred in 25.108733 seconds (41761406 bytes/sec)

Invalidate forces DRBD to copy each and every block over from its peer,
to bring the local storage device back in sync. Does it mean that the
partitions must be the same after invalidate?


Thanks for any help,
Nadezhda.






More information about the drbd-user mailing list