1828349 Members
3067 Online
109976 Solutions
New Discussion

Linux LVS

 
Marco_113
Frequent Advisor

Linux LVS

Hi all,
i've a question about linux Linux LVS.
I've a Linux Server used as balancer of two real servers Linux Web Server. I'm using redhat piranha.

The problem is: i want that the two Linux Web Server use the same document root mounted on a Storage EVA; otherwise every time i modify the pages of the site on one server , i've to deploy on the other server.

I would like to have a solution that permits me to admin the web site modifing the pages and that this change is visible from all the real servers.

What is the best solution to do it?
Thanks in advance



5 REPLIES 5
Marco_113
Frequent Advisor

Re: Linux LVS

Another question,
is possible to present a LUN to two linux servers only in read mode, and to another server in rw mode to administer the site??
Or this configuration can cause problems?
Thanks
Michal Toth
Regular Advisor

Re: Linux LVS

RW once and RO many is fine,..

if you have EVA do it on EVA level, or on any other array that supports exporting its luns to multiple HBAs..

yet you can always employ poor man's solution: nfs
Ivan Ferreira
Honored Contributor

Re: Linux LVS

>>>The problem is: i want that the two Linux Web Server use the same document root mounted on a Storage EVA; otherwise every time i modify the pages of the site on one server , i've to deploy on the other server.

You can use:

- NFS and mount the export in both servers, you require a third server to export the file system (DocumentRoot)

- Rsync to resync the DocumentRoot in the servers, rsync is a good way to keep web content synchronized, rsync only copies modified files.

- Red Hat GFS (Or CentOS GFS). This file system allows the simultaneous usage of a file system by two or more nodes.

>> is possible to present a LUN to two linux servers only in read mode, and to another server in rw mode to administer the site??

I don't like this option, last time I tried to mount a read only presented volume, I cannot mount the LUNs because it looks like some information should be stored in the file system metadata, like the state (mounted/dirty - clean/umounted, mount count, etc).
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Michal Toth
Regular Advisor

Re: Linux LVS

wouldn't that render cdfs volumes unmountable? :-)
Ivan Ferreira
Honored Contributor

Re: Linux LVS

Good point, the fact is my test was with Unix and ADVFS, not Linux ext3.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?