[DRBD-user] Problem with Failover with DRBD, Heartbeat, and Pacemaker

Jared Harvey jharvey at pioneershospital.org
Wed Apr 3 17:17:00 CEST 2013

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


Thanks for the ideas so far.  I went and changed some of the ha.cf settings.  Also, something I forgot to mention earlier is the errors that come up on the console (not SSH) when the failover is attempted

block drbd0: State change failed: Refusing to be Primary without at least one UpToDate disk
block drbd0:  state = { cs:WFConnection ro:Primary/Unknown ds:UpToDate/DUnknown r--- }
block drbd0:  wanted = { cs:WFConnection ro:Primary/Unknown ds:Outdated/DUnkown r--- }
block drbd1: State change failed: Refusing to be Primary without at least one UpToDate disk
block drbd1:  state = { cs:WFConnection ro:Primary/Unknown ds:UpToDate/DUnknown r--- }
block drbd1:  wanted = { cs:WFConnection ro:Primary/Unknown ds:Outdated/DUnkown r--- }

# You can find an example in  /usr/share/doc/drbd.../drbd.conf.example

#include "drbd.d/global_common.conf";
#include "drbd.d/*.res";

global {
        # minor-count 64;
        # dialog-refresh 5;
        # disable-ip-verification;
        usage-count no;
}
common {
        # syncer { rate 10M; }
}
resource meta {
        protocol C;
        handlers {
                pri-on-incon-degr "echo O > /proc/sysrq-trigger ; halt -f";
                pri-lost-after-sb "echo O > /proc/sysrq-trigger ; halt -f";
                local-io-error "echo O > /proc/sysrq-trigger ; halt -f";
                # outdate-peer "/usr/sbin/drbd-peer-outdater";
        }
        startup {
                # wfc-timeout 0;
                degr-wfc-timeout 120;
        }
        disk {
                on-io-error detach;
        }
        net {
                after-sb-0pri disconnect;
                after-sb-1pri disconnect;
                after-sb-2pri disconnect;
                rr-conflict disconnect;
        }
        syncer {
                rate 10M;
                al-extents 29;
        }
        on HPSATA01 {
                device /dev/drbd0;
                disk /dev/cciss/c0d0p3;
                address 172.16.0.21:7788;
                meta-disk internal;
        }
        on HPSATA02 {
                device /dev/drbd0;
                disk /dev/cciss/c0d0p3;
                address 172.16.0.22:7788;
                meta-disk internal;
        }
}
resource data {
        protocol C;
        startup {
                wfc-timeout 0;
                degr-wfc-timeout 120;
        }
        disk {
                on-io-error detach;
        }
        net {
                # timeout 0;
                # connect-int 10;
                # ping-int 10;
                max-buffers 4096;
                max-epoch-size 4096;
        }
        syncer {
                after "meta";
                rate 110M;
        }
        on HPSATA01 {
                device /dev/drbd1;
                disk /dev/cciss/c0d0p4;
                address 172.16.0.21:7789;
                meta-disk internal;
        }
        on HPSATA02 {
                device /dev/drbd1;
                disk /dev/cciss/c0d0p4;
                address 172.16.0.22:7789;
                meta-disk internal;
        }
}
________________________________

This email and any files transmitted with it are intended solely for the use of the individuals or entities to which they are addressed and are not to be disclosed to any other party. If you have received this email in error please return it to the sender, and delete any copies thereof. Thank you for your cooperation.



More information about the drbd-user mailing list