1 (edited by tahar_ba 2020-09-16 18:31:06)

Topic: iRedMail Cluster with Galera, keepalived and Gluster FS

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello
I am setting up a 3 nodes iRedmail cluster I used Keepalived as a loadbalancing with DR routing 3 nodes in which maria-db 10.5 is installed with galera-4 and glusterFS.

I set up all three nodes, the clustering in a way is working as the database has been synchronized and the file system also works fine, but when installing iredmail on each server I had problems to connect when I am on the two let's say slave nodes.

I am supposing that it's related to random passwords generated with iredmail installation script.

For maria-db replication I have to bootstrap a node and make it the one in which all other nodes will first synchronize, after that every maria-db node will set himself as a master and the node with last transaction will be considered as reference for synchronization.

So after first sync the database datas on the two nodes have been altered and I got an error connecting to the database on those nodes, which is logical as data changed and the configuration files to connect to the database remained the same.

So my question is there a way to not generate random passwords when installing iredmail or an idea about which files I have to modify to make it work ?

Thank you for you help.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: iRedMail Cluster with Galera, keepalived and Gluster FS

tahar_ba wrote:

So my question is there a way to not generate random passwords when installing iredmail or an idea about which files I have to modify to make it work ?

Sure. FYI: https://docs.iredmail.org/unattended.ir … ation.html
You can simply copy the `config` file for new installation, this way it gets exactly same passwords.

3 (edited by tahar_ba 2020-09-21 23:45:54)

Re: iRedMail Cluster with Galera, keepalived and Gluster FS

ZhangHuangbin wrote:
tahar_ba wrote:

So my question is there a way to not generate random passwords when installing iredmail or an idea about which files I have to modify to make it work ?

Sure. FYI: https://docs.iredmail.org/unattended.ir … ation.html
You can simply copy the `config` file for new installation, this way it gets exactly same passwords.

High Zhang,

Thank you very much for your reply, but when I tried the command it didn't work and the installer kept asking me about passwords, domain etc..... could you please provide me the command ? the one on the documentation didn't work,

I'll try again meanwhile.

Thanks again.

EDIT : It's OK it worked and normally I have a full active active cluster of 3 nodes and 2 loadbalancers right now I'll test more to be sure that everything is OK then I'll share my experience with everyone.

Thanks again.