Solved

I use linux and my sql for database sever

Posted on 2004-04-06
1
195 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now