Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Not sure exactly what section this goes in, but I am a Linux noob so thought I would just post it here. I am trying to come up with a decent redundancy plan for my web hosting business. Currently have 1 server at a data center which does our mail, dns, mysql, websites (apache), and if that where to go down we would be pretty screwed in terms of the websites.
We have obtained another server and trying to come up with a way to have very minimal downtime if something went wrong to our web server. We are also considering a VM solution, something like just rsyncing guests between the 2 servers. Would we need a central storage location to rsync from? Not exactly sure how it all works, but trying to figure it out.
Not sure about rsync and stuff, but I've done something similar with two servers with a very simple PHP script I wrote.
What basically happens is there is a cronjob (i. e. something that executes regularly every 24 hours) on the primary server that tars and bzips all important directories, calls mysqldump to dump the mysql databases, and then FTPs all this over to the secondary machine.
The idea being, if the primary goes down, I can have the center admins switch to the backup almost immediately (they'll just need to forward the traffic from the "old" IP to the new one) until a DNS update can propagate to relink the symbolic addresses with the "new" IP address. (Preferably I'd have them fix whatever went blooey on the primary system, then get it back as soon as possible to maintain redundancy).
Here's more or less what the bash script looks like that archives all the important stuff up and then dumps the vital tables from mysql:
The priority really is having this automated in case something happens over night as we have clients across the board. Would it be possible to have something like an apache and mysql cluster going? Keeping in mind we are setting up VMware on both servers for a bit extra redundancy.
How long would it take the dns to propagate also if we did it with that php script?
Well DNS usually takes +- 24 hours in my experience. However, I have had some customers inside a large organisation where it sometimes took 48 hours. I suspect they have some form of "DNS cache" locally on their intranet, they always lagged behind the rest of the world in "seeing" a new server tied to a symbolic name.
Sure you can try the cluster etc. but the type of option I suggested (for us at least) is the cheapest, quickest, and easiest to implement...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.