Solved

I use linux and my sql for database sever

Posted on 2004-04-06
1
216 Views
Last Modified: 2010-03-18
  how can i set up second server that can work when the first server is down what is the hardware and software that I need
0
Comment
Question by:teera
1 Comment
 
LVL 9

Accepted Solution

by:
Alf666 earned 350 total points
ID: 10768089
Tough question :-)

You have to be very precise about what you are trying to do.

There are two questions :

1) Data replication
2) Switching mechanism (when your first server goes down).


1) Data replication

If your server is mainly for reading data (not too many writes), then it's very simple. Set the first server as a master, and the second one as a slave. This way, the second one will be an almost perfect replica of the first one. I say almost perfect, because you don't control exactly what happens at the precise moment of failure.

The problems you'll have to think about is what you do when you bring back the main server on. It won't be synced. In this case, I recommend a manual intervention that will change your slave server to become the master, and the old master to become a slave.

For more information :

http://www.mysql.com/doc/en/Replication_Features.html


2) Switching mechanism

That's the tough part. You can do manual switching (by, for example, switching IP addresses), or use clustering or high availability software.

One project (among others) is MySQL High Availability cluster :

http://mysql-ha.sourceforge.net/

There is also the well known Linux-HA project :

http://linux-ha.org/
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question