<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tetrain.com/index.php?action=history&amp;feed=atom&amp;title=Jalindia_cluster_installation_and_configuration</id>
	<title>Jalindia cluster installation and configuration - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tetrain.com/index.php?action=history&amp;feed=atom&amp;title=Jalindia_cluster_installation_and_configuration"/>
	<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Jalindia_cluster_installation_and_configuration&amp;action=history"/>
	<updated>2026-07-27T11:11:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Jalindia_cluster_installation_and_configuration&amp;diff=4303&amp;oldid=prev</id>
		<title>Admin: Auto-created from uploaded PDF text extraction</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Jalindia_cluster_installation_and_configuration&amp;diff=4303&amp;oldid=prev"/>
		<updated>2026-07-26T16:27:09Z</updated>

		<summary type="html">&lt;p&gt;Auto-created from uploaded PDF text extraction&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;Auto-generated from the uploaded PDF [[:File:Jalindia_cluster_installation_and_configuration.pdf|Jalindia_cluster_installation_and_configuration.pdf]]. This is an extracted-text rendering for searchability; see the original PDF for exact formatting, diagrams, tables, and images.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
PCS cluster installation and configuration&lt;br /&gt;
—-----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
OS - rhel 9&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. subscription-manager repos&lt;br /&gt;
--enable=rhel-9-for-x86_64-highavailability-rpms (both node)&lt;br /&gt;
2. dnf install pcs pacemaker fence-agents-all (both node)&lt;br /&gt;
3. passwd hacluster (set on same passwd on same both)&lt;br /&gt;
4. systemctl start pcsd.service (both node)&lt;br /&gt;
5. systemctl enable pcsd.service (both node)&lt;br /&gt;
6. pcs host auth mailbox1.jalindia.com mailbox2.jalindia.co.in -u&lt;br /&gt;
hacluster&lt;br /&gt;
7. pcs cluster setup my_cluster --start mailbox1.jalindia.com&lt;br /&gt;
mailbox2.jalindia.co.in&lt;br /&gt;
8. pcs cluster enable --all&lt;br /&gt;
9. pcs cluster status&lt;br /&gt;
10. subscription-manager repos&lt;br /&gt;
--enable=rhel-9-for-x86_64-resilientstorage-rpms&lt;br /&gt;
11. dnf install lvm2-lockd gfs2-utils dlm&lt;br /&gt;
12. vi /etc/lvm/lvm.conf&lt;br /&gt;
change #use_lvmlockd = 0&lt;br /&gt;
use_lvmlockd = 1&lt;br /&gt;
then save and exit&lt;br /&gt;
13. pcs property set no-quorum-policy=freeze&lt;br /&gt;
14. pcs resource create dlm --group locking ocf:pacemaker:controld op&lt;br /&gt;
monitor interval=30s on-fail=fence&lt;br /&gt;
15. pcs resource clone locking interleave=true&lt;br /&gt;
16. pcs resource create lvmlockd --group locking ocf:heartbeat:lvmlockd&lt;br /&gt;
op monitor interval=30s on-fail=fence&lt;br /&gt;
17. pcs status --full&lt;br /&gt;
18. vgcreate --shared shared_vg1 /dev/mapper/3600asmkfdr2324&lt;br /&gt;
19. lvmdevices --adddev /dev/ (vgname) --run on second node&lt;br /&gt;
20. vgchange --lockstart shared_vg1 --run on second node&lt;br /&gt;
21. lvcreate --activate sy +100%FREE -n shared_lv1 shared_vg1&lt;br /&gt;
&lt;br /&gt;
22. mkfs.gfs2 -j2 -p lock_dlm -t my_cluster:gfs2-demo1&lt;br /&gt;
/dev/shared_vg1/shared_lv1&lt;br /&gt;
23. pcs resource create sharedlv1 --group shared_vg1&lt;br /&gt;
ocf:heartbeat:LVM-activate lvname=shared_lv1 vgname=shared_vg1&lt;br /&gt;
activation_mode=shared vg_access_mode=lvmlockd&lt;br /&gt;
24. pcs resource clone shared_vg1 interleave=true&lt;br /&gt;
25. pcs constraint order start locking-clone then shared_vg1-clone&lt;br /&gt;
26. pcs constraint colocation add shared_vg1-clone with locking-clone&lt;br /&gt;
27. lvs check lv on both node lv is visible on both node&lt;br /&gt;
28. pcs resource create sharedfs1 --group shared_vg1&lt;br /&gt;
ocf:heartbeat:Filesystem device=&amp;quot;/dev/shared_vg1/shared_lv1&amp;quot;&lt;br /&gt;
directory=&amp;quot;/opt&amp;quot; fstype=&amp;quot;gfs2&amp;quot; options=noatime op monitor interval=10s&lt;br /&gt;
on-fail=fence&lt;br /&gt;
29. pcs status --full&lt;br /&gt;
30. Before configuring Zimbra, it is necessary to correct the path where&lt;br /&gt;
the certifying unit (CA) is located:&lt;br /&gt;
mkdir -p /opt/zimbra/java/jre/lib/security/&lt;br /&gt;
ln -s /opt/zimbra/common/etc/java/cacerts&lt;br /&gt;
/opt/zimbra/java/jre/lib/security/cacerts&lt;br /&gt;
chown -R zimbra.zimbra /opt/zimbra/java&lt;br /&gt;
31. cd zcs file then run install.sh&lt;br /&gt;
32. after installation on mailbox1 then stop cluster on mailbox2&lt;br /&gt;
33. pcs cluster stop mailbox2.jalindia.co.in&lt;br /&gt;
mkdir -p /opt/zimbra/java/jre/lib/security/&lt;br /&gt;
ln -s /opt/zimbra/common/etc/java/cacerts&lt;br /&gt;
/opt/zimbra/java/jre/lib/security/cacerts&lt;br /&gt;
chown -R zimbra.zimbra /opt/zimbra/java&lt;br /&gt;
34. run Zimbra install.sh with -s (./install.sh -s)&lt;br /&gt;
35. after installation move /opt/Zimbra directory to another location&lt;br /&gt;
# killall -9 -u zimbra&lt;br /&gt;
# mv /opt/zimbra /root/old-zimbra&lt;br /&gt;
36. pcs cluster start mailbox2.jalindia.co.in&lt;br /&gt;
37. vi zimbractl and copy the content and paste it&lt;br /&gt;
https://gist.github.com/skbly7/49d034c3db7aff635187e595c7a0eb5a&lt;br /&gt;
(open this url and copy content)&lt;br /&gt;
38. cp -v zimbractl /usr/lib/ocf/resource.d/heartbeat/&lt;br /&gt;
39. chmod 775 /usr/lib/ocf/resource.d/heartbeat/zimbractl&lt;br /&gt;
&lt;br /&gt;
40. copy same file on another mailbox server on same location&lt;br /&gt;
41. pcs resource create zimbra ocf:heartbeat:zimbractl op monitor&lt;br /&gt;
interval=30s&lt;br /&gt;
42. pcs resource op remove zimbra monitor&lt;br /&gt;
43. pcs constraint colocation add zimbra virtual_ip INFINITY&lt;br /&gt;
44. pcs constraint order virtual_ip then Zimbra&lt;br /&gt;
45. pcs status&lt;br /&gt;
—------------------------------------------------&lt;br /&gt;
[root@mailbox1 admin]# pcs status&lt;br /&gt;
Cluster name: my_cluster&lt;br /&gt;
Cluster Summary:&lt;br /&gt;
  * Stack: corosync (Pacemaker is running)&lt;br /&gt;
  * Current DC: mailbox2.jalindia.co.in (version 2.1.8-3.el9-3980678f0) -&lt;br /&gt;
MIXED-VERSION partition with quorum&lt;br /&gt;
  * Last updated: Thu Jul 31 12:12:47 2025 on mailbox1.jalindia.co.in&lt;br /&gt;
  * Last change: Thu Jul 17 12:45:26 2025 by hacluster via hacluster on&lt;br /&gt;
mailbox1.jalindia.co.in&lt;br /&gt;
  * 2 nodes configured&lt;br /&gt;
  * 10 resource instances configured&lt;br /&gt;
&lt;br /&gt;
Node List:&lt;br /&gt;
 * Node mailbox2.jalindia.co.in: standby&lt;br /&gt;
 * Online: [ mailbox1.jalindia.co.in ]&lt;br /&gt;
&lt;br /&gt;
Full List of Resources:&lt;br /&gt;
 * Clone Set: locking-clone [locking]:&lt;br /&gt;
   * Started: [ mailbox1.jalindia.co.in ]&lt;br /&gt;
   * Stopped: [ mailbox2.jalindia.co.in ]&lt;br /&gt;
 * Clone Set: shared_vg1-clone [shared_vg1]:&lt;br /&gt;
   * Started: [ mailbox1.jalindia.co.in ]&lt;br /&gt;
   * Stopped: [ mailbox2.jalindia.co.in ]&lt;br /&gt;
 * zimbra      (ocf:heartbeat:zimbractl): Started mailbox1.jalindia.co.in&lt;br /&gt;
 * virtual_ip (ocf:heartbeat:IPaddr2):    Started mailbox1.jalindia.co.in&lt;br /&gt;
&lt;br /&gt;
Daemon Status:&lt;br /&gt;
 corosync: active/enabled&lt;br /&gt;
 pacemaker: active/enabled&lt;br /&gt;
&lt;br /&gt;
pcsd: active/enabled&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>