High Availability Virtualmin Cloudmin

Say i have:

server X cloudmin physical

server A virtmin

server B virtmin

There will be a Load Balancer between server A and B.

i know cloudmin is able to replicate virtual servers A to B or B to A

Say if i go to A to create a mailbox, can i replicate the data instantly? so when someone access B they can see the mailbox. same goes vice versa.

Is there better way to do this?

Status: 
Closed (fixed)

Comments

Cloudmin has support for replicating domains from a master system to one or more replicas, but this is just a 1-way sync .. so if users were potentially logging into both systems, and changes they made to their mail on the replica would be lost. It is more suited to static websites, or sites whose content is stored in a separate database server.

The kind of replication you are asking for is very complex to implement, as it is hard to merge state if changes are made on both systems A and B.

The current setup is:

Server A and Server B are sharing the same /home directory using GFS + DRBD.

Database is hosted at Server C and D using MYSQL GALERA.

uid and ugid are the same on both Server A and Server B

The only thing missing is the control panel replication. Say i create a domain or a a mailbox, i want both control panel Server A and Server B to show the same data.

Does all webmin and virtualmin configuration stored on /etc/webmin? If so, Can i just replicate it on both servers?

Are you looking for 2-way replication, or just 1-way from server A to B?

1-way only is doable using frequent Virtualmin backups / restores of domain and mailbox information (but not DBs or home directories).

instead of going to webmin, Is there a command to refresh cluster user and group and then synchronize them.

You could run an LDAP server, to store users and groups in a central location .. Virtualmin fully supports updating LDAP instead of /etc/passwd and /etc/group when creating users and domains.

I have tested LDAP. It works great.

As for postfix...

Server A virtualmin + Posfix = LDAP

Server B virtualmin + Posfix = LDAP

Server C Postfix = LDAP

Server D Postfix = LDAP

How do I make so the mail transport goes through any of the clustered postfix servers?

Now i am able to st

apart from mail alliases and virtual domains, any setting missed out from the documentation? for example "Transport mapping lookup tables"

You could add equivalent priority MX records for the domains for both servers, so they both get mail ..

any other setting i can use ldap

as per documentation on virtualmin, i can only setup ldap for mail alliases and virtual domains, how about other settings for example "Transport mapping lookup tables" and others?

You should be able to setup a transport map that uses LDAP in Webmin's Postfix module, on the Transport Mapping page. If you click the ... button next to the "Map specifications" field, you can enter details of an LDAP server to use.

Is it possible to set up remote dns server? Something like mysql where it can be hosted remotely.

For remote Mysql, whenever a database is created on virtualmin, is it possible to allow any host to connect into the remote database, and not only the host here the virtual server is created?

Do you mean something like a DNS server that uses MySQL to store records? The closest we get to that in Virtualmin currently is a plugin that supports PowerDNS, which is a DNS server that uses an SQL database instead of local files to store records..

I just realize that USING LDAP to store user and group is just for unix user and group.

How do add or setup ldap for webmin user and group so i am able to log on from any virtualmin server?

Hostname: localhost

Connection Encryption: None

Username: cn=Manager,dc=example,dc=com (I've also tried tried just "Manager")

Password: scrubbed

Create DN: ?

Object Class for Users: webminUser

Object Class for Groups: webminGroup

tested the virtualmin power dns, looks good however how do user and admin edit or make changes on dns record? They can't do it within the control panel? do i need to install poweradmin?

Unfortunately the PowerDNS module doesn't support editing of records yet ..

emmm.... How do i add or setup ldap for webmin user and group, so i am able to log on from any virtualmin server?

Hostname: localhost

Connection Encryption: None

Username: cn=Manager,dc=example,dc=com (I've also tried tried just "Manager")

Password: scrubbed

Create DN: ?

Object Class for Users: webminUser

Object Class for Groups: webminGroup