All of lore.kernel.org
 help / color / mirror / Atom feed
* Replicated hosts in autofs
@ 2004-11-12 18:53 Keeler, Wayne T (Wayne)
  2004-11-15 13:34 ` raven
  0 siblings, 1 reply; 4+ messages in thread
From: Keeler, Wayne T (Wayne) @ 2004-11-12 18:53 UTC (permalink / raw)
  To: autofs


[-- Attachment #1.1: Type: text/plain, Size: 1286 bytes --]


Hi,

I have read many threads regarding replicated hosts for autofs v3 and
v4. 

Here is my scenario:

On a linux host (Opteron running RHEL 3 WS kernel 2.4.21-20.ELsmp, I
have the following automount configured:

mountpoint -fstype=nfs,-proto=tcp,ro host1,host2:/tmp/ro

The goal in my implementation is that after the initial mount occurs to
host1 or host2, if that particular host fails, nfs will pick up the
mount on the alternate host. Note that since both mount points are read
only, this serves as a lower cost, higher availability solution. This
works on Solaris.

I have had no success with this on Linux. It seems that the replication
only works on the initial mount/rpc call. Once the initial mount occurs,
it doesn't appear there is any fail-over capability.

I have even installed RedHat's Beta version of E4 (kernel
2.6.9-1.648_ELsmp). The result is the same. If I crash the machine that
originally had the mount-point, the end result is a hung mount and
fail-over never occurs.

I can't seem to find any information that indicates that this should or
should not work by design.

Can someone please definitively tell me if the capability I am seeking
is available via the autofs supplied by RedHat in Enterprise 3?

Regards,
Wayne



[-- Attachment #1.2: Type: text/html, Size: 6590 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Replicated hosts in autofs
  2004-11-12 18:53 Replicated hosts in autofs Keeler, Wayne T (Wayne)
@ 2004-11-15 13:34 ` raven
  2004-11-16 17:56   ` Mike Waychison
  0 siblings, 1 reply; 4+ messages in thread
From: raven @ 2004-11-15 13:34 UTC (permalink / raw)
  To: Keeler, Wayne T (Wayne); +Cc: autofs

On Fri, 12 Nov 2004, Keeler, Wayne T (Wayne) wrote:

> 
> Hi,
> 
> I have read many threads regarding replicated hosts for autofs v3 and
> v4. 
> 
> Here is my scenario:
> 
> On a linux host (Opteron running RHEL 3 WS kernel 2.4.21-20.ELsmp, I
> have the following automount configured:
> 
> mountpoint -fstype=nfs,-proto=tcp,ro host1,host2:/tmp/ro
> 
> The goal in my implementation is that after the initial mount occurs to
> host1 or host2, if that particular host fails, nfs will pick up the
> mount on the alternate host. Note that since both mount points are read
> only, this serves as a lower cost, higher availability solution. This
> works on Solaris.

Nop. Not available in Linux.

> 
> I have had no success with this on Linux. It seems that the replication
> only works on the initial mount/rpc call. Once the initial mount occurs,
> it doesn't appear there is any fail-over capability.

Yep. I believe you are correct.

> 
> I have even installed RedHat's Beta version of E4 (kernel
> 2.6.9-1.648_ELsmp). The result is the same. If I crash the machine that
> originally had the mount-point, the end result is a hung mount and
> fail-over never occurs.
> 
> I can't seem to find any information that indicates that this should or
> should not work by design.
> 
> Can someone please definitively tell me if the capability I am seeking
> is available via the autofs supplied by RedHat in Enterprise 3?

I don't think that this is practicle to do in autofs.

This is the source of statements like "this functionality belongs in NFS 
or mount". The limited implementation in autofs is there because of the 
lack of it in NFS.

The question then is "does autofs or mount/NFS handle this in Solaris"?

Mike?

Ian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Replicated hosts in autofs
@ 2004-11-15 14:03 Keeler, Wayne T (Wayne)
  0 siblings, 0 replies; 4+ messages in thread
From: Keeler, Wayne T (Wayne) @ 2004-11-15 14:03 UTC (permalink / raw)
  To: raven; +Cc: autofs

Thanks Ian.

From the Solaris mount_nfs man page:

    Replicated file systems and failover
           resource can list multiple read-only file  systems  to
           be  used  to  provide  data. These file systems should
           contain equivalent directory structures and  identical
           files.  It is also recommended that they be created by
           a utility such as rdist(1). The file  systems  may  be
           specified   either  with  a  comma-separated  list  of
           host:/pathname entries and/or NFS URL entries, or with
           a  comma  -separated list of hosts, if all file system
           names are the same. If multiple file systems are named
           and  the  first  server  in the list is down, failover
           will use the next alternate server to access files. If
           the  read-only  option is not chosen, replication will
           be disabled. File access will block on the original if
           NFS locks are active for that file.

Wayne

-----Original Message-----
From: raven@themaw.net [mailto:raven@themaw.net] 
Sent: Monday, November 15, 2004 8:34 AM
To: Keeler, Wayne T (Wayne)
Cc: autofs@linux.kernel.org
Subject: Re: [autofs] Replicated hosts in autofs 

On Fri, 12 Nov 2004, Keeler, Wayne T (Wayne) wrote:

> 
> Hi,
> 
> I have read many threads regarding replicated hosts for autofs v3 and
> v4. 
> 
> Here is my scenario:
> 
> On a linux host (Opteron running RHEL 3 WS kernel 2.4.21-20.ELsmp, I
> have the following automount configured:
> 
> mountpoint -fstype=nfs,-proto=tcp,ro host1,host2:/tmp/ro
> 
> The goal in my implementation is that after the initial mount occurs
to
> host1 or host2, if that particular host fails, nfs will pick up the
> mount on the alternate host. Note that since both mount points are
read
> only, this serves as a lower cost, higher availability solution. This
> works on Solaris.

Nop. Not available in Linux.

> 
> I have had no success with this on Linux. It seems that the
replication
> only works on the initial mount/rpc call. Once the initial mount
occurs,
> it doesn't appear there is any fail-over capability.

Yep. I believe you are correct.

> 
> I have even installed RedHat's Beta version of E4 (kernel
> 2.6.9-1.648_ELsmp). The result is the same. If I crash the machine
that
> originally had the mount-point, the end result is a hung mount and
> fail-over never occurs.
> 
> I can't seem to find any information that indicates that this should
or
> should not work by design.
> 
> Can someone please definitively tell me if the capability I am seeking
> is available via the autofs supplied by RedHat in Enterprise 3?

I don't think that this is practicle to do in autofs.

This is the source of statements like "this functionality belongs in NFS

or mount". The limited implementation in autofs is there because of the 
lack of it in NFS.

The question then is "does autofs or mount/NFS handle this in Solaris"?

Mike?

Ian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Replicated hosts in autofs
  2004-11-15 13:34 ` raven
@ 2004-11-16 17:56   ` Mike Waychison
  0 siblings, 0 replies; 4+ messages in thread
From: Mike Waychison @ 2004-11-16 17:56 UTC (permalink / raw)
  To: raven; +Cc: autofs, Keeler, Wayne T (Wayne), nfs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

raven@themaw.net wrote:
> On Fri, 12 Nov 2004, Keeler, Wayne T (Wayne) wrote:
> 
> 
>>Hi,
>>
>>I have read many threads regarding replicated hosts for autofs v3 and
>>v4. 
>>
>>Here is my scenario:
>>
>>On a linux host (Opteron running RHEL 3 WS kernel 2.4.21-20.ELsmp, I
>>have the following automount configured:
>>
>>mountpoint -fstype=nfs,-proto=tcp,ro host1,host2:/tmp/ro
>>
>>The goal in my implementation is that after the initial mount occurs to
>>host1 or host2, if that particular host fails, nfs will pick up the
>>mount on the alternate host. Note that since both mount points are read
>>only, this serves as a lower cost, higher availability solution. This
>>works on Solaris.
> 
> 
> Nop. Not available in Linux.
> 
> 
>>I have had no success with this on Linux. It seems that the replication
>>only works on the initial mount/rpc call. Once the initial mount occurs,
>>it doesn't appear there is any fail-over capability.
> 
> 
> Yep. I believe you are correct.
> 
> 
>>I have even installed RedHat's Beta version of E4 (kernel
>>2.6.9-1.648_ELsmp). The result is the same. If I crash the machine that
>>originally had the mount-point, the end result is a hung mount and
>>fail-over never occurs.
>>
>>I can't seem to find any information that indicates that this should or
>>should not work by design.
>>
>>Can someone please definitively tell me if the capability I am seeking
>>is available via the autofs supplied by RedHat in Enterprise 3?
> 
> 
> I don't think that this is practicle to do in autofs.
> 
> This is the source of statements like "this functionality belongs in NFS 
> or mount". The limited implementation in autofs is there because of the 
> lack of it in NFS.
> 
> The question then is "does autofs or mount/NFS handle this in Solaris"?
> 
> Mike?

This is handled in the NFS code in Solaris (for the read-only failover
bits).  I remember reading it being listed on one of the many Linux nfs
priority lists on the net, but I can't find it now.  I don't think
anyone is working on this just yet.

- --
Mike Waychison
Sun Microsystems, Inc.
1 (650) 352-5299 voice
1 (416) 202-8336 voice

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTICE:  The opinions expressed in this email are held by me,
and may not represent the views of Sun Microsystems, Inc.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBmj9pdQs4kOxk3/MRAi6dAJ9nBswZwFZO+ucAnu9sbOa740X3DgCfXJ0W
J1DL7hYYQZaMXmVG9POHBZ8=
=1WFI
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-11-16 17:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-12 18:53 Replicated hosts in autofs Keeler, Wayne T (Wayne)
2004-11-15 13:34 ` raven
2004-11-16 17:56   ` Mike Waychison
  -- strict thread matches above, loose matches on Subject: below --
2004-11-15 14:03 Keeler, Wayne T (Wayne)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.