[DRBD-user] MD5-Hash of DRBD Resource

Arnold Krille arnold at arnoldarts.de
Tue Nov 19 22:20:27 CET 2013

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

On Tue, 19 Nov 2013 14:29:32 +0100 "FDS | Forensik Data Services"
<office at fds.at> wrote:
> Just clarifying my understanding of an UpToDate-Status of a DRBD
> Resource in Dual Primary Mode on 2 nodes.
> Does a MD5-Hash calculation of both resources lead to equal  MD5
> values?

That depends. Prerequisites:
 - Both primaries are unmounted.
 - Both primaries are completely synced from the os/fs point of view.
   (That is "sync" has been run and thus all write-buffers are cleared.)

Then an md5-hash of the drbd-device on both machines should return the
same. Also md5-hashes of all the underlaying devices should(*) return
the same.

(*) With internal meta-data, there could be differences in the
meta-data. With external meta-data the md5-hash of the data partitions
used by drbd should all be equal.

But be aware that with md5 it seems as if there is a slight chance of
hash-collisions, it might be the hashes are the same but the data on
your disks is actually different. Better do your tests with a sha-sum:-P

Have fun,


PS: Afaik if your devices aren't unmounted and synced, the data on disk
can be different for a variety of valid reasons.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20131119/49333f56/attachment.pgp>

More information about the drbd-user mailing list