Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
TetraWiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Forth dimention - Tvs tyre Cluster
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Zimbra MailBox and MTA clustring • Zimbra Mailbox Clustering 1 Pacemaker: Install Install and Configure Linux High-Availability Cluster tool "Pacemaker". Zimbra.tvstyres.com 10.25.2.78 | +----------------------+ | +----------------------+ | [ Node01 ] |10.25.2.125 |10.25.2.126 | [ Node02 ] | | TVSCZIMBRAMAIL-1 +----------+----------+ TVSCZIMBRAMAIL-2 | | | | | +----------------------+ +----------------------+ 1.1 Install Pacemaker like follows on all Nodes. [root@gd9109 ~]# yum -y install pacemaker pcs [root@gd9109 ~]# systemctl start pcsd [root@gd9109 ~]# systemctl enable pcsd 1.2 Set password for cluster admin user # passwd hacluster Changing password for user hacluster. New password: Retype new password: passwd: all authentication tokens updated successfully. 1.3 Configure like follows on a Node. 1.3.1 Establish authorization # pcs cluster auth TVSCZIMBRAMAIL-1 TVSCZIMBRAMAIL-2 Username: hacluster Password: TVSCZIMBRAMAIL-1 : Authorized TVSCZIMBRAMAIL-2 : Authorized 1.3.2 Configure cluster [root@gd9109 ~]# pcs cluster setup --name Mailbox-Cluster TVSCZIMBRAMAIL-1 TVSCZIMBRAMAIL-2 Shutting down pacemaker/corosync services... Redirecting to /bin/systemctl stop pacemaker.service Redirecting to /bin/systemctl stop corosync.service Killing any remaining services... Removing all cluster configuration files... TVSCZIMBRAMAIL-1 : Succeeded TVSCZIMBRAMAIL-2: Succeeded 1.3.3 Start services for cluster # pcs cluster start --all TVSCZIMBRAMAIL-1 : Starting Cluster... TVSCZIMBRAMAIL-2: Starting Cluster... 1.3.4 Enable cluster # pcs cluster enable --all TVSCZIMBRAMAIL-1 : Cluster Enabled TVSCZIMBRAMAIL-2 : Cluster Enabled 1.3.5 Show status # pcs status corosync Membership information ---------------------- Nodeid Votes Name 1 1 TVSCZIMBRAMAIL-1 (local) 2 1 TVSCZIMBRAMAIL-2 1.4 Show settings # pcs property list Cluster Properties: cluster-infrastructure: corosync cluster-name: Mailbox-Cluster dc-version: 1.1.13-10.el7-44eb2dd have-watchdog: false last-lrm-refresh: 1471967184 stonith-action: reboot symmetric-cluster: on 2 Pacemaker: Add Resource 2.1 Set virtual IP address 2.1.1 IPv4 Resource: [root@gd9109 ~]# pcs resource create ClusterIP ocf:heartbeat:IPaddr2 ip=10.25.2.78 cidr_netmask=24 op monitor interval=30s 2.1.2 Zimbra Service resource: Copy attached zimbra resource script on both the server at “/usr/lib/ocf/resource.d/heartbeat” location. Click on add resource and Select type as zimbra, name for the resource will be “Zimbra_Service” And optional Arguments should be like below, binary = zmcontrol zimbra_dir = /opt/zimbra zimbra_user = zimbra zimbra_group = zimbra After filling above information click on apply: 2.2 Install required packages on all Nodes. [root@gd9109 ~]# yum -y install fence-agents-all lvm2-cluster gfs2-utils [root@gd9109 ~]# reboot 2.3 Add required resources. It's OK to set on a node. # pcs resource create dlm ocf:pacemaker:controld op monitor interval=30s on-fail=fence clone interleave=true ordered=true # pcs resource create clvmd ocf:heartbeat:clvm op monitor interval=30s on-fail=fence clone interleave=true ordered=true # pcs constraint order start dlm-clone then clvmd-clone # pcs constraint colocation add clvmd-clone with dlm-clone 3 Pacemaker: CLVM + GFS2 3.1 Create volumes on shared storage and format with GFS2. It's OK to set on a node. On this example, it is set on sdb and create partitions on it and set LVM type with fdisk. # pvcreate /dev/sdb1 # vgcreate -cy vg_cluster /dev/sdb1 # lvcreate -l100%FREE -n lv_cluster vg_cluster # mkfs.gfs2 -p lock_dlm -t ha_cluster:gfs2 -j 2 /dev/vg_cluster/lv_cluster 3.2 Add shared storage to cluster resource. It's OK to set on a node. [root@gd9109 ~]# pcs resource create fs_gfs2 Filesystem device="/dev/vg_cluster/lv_cluster" directory="/opt/zimbra" fstype="gfs2" options="noatime,nodiratime" op monitor interval=10s on-fail=fence clone interleave=true [root@gd9109 ~]# pcs constraint order start clvmd-clone then fs_gfs2-clone [root@gd9109 ~]# pcs constraint colocation add fs_gfs2-clone with clvmd-clone [root@gd9109 ~]# pcs constraint show Location Constraints: Ordering Constraints: start dlm-clone then start clvmd-clone (kind:Mandatory) start clvmd-clone then start fs_gfs2-clone (kind:Mandatory) start fs_gfs2-clone then start fs_bkp (kind:Mandatory) start fs_gfs2-clone then start Zimbra_Service (kind:Mandatory) Colocation Constraints: clvmd-clone with dlm-clone (score:INFINITY) fs_gfs2-clone with clvmd-clone (score:INFINITY) 4 Create Fence through vmware manager: # pcs stonith create rhevfence fence_vmware stonith-timeout=120 pcmk_host_map="TVSCZIMBRAMAIL-1:TVSCZIMBRAMAIL-1 TVSCZIMBRAMAIL-2:TVSCZIMBRAMAIL-2" ipaddr=172.18.102.22 ssl=1 login=cadmin passwd=XXXXXXX
Summary:
Please note that all contributions to TetraWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TetraWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)