Solved

I use linux and my sql for database sever

Posted on 2004-04-06
1
240 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

688 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