Hi,
On Thu, May 22, 2008 at 04:22:08PM +0200, Fabiano Sidler wrote:
> Hi folks!
>
> I'm posting to this list, although the problem I have is more related to
> DRBD than heartbeat, since I didn't get any (useful) reply on drbd-users.
> I'm setting up two identical boxes with heartbeat as well as drbd, and
> would like to get alerted when errors with the discs occur. As I've thought,
> the DRBD handlers seemed to be the best way to do this. Unfortunately,
> they don't get called for some random (?) reason and so I'm asking here:
>
> Is there a way to trigger failure of drbd discs in heartbeat?
This question doesn't fit the subject. And I don't really
understand it.
You may get alerts by email with the MailTo RA.
Thanks,
Dejan
> Thanks in advance for answering!
> Greetings,
> Fabiano
>
> /etc/drbd.conf:
> global {
> usage-count no;
> }
>
> common {
> protocol C;
> disk {
> on-io-error call-local-io-error;
> fencing resource-only;
> }
> net {
> ko-count 10;
> #cram-hmac-alg "sha1";
> #shared-secret "secret";
> after-sb-0pri disconnect;
> after-sb-1pri call-pri-lost-after-sb;
> after-sb-2pri call-pri-lost-after-sb;
> always-asbp;
> rr-conflict call-pri-lost;
> #timeout 60; #.1
> #connect-int 10; #1
> #ping-timeout 5; #.1
> #max-epoch-size 2048;
> }
> startup {
> degr-wfc-timeout 30;
> }
> syncer {}
> }
>
> resource mail {
> on nikko-mail {
> device /dev/drbd1;
> disk /dev/sda6;
> address 192.168.0.3:8899;
> meta-disk internal;
> }
> on nikko-web {
> device /dev/drbd1;
> disk /dev/sda6;
> address 192.168.0.2:8899;
> meta-disk internal;
> }
> handlers {
> local-io-error "/root/bin/drbd/local-io-error mail";
> outdate-peer "/root/bin/drbd/outdate-peer mail";
> pri-lost "/root/bin/drbd/pri-lost mail";
> pri-lost-after-sb "/root/bin/drbd/pri-lost-after-sb mail";
> pri-on-incon-degr "/root/bin/drbd/pri-on-incon-degr mail";
> }
> }
>
> resource web {
> on nikko-mail {
> device /dev/drbd0;
> disk /dev/sda5;
> address 192.168.0.3:7788;
> meta-disk internal;
> }
> on nikko-web {
> device /dev/drbd0;
> disk /dev/sda5;
> address 192.168.0.2:7788;
> meta-disk internal;
> }
> handlers {
> local-io-error "/root/bin/drbd/local-io-error web";
> outdate-peer "/root/bin/drbd/outdate-peer web";
> pri-lost "/root/bin/drbd/pri-lost web";
> pri-lost-after-sb "/root/bin/drbd/pri-lost-after-sb web";
> pri-on-incon-degr "/root/bin/drbd/pri-on-incon-degr web";
> }
> }
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems