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
[email protected]<mailto:[email protected]>";
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: [email protected]
[mailto:[email protected]] On Behalf Of Roberto Fastec
Sent: Thursday, June 20, 2013 6:56 PM
To: [email protected]
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
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-user