[Gluster-users] Automatic Failover

Daniel Müller mueller at tropenklinik.de
Wed Mar 9 23:54:05 PST 2011


That is part of apache -->.htaccess file will do that for you, see:
http://httpd.apache.org/docs/2.0/howto/htaccess.html

-----------------------------------------------
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: mueller at tropenklinik.de
Internet: www.tropenklinik.de
-----------------------------------------------
-----Ursprüngliche Nachricht-----
Von: Mohit Anchlia [mailto:mohitanchlia at gmail.com] 
Gesendet: Mittwoch, 9. März 2011 20:40
An: mueller at tropenklinik.de; gluster-users at gluster.org
Betreff: Re: [Gluster-users] Automatic Failover

Thanks that's what I was thinking initially! May be this question
doesn't belong in this forum but how do I protect files form being
accessed by unauthorized users in this case.

On Wed, Mar 9, 2011 at 10:48 AM, Daniel Müller <mueller at tropenklinik.de>
wrote:
> It is sufficient then to point your htmldocs (root of your apache) to a
> glusterfs client share.
> Thats all.
> ex: mount -t glusterfs /glusterfs/export /srv/www/htmldocs
>
> On Wed, 9 Mar 2011 09:25:22 -0800, Mohit Anchlia <mohitanchlia at gmail.com>
> wrote:
>> This is providing http service to clients using apache to serve them
>> with documents/images etc. on demand. These clients can be web browser
>> or desktop.
>>
>> On Tue, Mar 8, 2011 at 11:51 PM, Daniel Müller <mueller at tropenklinik.de>
>> wrote:
>>> What exactly are you trying to do?
>>> Do you mean apache glusterfs over webdav??!!
>>>
>>> -----------------------------------------------
>>> EDV Daniel Müller
>>>
>>> Leitung EDV
>>> Tropenklinik Paul-Lechler-Krankenhaus
>>> Paul-Lechler-Str. 24
>>> 72076 Tübingen
>>>
>>> Tel.: 07071/206-463, Fax: 07071/206-499
>>> eMail: mueller at tropenklinik.de
>>> Internet: www.tropenklinik.de
>>> -----------------------------------------------
>>> -----Ursprüngliche Nachricht-----
>>> Von: Mohit Anchlia [mailto:mohitanchlia at gmail.com]
>>> Gesendet: Dienstag, 8. März 2011 19:45
>>> An: mueller at tropenklinik.de; gluster-users at gluster.org
>>> Betreff: Re: [Gluster-users] Automatic Failover
>>>
>>> Thanks! I am still trying to figure out how it works with HTTP. In
>>> some docs I see that GFS supports HTTP and I am not sure how that
>>> works. Does anyone know how that works or what has to be done to make
>>> it available over HTTP?
>>>
>>> On Mon, Mar 7, 2011 at 11:14 PM, Daniel Müller
> <mueller at tropenklinik.de>
>>> wrote:
>>>> If you use a http-server,samba... ex:apache you need ucarp. There is a
>>>> little blog about it:
>>>>
>>>
>
http://www.misdivision.com/blog/setting-up-a-highly-available-storage-cluste
>>>> r-using-glusterfs-and-ucarp
>>>>
>>>> Ucarp gives you a virt. Ip for your httpd. if the one is down the
> second
>>>> with the same IP is still alive and serving. Glusterfs serves
>>>> the data in ha mode. Try it it works like a charm.
>>>>
>>>> -----------------------------------------------
>>>> EDV Daniel Müller
>>>>
>>>> Leitung EDV
>>>> Tropenklinik Paul-Lechler-Krankenhaus
>>>> Paul-Lechler-Str. 24
>>>> 72076 Tübingen
>>>>
>>>> Tel.: 07071/206-463, Fax: 07071/206-499
>>>> eMail: mueller at tropenklinik.de
>>>> Internet: www.tropenklinik.de
>>>> -----------------------------------------------
>>>>
>>>> -----Ursprüngliche Nachricht-----
>>>> Von: Mohit Anchlia [mailto:mohitanchlia at gmail.com]
>>>> Gesendet: Montag, 7. März 2011 18:47
>>>> An: mueller at tropenklinik.de; gluster-users at gluster.org
>>>> Betreff: Re: [Gluster-users] Automatic Failover
>>>>
>>>> Thanks! Can you please give me some scenarios where applications will
>>>> need ucarp, are you referring to nfs clients?
>>>>
>>>> Does glusterfs support http also? can't find any documentation.
>>>>
>>>> On Mon, Mar 7, 2011 at 12:34 AM, Daniel Müller
>>>> <mueller at tropenklinik.de>
>>>> wrote:
>>>>> Yes the normal way the clients will follow the failover but some
>>>>> applications and services running on top
>>>>> Of glusterfs will not and will need this.
>>>>>
>>>>> -----------------------------------------------
>>>>> EDV Daniel Müller
>>>>>
>>>>> Leitung EDV
>>>>> Tropenklinik Paul-Lechler-Krankenhaus
>>>>> Paul-Lechler-Str. 24
>>>>> 72076 Tübingen
>>>>>
>>>>> Tel.: 07071/206-463, Fax: 07071/206-499
>>>>> eMail: mueller at tropenklinik.de
>>>>> Internet: www.tropenklinik.de
>>>>> -----------------------------------------------
>>>>>
>>>>> -----Ursprüngliche Nachricht-----
>>>>> Von: Mohit Anchlia [mailto:mohitanchlia at gmail.com]
>>>>> Gesendet: Freitag, 4. März 2011 18:36
>>>>> An: mueller at tropenklinik.de; gluster-users at gluster.org
>>>>> Betreff: Re: [Gluster-users] Automatic Failover
>>>>>
>>>>> Thanks! I thought for native clients failover is inbuilt. Isn't that
>>> true?
>>>>>
>>>>> On Thu, Mar 3, 2011 at 11:46 PM, Daniel Müller
>>>>> <mueller at tropenklinik.de>
>>>>> wrote:
>>>>>> I use ucarp to make a real failover for my gluster-vols
>>>>>> For the clients:
>>>>>> Ex:In  my ucarp config, vip-001.conf on both nodes (or nnn...
> nodes):
>>>>>>
>>>>>> vip-001.conf on node1
>>>>>> #ID
>>>>>> ID=001
>>>>>> #Network Interface
>>>>>> BIND_INTERFACE=eth0
>>>>>> #Real IP
>>>>>> SOURCE_ADDRESS=192.168.132.56
>>>>>> #Virtual IP used by ucarp
>>>>>> VIP_ADDRESS=192.168.132.58
>>>>>> #Ucarp Password
>>>>>> PASSWORD=Password
>>>>>>
>>>>>> On node2
>>>>>>
>>>>>> #ID
>>>>>> ID=002
>>>>>> #Network Interface
>>>>>> BIND_INTERFACE=eth0
>>>>>> #Real IP
>>>>>> SOURCE_ADDRESS=192.168.132.57
>>>>>> #Virtual IP used by ucarp
>>>>>> VIP_ADDRESS=192.168.132.58
>>>>>> #Ucarp Password
>>>>>> PASSWORD=Password
>>>>>>
>>>>>> Then
>>>>>> mount -t glusterfs 192.168.132.58:/samba-vol /mnt/glusterfs
>>>>>> Set enries in fstab:
>>>>>>
>>>>>> 192.168.132.58:/samba-vol /mnt/glusterfs glusterfs defaults 0 0
>>>>>>
>>>>>> Now one Server fails there is still the same service on for the
>>>>>> clients.
>>>>>>
>>>>>> -----------------------------------------------
>>>>>> EDV Daniel Müller
>>>>>>
>>>>>> Leitung EDV
>>>>>> Tropenklinik Paul-Lechler-Krankenhaus
>>>>>> Paul-Lechler-Str. 24
>>>>>> 72076 Tübingen
>>>>>>
>>>>>> Tel.: 07071/206-463, Fax: 07071/206-499
>>>>>> eMail: mueller at tropenklinik.de
>>>>>> Internet: www.tropenklinik.de
>>>>>> -----------------------------------------------
>>>>>> -----Ursprüngliche Nachricht-----
>>>>>> Von: gluster-users-bounces at gluster.org
>>>>>> [mailto:gluster-users-bounces at gluster.org] Im Auftrag von Mohit
>>>>>> Anchlia
>>>>>> Gesendet: Freitag, 4. März 2011 03:46
>>>>>> An: gluster-users at gluster.org
>>>>>> Betreff: [Gluster-users] Automatic Failover
>>>>>>
>>>>>> I am actively trying to find out how automatic failover works but
> not
>>>>>> able to find how? Is it in the mount option or where do we give if
>>>>>> node 1 is down then write to node 2 or something like that. Can
>>>>>> someone please explain how it work?
>>>>>> _______________________________________________
>>>>>> Gluster-users mailing list
>>>>>> Gluster-users at gluster.org
>>>>>> http://gluster.org/cgi-bin/mailman/listinfo/gluster-users
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>



More information about the Gluster-users mailing list