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

Cluster configuration for iSCSI based cluster

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

Words of warning

  1. iSCSI 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:

  • iSCSI initiator RPMs
  • comoonics-bootimage-extras-iscsi need to installed additionally
  • comoonics-bootimage-1.3-25 or later

Example cluster.conf:

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

<cluster config_version="1" name="iscsicluster">
      <cman 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="iscsi"/>
                              <chrootenv      mountpoint      = "/var/comoonics/chroot"
                                              fstype          = "ext3"
                                              device          = "/dev/sda2"
                                              chrootdir       = "/var/comoonics/chroot"
                              />
                              <syslog name="localhost"/>
                              <rootvolume     name            = "/dev/sdb"
                                              mountopts       = "noatime,nodiratime,noquota"
                              />
                              <eth    name    = "eth1"
                                      ip      = "10.0.0.4"
                                      mac     = "XXX"
                                      mask    = "255.255.255.0"
                                      gateway = ""
                              />
                              <fenceackserver user    = "user"
                                              passwd  = "password"
                              />
                      </com_info>
                      <fence>
                              <method name="1">
                                      <device name = "manual"/>
                              </method>
                      </fence>
              </clusternode>

              <clusternode name="node2" nodeid="2" votes="1">
                      <com_info>
                              <rootsource name="iscsi"/>
                              <chrootenv      mountpoint      = "/var/comoonics/chroot"
                                              fstype          = "ext3"
                                              device          = "/dev/sda2"
                                              chrootdir       = "/var/comoonics/chroot"
                              />
                              <syslog name="localhost"/>
                              <rootvolume     name            = "/dev/sdb"
                                              mountopts       = "noatime,nodiratime,noquota"
                              />
                              <eth    name    = "eth1"
                                      ip      = "10.0.0.5"
                                      mac     = "XXX"
                                      mask    = "255.255.255.0"
                                      gateway = ""
                              />
                              <fenceackserver user    = "user"
                                              passwd  = "password"
                              />
                      </com_info>
                      <fence>
                              <method name = "1">
                                      <device name = "manual"/>
                              </method>
                      </fence>
              </clusternode>
      </clusternodes>
      <cman expected_votes="1" two_node="1"/>
      <fencedevices>
              <fencedevice agent="fence_manual" name="manual"/>
      </fencedevices>
      <rm>
              <failoverdomains/>
              <resources/>
      </rm>
</cluster>

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: