[Linux-HA] HA2 OCF CRM: Manage multiple DRBD Resources

Dominik Klein dk at in-telegence.net
Wed Jul 4 04:48:03 MDT 2007


Hi

I read http://wiki.linux-ha.org/DRBD/HowTov2 today and wanted to set up 
those examples for a testing scenario.

My drbd setup is working. I can manually set each note to be primary for 
each resource (while the other is secondary of course). When starting 
heartbeat, I make sure every drbd device is either Unconfigured/down or 
secondary.

I get one drbd+fs pair to run (the one using r1 in my config). But when 
I try to add another one (the one using r0 in my config), it does not 
promote the master and therefore does not mount the fs. The OCF script 
hangs and times out at "crm_master -v 75" and as you can see in the 
nodes section of the CIB, only the master value for r1 made it to the CIB.

Is there something special needed to run multiple DRBD devices in 
master/slave mode?

If you need any further info, just ask, I'll be happy to supply it.

Regards
Dominik
-------------- next part --------------
global {
  usage-count no;
}

common {
  syncer { rate 128M; }
}

resource r0 {
  protocol C;
  startup {
    wfc-timeout  15;
    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 128M;
  }
  on ACD-xen01 {
    device     /dev/drbd0;
    disk       /dev/sdb1;
    address    10.250.250.31:7789;
    meta-disk  internal;
  }
  on ACD-xen03 {
    device    /dev/drbd0;
    disk      /dev/sdb1;
    address   10.250.250.33:7789;
    meta-disk internal;
  }
}

resource r1 {
  protocol C;
  startup {
    wfc-timeout  15;
    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 128M;
  }
  on ACD-xen01 {
    device     /dev/drbd1;
    disk       /dev/sda4;
    address    10.250.250.31:7788;
    meta-disk  internal;
  }
  on ACD-xen03 {
    device    /dev/drbd1;
    disk      /dev/sda4;
    address   10.250.250.33:7788;
    meta-disk internal;
  }
}

resource r2 {
  protocol C;
  startup {
    wfc-timeout  15;
    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 128M;
  }
  on ACD-xen01 {
    device     /dev/drbd2;
    disk       /dev/sdb2;
    address    10.250.250.31:7790;
    meta-disk  internal;
  }
  on ACD-xen03 {
    device    /dev/drbd2;
    disk      /dev/sdb2;
    address   10.250.250.33:7790;
    meta-disk internal;
  }
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cib.xml
Type: text/xml
Size: 4721 bytes
Desc: not available
Url : http://lists.community.tummy.com/pipermail/linux-ha/attachments/20070704/18c32b98/cib-0001.bin


More information about the Linux-HA mailing list