Roberto: You are not looking for a return code, and the oos counter in /proc/drbd might not go up for hours.
What you want is to configure the Out Of Sync handler. Mine (cron to run weekly, one resource per night) says: out-of-sync "/usr/lib/drbd/notify-out-of-sync.sh myem...@address.tld<mailto:myem...@address.tld>"; When I get these email, I can remedy the situation; disconnect/connect to resync, replace a drive if it's bad, whatever. It only sends the email about once per year (not using RAID). Dan in Atlanta From: drbd-user-boun...@lists.linbit.com [mailto:drbd-user-boun...@lists.linbit.com] On Behalf Of Roberto Fastec Sent: Thursday, June 20, 2013 6:56 PM To: drbd-user@lists.linbit.com Subject: [DRBD-user] drbdadm verify resource with cron Dear readers I have configured drbd with resource syncer Since everything is running fine, the command #drbdadm verify resource outputs nothing I'm wondering what the output could be if some re-sync is needed, this is meant to use it with cron. Thank you for hinting Roberto
_______________________________________________ drbd-user mailing list drbd-user@lists.linbit.com http://lists.linbit.com/mailman/listinfo/drbd-user