This is an old revision of the document!


Installation on Debian 8 Jessie

  1. install necessary packages:
    apt-get install cman clvm gfs2-utils gfs2-cluster multipath-tools xmlstarlet
  2. in case you are using iscsi attached quorum disk - install iscsi:
    apt-get install open-iscsi
  3. install fencing-agents either via apt or from git (better):
    apt-get install fence-agents

    or the newest version from git

    • in case you are using Netio 230A copy its agent from netio-fencing to /usr/sbin/fence_netio_230A
  4. disable waiting for quorum device:
    echo "CMAN_QUORUM_TIMEOUT=0" >> /etc/default/cman
  5. edit /etc/lvm/lmv.conf, set:
    mirror_logs_require_separate_pvs = 1
    locking_type = 3

Adding node to the cluster

  1. add node to the /etc/hosts for all nodes in cluster e.g. (essential when cluster based on FQDN instead of IPs):
    127.0.0.1       localhost
    127.0.1.1       zemi.starlab.cz zemi
     
    # The following lines are desirable for IPv6 capable hosts
    ::1     localhost ip6-localhost ip6-loopback
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
     
    10.0.0.23 semi.starlab.cz
    10.0.0.120 demi.starlab.cz
    10.0.0.130 lemmy.starlab.cz
    10.0.0.140 zemi.starlab.cz
  2. copy /root/cluster_bin directory from existing node to new one
  3. add new node on one of existing nodes:
    ccs_tool addnode 10.0.0.140 -v 1 -f ac_node port=4 -n 4
  4. distribute the configruation in cluster
    cluster_bin/distribute_config
  5. disable services on startup (it will be handled manually)
    systemctl disable cman.service
    systemctl disable clvm.service
    systemctl disable gfs2.service
    systemctl disable gfs2-cluster.service
 
linux/cluster/install.1449844844.txt.gz · Last modified: 2015/12/11 15:40 by vondra