[DRBD-user] Online verification and the out-of-sync event

Maros Timko timkom at gmail.com
Tue Jul 14 22:42:27 CEST 2009

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


The reason of having out-of-sync handler is exactly tp provide possibility
of automation.
http://www.drbd.org/users-guide/s-use-online-verify.html

Tino

2009/7/13 Andrew Miklas <public at mikl.as>

> Hi,
>
> I've got a small question about DRBD's online verification process.
>
> As suggested in the docs "Automating on-line verification", I'd like to
> have a cron job run the verify process every week.  However, instead of just
> writing an error message into the system log, I'd like the secondary to
> update any mismatched blocks using the primary.  I've written a little Perl
> script that kicks off the verification on the primary, polls "drbdadm
> cstate" waiting for the verify to finish, and then does a
> disconnect/reconnect on the primary.  However, this seems a bit hacky.
>
> Is there any way to avoid the polling and just have DRBD update any out of
> sync blocks automatically?  I've noticed this line appears in the log after
> a failed verification:
> drbd1: helper command: /sbin/drbdadm out-of-sync
>
> Can I configure the out-of-sync event to automatically correct the
> mismatched blocks without a disconnect/reconnect?
> If not, will doing the disconnect/reconnect on the primary be enough to
> force an update of the secondary?
>
>
> Thanks for your help,
>
>
> Andrew Miklas
>
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20090714/a1028594/attachment.htm>


More information about the drbd-user mailing list