Submitted by timmy on Mon, 07/25/2011 - 08:42
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
Submitted by JamieCameron on Mon, 07/25/2011 - 15:13 Comment #1
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.
Submitted by timmy on Tue, 07/26/2011 - 04:57 Comment #2
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?
Submitted by JamieCameron on Tue, 07/26/2011 - 11:50 Comment #3
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).
Submitted by timmy on Tue, 07/26/2011 - 13:01 Comment #4
instead of going to webmin, Is there a command to refresh cluster user and group and then synchronize them.
Submitted by JamieCameron on Tue, 07/26/2011 - 15:13 Comment #5
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.
Submitted by timmy on Thu, 07/28/2011 - 12:26 Comment #6
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
Submitted by timmy on Thu, 07/28/2011 - 12:33 Comment #7
apart from mail alliases and virtual domains, any setting missed out from the documentation? for example "Transport mapping lookup tables"
Submitted by JamieCameron on Thu, 07/28/2011 - 14:40 Comment #8
You could add equivalent priority MX records for the domains for both servers, so they both get mail ..
Submitted by timmy on Thu, 07/28/2011 - 14:44 Comment #9
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?
Submitted by JamieCameron on Thu, 07/28/2011 - 16:33 Comment #10
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.
Submitted by timmy on Sat, 07/30/2011 - 08:36 Comment #11
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?
Submitted by JamieCameron on Sun, 07/31/2011 - 00:32 Comment #12
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..
Submitted by timmy on Sun, 07/31/2011 - 00:52 Comment #13
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
Submitted by timmy on Sun, 07/31/2011 - 04:18 Comment #14
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?
Submitted by JamieCameron on Sun, 07/31/2011 - 14:19 Comment #15
Unfortunately the PowerDNS module doesn't support editing of records yet ..
Submitted by timmy on Sun, 07/31/2011 - 14:47 Comment #16
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
Submitted by timmy on Sun, 07/31/2011 - 14:54 Comment #17
Closing this ticket!