<div>The reason of having out-of-sync handler is exactly tp provide possibility of automation.</div>
<div><a href="http://www.drbd.org/users-guide/s-use-online-verify.html">http://www.drbd.org/users-guide/s-use-online-verify.html</a></div>
<div> </div>
<div>Tino<br><br></div>
<div class="gmail_quote">2009/7/13 Andrew Miklas <span dir="ltr"><<a href="mailto:public@mikl.as">public@mikl.as</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi,<br><br>I've got a small question about DRBD's online verification process.<br><br>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.<br>
<br>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:<br>drbd1: helper command: /sbin/drbdadm out-of-sync<br>
<br>Can I configure the out-of-sync event to automatically correct the mismatched blocks without a disconnect/reconnect?<br>If not, will doing the disconnect/reconnect on the primary be enough to force an update of the secondary?<br>
<br><br>Thanks for your help,<br><br><br>Andrew Miklas<br><br>_______________________________________________<br>drbd-user mailing list<br><a href="mailto:drbd-user@lists.linbit.com" target="_blank">drbd-user@lists.linbit.com</a><br>
<a href="http://lists.linbit.com/mailman/listinfo/drbd-user" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br></blockquote></div><br>