Personal tools
You are here: Home FAQ Administrators Handbook Cluster System Administration Example configurations Cluster configuration for DRBD based cluster
Document Actions

Cluster configuration for DRBD based cluster

Since version comoonics-bootimage-1.3-27 it is possible to create open-sharedroot clusters with rootfilesystem residing on DRBD. See here how it works.

Words of warning

  1. DRBD is not officially supported with RHEL4/5. So there will not be upstream support for DRBD on RHEL4/5.
  2. DRBD within the open-sharedroot is only a technology preview. So only best efford support will be granted. This holds even for people with with valid subscriptions until this functionality has been marked as official feature.

Prerequesits:

  • RPMs for DRBD can be retrieved from here:
  • comoonics-bootimage-extras-drbd need to installed aditionally
  • comoonics-bootimage-1.3-27 or higher

Example cluster.conf:

For a two node cluster with manual fencing. Adapt to your needs.

<cluster config_version="1" name="drbdcluster">
      <cman two_node="1" expected_votes="1"/>
      <fence_daemon post_fail_delay="0" post_join_delay="3"/>
      <clusternodes>
              <clusternode name="node1" nodeid="1" votes="1">
                      <com_info>
                              <rootsource name="drbd"/>
                              <!--<chrootenv  mountpoint      = "/var/comoonics/chroot"
                                              fstype          = "ext3"
                                              device          = "/dev/sda2"
                                              chrootdir       = "/var/comoonics/chroot"
                              />-->
                              <syslog name="localhost"/>
                              <rootvolume     name            = "/dev/drbd1"
                                              mountopts       = "noatime,nodiratime,noquota"
                              />
                              <eth    name    = "eth0"
                                      ip      = "10.0.0.1"
                                      mac     = "xxx"
                                      mask    = "255.0.0.0"
                                      gateway = ""
                              />
                              <fenceackserver user    = "root"
                                              passwd  = "password"
                              />
                      </com_info>
                      <fence>
                              <method name="1"/>
                      </fence>
              </clusternode>

              <clusternode name="node2" nodeid="2" votes="1">
                      <com_info>
                              <rootsource name="drbd"/>
                              <!--<chrootenv  mountpoint      = "/var/comoonics/chroot"
                                              fstype          = "ext3"
                                              device          = "/dev/sda2"
                                              chrootdir       = "/var/comoonics/chroot"
                              />-->
                              <syslog name="localhost"/>
                              <rootvolume     name            = "/dev/drbd1"
                                              mountopts       = "noatime,nodiratime,noquota"
                              />
                              <eth    name    = "eth0"
                                      ip      = "10.0.0.2"
                                      mac     = "xxx"
                                      mask    = "255.0.0.0"
                                      gateway = ""
                              />
                              <fenceackserver user    = "root"
                                              passwd  = "password"
                              />
                      </com_info>
                      <fence>
                              <method name="1"/>
                      </fence>
              </clusternode>

      </clusternodes>
      <cman/>
      <fencedevices/>
      <rm>
              <failoverdomains/>
              <resources/>
      </rm>
</cluster>

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: