Syncing Servers

I have 2-3 load balanced LAMP (Linux-Apache-MySQL-PHP) servers that I want to keep in sync

WebData (html, php scripts and images...etc everything under /var/www/html) should be synced between the 3 servers.

I have already looked at the following

1- DRBD and the problem is that it only works as primary-secondary meaning the main node can have read/write while other nodes cannot have neither read or write.

2- Rsync ( The best thing is running a one minute cron or construct a script under cron for less time but this is not very efficient

3- I dont have a storage thus NFS is not an option for me and I dont want to invest in another machine to act as storage (Plus I dont want another single point of failor that requires HA)

Bottom point , I want something like DRBD but that does not have restrictions on the other nodes.

Thanks in advance

LVL 14
Monis MontherSystem ArchitectAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

fosiul01Commented:
who said you cant use drbd as dual primary ??

have a look this one

http://www.drbd.org/users-guide/s-dual-primary-mode.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Monis MontherSystem ArchitectAuthor Commented:
Hi Fosiul01:

I cant believe that I stopped reading the DRBD Docs at 2 pages before this... Anyway this also as it says requires a clustered FS like GFS or OCFS2, Have you tried this before, does it really work well, if so

Do you have good guide for GFS (Please not the one from RHEL)

I will also wait for some other posts before closing the question

Thanks
0
fosiul01Commented:
I am using drbd + open filer. yes its works. initial setup is critical , feels like i should break servers , i was feed up.. but after that it does not give problem


GFS need fencing and my servers are quite old , so i cant use fencing thats why i dont use gfs


http://www.linuxtopia.org/online_books/centos_linux_guides/centos_cluster_configuration_and_management/http://www.linuxtopia.org/online_books/centos_linux_guides/centos_cluster_configuration_and_management/

There should be another one
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Monis MontherSystem ArchitectAuthor Commented:
OK if you dont use GFS , what do you use ?? OCFS2 or something else, because it clearly said it cant run on a native ext3
0
fosiul01Commented:
Open filer
0
Monis MontherSystem ArchitectAuthor Commented:
Sorry but I am a little bit confused here, Open Filer (correct me if I am wrong) is not a file system, its a storage solution that emulates SAN/NAS by using iSCSI and the block devices that you have at the end are formatted with a regular file system like ext3 , jfs, reiserfs ...etc.

How does this work for DRBD dual primary (which requires a distributed lock manager) file system like GFS ?

I assume that you have configured iSCSI and have your partitions mounted from your OpenFiler storage on your Web Servers. but what is the file system of the mounted partitions??

0
fosiul01Commented:
Sorry may be i understood you wrong

the one i m using on my network is for primary and secondary

so drbd + ha + openfiler

I could of use normal harddrive  but just to use for storage i am using openfiler

but drbd with dual primary will work... i never tried that .. in google there is loads of article on that and drbd it self is a higly profile product

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.