OpenVZ Forum


Home » General » Discussions » DRBD with OpenVZ - versions and configurations
Re: DRBD with OpenVZ - versions and configurations [message #16424 is a reply to message #16421] Thu, 06 September 2007 09:18 Go to previous messageGo to previous message
wfischer is currently offline  wfischer
Messages: 38
Registered: November 2005
Location: Austria/Germany
Member
Hi Fernando,

unfortunately I didn't have the time yet to update the wiki article for OpenVZ 2.6.18 / DRBD 8.*

Regarding your questions: when the DRBD userspace tools from http://mirror.centos.org/centos-5/5/extras/x86_64/RPMS/ are the same version as the DRBD module which is in the OpenVZ kernel, you should get no problems when using those pre-built tools from CentOS.
Also when e.g. the DRBD module in the OpenVZ kernel gets updated (currently the most recent DRBD version is 8.0.6) the "older" DRBD tools from CentOS should still work, as long as the api version does not change (currently api:86), see http://svn.drbd.org/drbd/branches/drbd-8.0/ChangeLog

Regarding you second question: when you want to use OpenVZ kernel 2.6.18 you get DRBD 8.* module with it (with OpenVZ kernel 2.6.9 you get DRBD 0.7.* module). So, choose the OpenVZ kernel version you want to use (2.6.9 or 2.6.18) and use the DRBD version which comes with the OpenVZ kernel.

And here is an example config for DRBD 8:
global {
  usage-count no;
}

resource r0 {
  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";
  }

  startup {
    degr-wfc-timeout 120;
  }

  disk {
    on-io-error   call-local-io-error;
  }

  syncer {
    rate 30M;
    al-extents 257;
  }

  on ovz-node1 {
    device     /dev/drbd0;
    disk       /dev/hda3;
    address    192.168.255.1:7788;
    meta-disk  internal;
  }

  on ovz-node2 {
    device     /dev/drbd0;
    disk       /dev/hda3;
    address    192.168.255.2:7788;
    meta-disk  internal;
  }

}


best regards,
Werner


Werner Fischer, Developer of a Virtuozzo-out-of-the-box-cluster solution at Thomas-Krenn.AG
http://static.openvz.org/userbars/openvz-user.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Dual Opteron 248's
Next Topic: Kernel binaries for Ubuntu
Goto Forum:
  


Current Time: Tue May 21 08:41:28 GMT 2024

Total time taken to generate the page: 0.01632 seconds