Typo in en_US/cluster/0-haproxy.keepalived.glusterfs.md.
This commit is contained in:
parent
ae1a82fd61
commit
f28f869fe2
|
@ -2,6 +2,8 @@
|
|||
|
||||
[TOC]
|
||||
|
||||
This tutorial was [initial published](http://www.iredmail.org/forum/topic10773.html) by user `t10` on March 13, 2016.
|
||||
|
||||
## TODO
|
||||
|
||||
* Use clear server hostnames and IP addresses for all involved servers.
|
||||
|
@ -79,7 +81,7 @@ vrrp_instance VI_1 {
|
|||
|
||||
* on ha2, update `/etc/keepalived/keepalived.conf`
|
||||
|
||||
change eth0 to your existing interface*
|
||||
change `eth0` to your existing interface
|
||||
|
||||
```
|
||||
vrrp_script chk_haproxy {
|
||||
|
@ -276,7 +278,7 @@ firewall-cmd --complete-reload
|
|||
|
||||
### Add new hard disk and format with preferred file system
|
||||
|
||||
first, add new hard drive with the same capacity***
|
||||
first, add new hard drive with the same capacity
|
||||
|
||||
* on both servers, update `/etc/hosts`:
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
|
||||
Documents contributed by iRedMail users:
|
||||
|
||||
* [Build an iRedMail fail-over Cluster with KeepAlived, HAProxy, GlusterFS, OpenLDAP, Mariadb](./haproxy.keepalived.glusterfs.html), contributed by
|
||||
* [An Ultra-HA, full Mult-Master E-mail cluster with iRedMail, MariaDB, and IPVS](http://pastebin.com/JcYeQBrX), contributed by Joshua Boniface.
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<p>This tutorial was <a href="http://www.iredmail.org/forum/topic10773.html">initial published</a> by user <code>t10</code> on March 13, 2016.</p>
|
||||
<h2 id="todo">TODO</h2>
|
||||
<ul>
|
||||
<li>Use clear server hostnames and IP addresses for all involved servers.</li>
|
||||
|
@ -53,7 +54,7 @@
|
|||
<li>Install and configure HAProxy</li>
|
||||
<li>Install and configure GlusterFS as glusterserver & glusterclient (you can
|
||||
use separate machine for glusterserver) it's better to use a new hard drive
|
||||
with the same capacity </li>
|
||||
with the same capacity</li>
|
||||
<li>Install and configure iRedMail</li>
|
||||
<li>Setup OpenLDAP replication (Master-Slave)</li>
|
||||
<li>Setup MariaDB replication (Master-Master)</li>
|
||||
|
@ -107,7 +108,7 @@ vrrp_instance VI_1 {
|
|||
<ul>
|
||||
<li>on ha2, update <code>/etc/keepalived/keepalived.conf</code></li>
|
||||
</ul>
|
||||
<p>change eth0 to your existing interface* </p>
|
||||
<p>change <code>eth0</code> to your existing interface</p>
|
||||
<pre><code>vrrp_script chk_haproxy {
|
||||
script "killall -0 haproxy" # check the haproxy process
|
||||
interval 2 # every 2 seconds
|
||||
|
@ -265,7 +266,7 @@ listen stats
|
|||
<ul>
|
||||
<li>on both servers:</li>
|
||||
</ul>
|
||||
<p>create cert for ssl redirect (to iRedMail Servers) </p>
|
||||
<p>create cert for ssl redirect (to iRedMail Servers)</p>
|
||||
<pre><code>mkdir /etc/ssl/iredmail.org/
|
||||
openssl genrsa -out /etc/ssl/iredmail.org/iredmail.org.key 2048
|
||||
openssl req -new -key /etc/ssl/iredmail.org/iredmail.org.key -out /etc/ssl/iredmail.org/iredmail.org.csr
|
||||
|
@ -273,12 +274,12 @@ openssl x509 -req -days 365 -in /etc/ssl/iredmail.org/iredmail.org.csr -signkey
|
|||
cat /etc/ssl/iredmail.org/iredmail.org.crt /etc/ssl/iredmail.org/iredmail.org.key > /etc/ssl/iredmail.org/iredmail.org.pem
|
||||
</code></pre>
|
||||
|
||||
<p>activate HAProxy service </p>
|
||||
<p>activate HAProxy service</p>
|
||||
<pre><code>systemctl enable haproxy
|
||||
systemctl start haproxy
|
||||
</code></pre>
|
||||
|
||||
<p>check log if any errors </p>
|
||||
<p>check log if any errors</p>
|
||||
<pre><code>tail -f /var/log/messages
|
||||
</code></pre>
|
||||
|
||||
|
@ -291,7 +292,7 @@ firewall-cmd --complete-reload
|
|||
|
||||
<h2 id="glusterfs">GlusterFS</h2>
|
||||
<h3 id="add-new-hard-disk-and-format-with-preferred-file-system">Add new hard disk and format with preferred file system</h3>
|
||||
<p>first, add new hard drive with the same capacity*** </p>
|
||||
<p>first, add new hard drive with the same capacity</p>
|
||||
<ul>
|
||||
<li>on both servers, update <code>/etc/hosts</code>:</li>
|
||||
</ul>
|
||||
|
@ -342,12 +343,12 @@ wget -P /etc/yum.repos.d http://download.gluster.org/pub/gluster/glusterfs/3.7/3
|
|||
yum -y install glusterfs glusterfs-fuse glusterfs-server
|
||||
</code></pre>
|
||||
|
||||
<p>activate the service </p>
|
||||
<p>activate the service</p>
|
||||
<pre><code>systemctl enable glusterd.service
|
||||
systemctl start glusterd.service
|
||||
</code></pre>
|
||||
|
||||
<p>disabling firewall </p>
|
||||
<p>disabling firewall</p>
|
||||
<pre><code>systemctl stop firewalld.service
|
||||
systemctl disable firewalld.service
|
||||
</code></pre>
|
||||
|
@ -375,7 +376,7 @@ systemctl disable firewalld.service
|
|||
gluster volume start mailrep-volume
|
||||
</code></pre>
|
||||
|
||||
<p>check it </p>
|
||||
<p>check it</p>
|
||||
<pre><code>gluster volume info mailrep-volume
|
||||
</code></pre>
|
||||
|
||||
|
@ -387,7 +388,7 @@ gluster volume start mailrep-volume
|
|||
mount.glusterfs mail1:/mailrep-volume /var/vmail/
|
||||
</code></pre>
|
||||
|
||||
<p>Update /etc/fstab </p>
|
||||
<p>Update /etc/fstab</p>
|
||||
<pre><code>mail1:/mailrep-volume /var/vmail glusterfs defaults,_netdev 0 0
|
||||
</code></pre>
|
||||
|
||||
|
@ -442,7 +443,7 @@ mount.glusterfs mail2:/mailrep-volume /var/vmail/
|
|||
<li>
|
||||
<p>install iRedMail on <code>mail1</code> first, after mail1 finish you can install it
|
||||
to mail2 (better do not reboot after installing iRedMail, wait untill
|
||||
finish install/configure) </p>
|
||||
finish install/configure)</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>Dont forget to choose LDAP and using default mail folder: <code>/var/vmail</code></p>
|
||||
|
|
|
@ -153,11 +153,9 @@
|
|||
<li><a href="./pureftpd.openldap.centos.html">Virtual Mail And FTP Hosting With iRedMail And Pure-FTPd</a></li>
|
||||
</ul>
|
||||
<h3 id="cluster">Cluster</h3>
|
||||
<ul>
|
||||
<li><a href="haproxy.keepalived.glusterfs.html">Build an iRedMail fail-over Cluster with KeepAlived, HAProxy, GlusterFS, OpenLDAP, Mariadb</a></li>
|
||||
</ul>
|
||||
<p>Documents contributed by iRedMail users:</p>
|
||||
<ul>
|
||||
<li><a href="./haproxy.keepalived.glusterfs.html">Build an iRedMail fail-over Cluster with KeepAlived, HAProxy, GlusterFS, OpenLDAP, Mariadb</a>, contributed by </li>
|
||||
<li><a href="http://pastebin.com/JcYeQBrX">An Ultra-HA, full Mult-Master E-mail cluster with iRedMail, MariaDB, and IPVS</a>, contributed by Joshua Boniface.</li>
|
||||
</ul>
|
||||
<h3 id="troubleshooting-and-debug">Troubleshooting and Debug</h3>
|
||||
|
|
Loading…
Reference in New Issue