- [Show pagesource]
- [Old revisions]
- [[unknown link type]]
- []
Installation on Debian 8 Jessie
- install necessary packages:
apt-get install cman clvm gfs2-utils gfs2-cluster multipath-tools xmlstarlet ntp
- in case you are using iscsi attached quorum disk - install iscsi:
apt-get install open-iscsi
- install fencing-agents either via apt or from git (better):
apt-get install fence-agents
- in case you are using Netio 230A copy its agent from netio_230a_agent to /usr/sbin/fence_netio_230A
- disable waiting for quorum device:
echo "CMAN_QUORUM_TIMEOUT=0" >> /etc/default/cman
- edit /etc/lvm/lmv.conf, set:
mirror_logs_require_separate_pvs = 1 locking_type = 3
Adding node to the cluster
- 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
- copy /root/cluster_bin directory from existing node to new one
- add new node on one of existing nodes:
ccs_tool addnode 10.0.0.140 -v 1 -f ac_node port=4 -n 4
- distribute the configruation in cluster
cluster_bin/distribute_config
- disable services on startup (it will be handled manually)
systemctl disable cman.service systemctl disable clvm.service systemctl disable gfs2-cluster.service
- (optional) if is qourum disk connected via iscsi set it conect automatically
- if using gfs2 filesystem add journal for it:
gfs2_jadd -j Number MountPoint
- run
cluster_bin/start_cluster.sh
linux/cluster/install.txt · Last modified: 2015/12/11 17:59 by vondra