drbd-user March 2010 archive
Main Archive Page > Month Archives  > drbd-user archives
drbd-user: [DRBD-user] drbd invalidate

[DRBD-user] drbd invalidate

From: Nadezhda S. Zhivchikova <ming_at_nospam>
Date: Fri Mar 26 2010 - 10:46:59 GMT
To: drbd-user@lists.linbit.com


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
 1: cs:Unconfigured
 2: cs:Unconfigured

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

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,

drbd-user mailing list