WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Re: using DRBD VBDs with Xen

* khris4 <khris4@xxxxxxxxx> [20100930 16:56]:
> 
> I forgot to ask where is your copy of drbd.confg?

/etc/drbd.d/r{1,2}.res

resource r1 {

    device /dev/drbd1;
    disk /dev/xen_vg/xen_lv1;
    meta-disk internal;

    startup {
        degr-wfc-timeout 30;
        wfc-timeout 30;
        become-primary-on both;
    }

    net {
        allow-two-primaries;
        cram-hmac-alg sha1;
        shared-secret "lucid";
        after-sb-0pri discard-zero-changes;
        after-sb-1pri discard-secondary;
        after-sb-2pri disconnect;
        rr-conflict disconnect;
    }

    disk {
        fencing resource-only;
        on-io-error detach;
    }

    handlers {
    # these handlers are necessary for drbd 8.3 + pacemaker compatibility
        fence-peer "/usr/lib/drbd/crm-fence-peer.sh";
        after-resync-target "/usr/lib/drbd/crm-unfence-peer.sh";
        outdate-peer "/usr/lib/drbd/outdate-peer.sh";
        split-brain "/usr/lib/drbd/notify-split-brain.sh root";
        pri-on-incon-degr "/usr/lib/drbd/notify-pri-on-incon-degr.sh root";
        pri-lost-after-sb "/usr/lib/drbd/notify-pri-lost-after-sb.sh root";
        local-io-error "/usr/lib/drbd/notify-io-error.sh malin";
    }

    syncer {
        rate 24M;
        csums-alg sha1;
        al-extents 727;
    }

    on node1 {
        address 10.0.0.1:7789;
    }
   
    on node2 {
        address 10.0.0.2:7789;
    }

}


resource r2 {

    device /dev/drbd2;
    disk /dev/xen_vg/xen_lv2;
    meta-disk internal;

    startup {
        degr-wfc-timeout 30;
        wfc-timeout 30;
        become-primary-on both;
    }

    net {
        allow-two-primaries;
        cram-hmac-alg sha1;
        shared-secret "lucid";
        after-sb-0pri discard-zero-changes;
        after-sb-1pri discard-secondary;
        after-sb-2pri disconnect;
        rr-conflict disconnect;
    }

    disk {
        fencing resource-only;
        on-io-error detach;
    }

    handlers {
    # these handlers are necessary for drbd 8.3 + pacemaker compatibility
        fence-peer "/usr/lib/drbd/crm-fence-peer.sh";
        after-resync-target "/usr/lib/drbd/crm-unfence-peer.sh";
        outdate-peer "/usr/lib/drbd/outdate-peer.sh";
        split-brain "/usr/lib/drbd/notify-split-brain.sh root";
        pri-on-incon-degr "/usr/lib/drbd/notify-pri-on-incon-degr.sh root";
        pri-lost-after-sb "/usr/lib/drbd/notify-pri-lost-after-sb.sh root";
        local-io-error "/usr/lib/drbd/notify-io-error.sh malin";
    }

    syncer {
        rate 24M;
        csums-alg sha1;
        al-extents 727;
    }

    on node1 {
        address 10.0.0.1:7790;
    }
   
    on node2 {
        address 10.0.0.2:7790;
    }

}

jf

> -- 
> View this message in context: 
> http://xen.1045712.n5.nabble.com/using-DRBD-VBDs-with-Xen-tp3046483p3047649.html
> Sent from the Xen - User mailing list archive at Nabble.com.
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users