Submitted by itinfra on Thu, 05/24/2018 - 09:31 Pro Licensee
Good day,
I have two Virtualmin servers (One primary and one secondary) and i currently have Virtualmin Server Replication from Cloudmin replicating between both servers. I really need to know if there's an option to and how i configure Virtualmin (either with Cloudmin or otherwise) to automatically redirect users or to resolve to the Secondary Server if the primary Server fails or isn't available.
Status:
Active
Comments
Submitted by itinfra on Thu, 05/24/2018 - 09:34 Pro Licensee Comment #1
Submitted by andreychek on Thu, 05/24/2018 - 10:06 Comment #2
Howdy -- thanks for contacting us!
How to do that depends on your setup.
If your VM's are stored on shared storage, such as NFS or iSCSI, you could use this automatic failover described here:
https://www.virtualmin.com/documentation/cloudmin/vm/failover
If you have independent servers, you could use DNS-based failover, as described here:
https://www.virtualmin.com/documentation/cloudmin/vm/roundrobin
Let us know if that helps with what you're after!
Submitted by itinfra on Sat, 05/26/2018 - 07:02 Pro Licensee Comment #3
Thanks for your response Andrey. They are independent servers each with its own storage on our SAN and we use Virtualmin Server Replication on Cloudmin to sync changes from the Primary to the secondary.
I had earlier setup the mode the from the DNS Roundrobin article but I'm a little bit confused on how it works.
The major useof our VIrtualmin Servers is to create Virtual Servers for our customers and they are used for Mail hosting. So in a situation where DNS Roundrobin is being used, which hostname will serve as their MX Record and with which they can also access their Virtual Server, will it be the DNS Record (in the Record name) created in DNS Roundrobin?
Also, in our own DNS Servers, will we be pointing cloudmin's IP and both the Primary and Secondary Virtualmin Servers IP to this DNS Record created in cloudmin?
I look forward to your enlightenment.
Thanks.
Submitted by JamieCameron on Sat, 05/26/2018 - 19:02 Comment #4
Ok, so it sounds like what you want is a DNS entry that points to the primary IP address if it's up, but two the secondary IP otherwise? Cloudmin does have a feature for this at System Monitoring -> Roundrobin DNS Records.
Submitted by itinfra on Sun, 05/27/2018 - 12:24 Pro Licensee Comment #5
I believe so Jamie. Apparently, that's what i need a little explanation on. Which Master DNS Record am i going to create for this and how will i create this DNS Record to resolve to the IP of both my Primary and Secondary Server?
Regards
Submitted by JamieCameron on Mon, 05/28/2018 - 13:25 Comment #6
Take a look at https://www.virtualmin.com/documentation/cloudmin/vm/roundrobin - that should explain how to configure the setup you're looking for.
Submitted by itinfra on Wed, 05/30/2018 - 14:03 Pro Licensee Comment #7
Hello Jamie,
I have already gone through that documentation. I'm asking for explanation on Creating a Master DNS Record on Cloudmin. "Which Master DNS Record am i going to create for this and how will i create this DNS Record to resolve to the IP of both my Primary and Secondary Server?"
Submitted by JamieCameron on Sat, 06/02/2018 - 23:01 Comment #8
I'm confused - what do you mean by "master DNS record" ?
Submitted by itinfra on Mon, 06/04/2018 - 12:44 Pro Licensee Comment #9
okay... so when creating a Roundrobin DNS Record, what is supposed to be in the "Record name" and "DNS Zone" options Also, is DNS Zone/Record name created here going to be what wil serve as our, for example in case of email servers, MX Record with which a Virtual Server can be assessed which will now forward requests to either the primary or secondary server?
Thanks.
Submitted by JamieCameron on Tue, 06/05/2018 - 20:21 Comment #10
Normally "Record name" would be something like
www
and "DNS Zone" would beyourdomain.com
For this to work, the DNS host has to be hosted on the Cloudmin master - not on the Virtualmin system(s).