Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-18-2005, 02:52 PM   #1
Registered: Oct 2004
Posts: 43

Rep: Reputation: 15
Making 2 servers stay in instant sync


I'm trying to create a 100% availability webserver.
I want to do this by having two (or more) servers on seperate networks.

There are two ways i've thought of doing it.

Having two seperate servers which sync each other when something is changed:
Q. How do i tell it to sync everytime a file is changed on the server. I know i can do this with rsync every X minutes- but it MUST be instant.

Using 4 servers- 2 webservers, and 2 fileservers
2 Webservers, MySQL servers with no "data" on, and 2 file servers
Q. Would mounting the fileservers as the /home directory be a good idea? How would I mount both as mirrors? i.e. how would i get both fileservers to be "/home"- that way the will both be editted when a change is made to files.
Q. What about mysql- thats not stored in /home is it?

What are your thoughts.

I'm currently a webhost, and i want to pioneer 100% uptime hosting.
Old 12-18-2005, 04:08 PM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
For obvious reasons, there's no such thing as 100% uptime. But you can get close with redundant systems. You could use some sort of cluster filesystem, I would think, like OCFS (from Oracle) or similar. Also, NBD (network block device) along with device-mapping might be able to allow GPFS to be used on multiple servers as a mirror.
Old 12-19-2005, 03:34 AM   #3
Registered: Oct 2004
Posts: 43

Original Poster
Rep: Reputation: 15
I was looking at CODA file system.
The most important thing that needs to be remember is my customer must not have to change anything.
For the customer, I want to be able for them just to be able to upload their files, and forget about it. They must not need to configure anything to work- the server must handle it all.
I was also thinking about other things. I can do /home directory no problem, but what about BIND config files- and the rest of the /etc file- i surely can't network mount this, or the machine won't be able to boot will it?
Would it be best to rsync my config files every 10 minutes or something?

Theres a lot to read of CODA, and the answer would be in there somewhere, but does anyone know if it is possible to have one CODA on the hard drive? And then the other mirrored CODA (still the /home partition) to be at a remote location?

Do you think that if i did it like this it would need any special configuration with things like Apache, Exim etc. I was hoping since that the server has virtual hard drives, it would treat them as normal, and no complex configuration in software would needed.

Also, bandwidth. How much slower will this method be over a hard drive. I can get a 100Mb connection. Would the CODA remote hard drive only need to updated, not read. That would save hard drive.

Also- mysql, would I just have another mysql server acting as a mirror. I know mysql can do this itself, not that i've looked into it much.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
instant messenger Nick5449 Linux - Software 17 12-14-2006 03:47 PM
instant messaging paul62 Slackware 2 06-15-2005 04:47 AM
Sync for Samsung Sync master Naphoon Linux - Hardware 1 10-16-2004 07:20 PM
instant off >minimalist< Linux - Distributions 3 04-22-2004 01:30 PM
Making two servers run one website. Travis86 Linux - Networking 2 10-01-2003 12:42 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration