resync end in drbd8
Hi,
I am using the svn version of drbd8 and the -m option to allow both peers to be primary. The states are Connected and UpToDate/UpTodate.
I am going bursts of writes to one of the disks and I am interested in finding out when there are no outstanding writes that need to be mirrored to the other disk, basically when the resync ends. What can I use to achieve this? Is there a flag that I can read from userspace when the drives are in sync? Or maybe it is already somewhere in /proc/drbd and I don't see it.
Thank you.
Cristian
Lars Ellenberg
maintainer/ 2006-12-13 19:41:07 +0000
\ Cristian Zamfir:
Quoted 8 lines
Hi,
I am using the svn version of drbd8 and the -m option to allow both peers to be primary. The states are Connected and UpToDate/UpTodate. I am going bursts of writes to one of the disks and I am interested in finding out when there are no outstanding writes that need to be mirrored to the other disk, basically when the resync ends.
there is no "delayed" resync.
DRBD Protocol C is synchonous
(required for two Primaries).
when the write (fsync, fdatasync) comes back,
the data is on both disks.
if you don't fsync or at least fdatasync,
even without drbd you won't know when data is on the local disk.
these kinds of questions are better posted on drbd-user, btw.
Signature · 3 lines
: Lars Ellenberg Tel +43-1-8178292-55 : : LINBIT Information Technologies GmbH Fax +43-1-8178292-82 : : Vivenotgasse 48, A-1120 Vienna/Europe http://www.linbit.com :