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?
who said you cant use drbd as dual primary ??

have a look this one
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

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

There should be another one
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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
Open filer
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??

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

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.