* automounting replicated servers using NFSv4 fails
@ 2011-02-18 13:09 Nico De Ranter
2011-02-19 3:48 ` Ian Kent
0 siblings, 1 reply; 5+ messages in thread
From: Nico De Ranter @ 2011-02-18 13:09 UTC (permalink / raw)
To: autofs
Hi,
I have a number of Linux clients (Ubuntu 10.04) that mount a (read-only)
directory from 3 replicated servers using NFSv3. I am now in the
process of moving to NFSv4. I can mount the directories using NFSv4
manually. I can mount the directories using autofs over NFSv4 when I
specify only 1 server (any of the 3 will work), but when I add all 3
servers to the automount configuration file the mount fails.
The configuration files look as follows:
# /etc/automaster
/- /etc/auto.local
# /etc/auto.local
/usr/local
-fstype=nfs4,ro,nodev,nosuid,nonstrict,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8
192,soft server1:/local/ubuntu64 server2:/local/ubuntu64
server3:/local/ubuntu64
(Note: the content of /etc/auto.local is on 1 line but my e-mail
application is splitting the content over multiple lines)
As I said above a similar setup using nfs in stead of nfs4 works fine,
specifying only 1 server works fine too.
If I run automount manually with verbose and debugging enabled I see the
following output when trying to access /usr/local:
#################################################
handle_packet: type = 5
handle_packet_missing_direct: token 296, name /usr/local, request pid
2887
attempting to mount entry /usr/local
lookup_mount: lookup(file): looking up /usr/local
lookup_mount: lookup(file): /usr/local ->
-fstype=nfs4,ro,nodev,nosuid,nonstrict,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8192,soft server1:/local/ubuntu64 server2:/local/ubuntu64
parse_mount: parse(sun): expanded entry:
-fstype=nfs4,ro,nodev,nosuid,nonstrict,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8192,soft server1:/local/ubuntu64 server2:/local/ubuntu64
parse_mount: parse(sun): gathered options:
fstype=nfs4,ro,nodev,nosuid,nonstrict,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8192,soft
parse_mount: parse(sun): dequote("server1:/local/ubuntu64") ->
server1:/local/ubuntu64
parse_mount: parse(sun): dequote("server2:/local/ubuntu64") ->
server2:/local/ubuntu64
parse_mount: parse(sun): core of entry:
options=fstype=nfs4,ro,nodev,nosuid,nonstrict,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8192,soft, loc=server1:/local/ubuntu64 server2:/local/ubuntu64
sun_mount: parse(sun): mounting root /usr/local, mountpoint /usr/local,
what server1:/local/ubuntu64 server2:/local/ubuntu64, fstype nfs4,
options
ro,nodev,nosuid,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8192,soft
mount_mount: mount(nfs): root=/usr/local name=/usr/local
what=server1:/local/ubuntu64 server2:/local/ubuntu64, fstype=nfs4,
options=ro,nodev,nosuid,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8192,soft
mount_mount: mount(nfs): nfs
options="ro,nodev,nosuid,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8192,soft", nosymlink=0, ro=1
get_nfs_info: called for host server2 proto tcp version 0x40
get_nfs_info: called for host server1 proto tcp version 0x40
mount(nfs): no hosts available
dev_ioctl_send_fail: token = 296
failed to mount /usr/local
####################################################
Any idea what might be going wrong?
Thanks in advance,
Nico
--
With kind regards
Nico De Ranter
Senior System Administrator
Techsoft Centre
Technology and Software Centre Europe
The Corporate Village - Da Vincilaan 7-D1 - B-1935 Zaventem - Belgium
Phone: +32 (0)2 700 8641
Fax: +32 (0)2 700 8622
E-mail: nico.deranter@eu.sony.com
A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 - RPR Brussels
Fortis - BIC GEBABEBB - IBAN BE41293037680010
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: automounting replicated servers using NFSv4 fails
2011-02-18 13:09 automounting replicated servers using NFSv4 fails Nico De Ranter
@ 2011-02-19 3:48 ` Ian Kent
2011-02-19 9:12 ` Ian Kent
2011-02-21 9:26 ` Nico De Ranter
0 siblings, 2 replies; 5+ messages in thread
From: Ian Kent @ 2011-02-19 3:48 UTC (permalink / raw)
To: Nico De Ranter; +Cc: autofs
On Fri, 2011-02-18 at 14:09 +0100, Nico De Ranter wrote:
> Hi,
>
> I have a number of Linux clients (Ubuntu 10.04) that mount a (read-only)
> directory from 3 replicated servers using NFSv3. I am now in the
> process of moving to NFSv4. I can mount the directories using NFSv4
> manually. I can mount the directories using autofs over NFSv4 when I
> specify only 1 server (any of the 3 will work), but when I add all 3
> servers to the automount configuration file the mount fails.
Works OK for me, on Fedora 12.
>
> The configuration files look as follows:
>
> # /etc/automaster
> /- /etc/auto.local
>
> # /etc/auto.local
> /usr/local
> -fstype=nfs4,ro,nodev,nosuid,nonstrict,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8
> 192,soft server1:/local/ubuntu64 server2:/local/ubuntu64
> server3:/local/ubuntu64
>
> (Note: the content of /etc/auto.local is on 1 line but my e-mail
> application is splitting the content over multiple lines)
>
> As I said above a similar setup using nfs in stead of nfs4 works fine,
> specifying only 1 server works fine too.
>
> If I run automount manually with verbose and debugging enabled I see the
> following output when trying to access /usr/local:
>
> #################################################
> handle_packet: type = 5
> handle_packet_missing_direct: token 296, name /usr/local, request pid
> 2887
> attempting to mount entry /usr/local
> lookup_mount: lookup(file): looking up /usr/local
> lookup_mount: lookup(file): /usr/local ->
> -fstype=nfs4,ro,nodev,nosuid,nonstrict,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8192,soft server1:/local/ubuntu64 server2:/local/ubuntu64
> parse_mount: parse(sun): expanded entry:
> -fstype=nfs4,ro,nodev,nosuid,nonstrict,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8192,soft server1:/local/ubuntu64 server2:/local/ubuntu64
> parse_mount: parse(sun): gathered options:
> fstype=nfs4,ro,nodev,nosuid,nonstrict,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8192,soft
> parse_mount: parse(sun): dequote("server1:/local/ubuntu64") ->
> server1:/local/ubuntu64
> parse_mount: parse(sun): dequote("server2:/local/ubuntu64") ->
> server2:/local/ubuntu64
> parse_mount: parse(sun): core of entry:
> options=fstype=nfs4,ro,nodev,nosuid,nonstrict,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8192,soft, loc=server1:/local/ubuntu64 server2:/local/ubuntu64
> sun_mount: parse(sun): mounting root /usr/local, mountpoint /usr/local,
> what server1:/local/ubuntu64 server2:/local/ubuntu64, fstype nfs4,
> options
> ro,nodev,nosuid,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8192,soft
> mount_mount: mount(nfs): root=/usr/local name=/usr/local
> what=server1:/local/ubuntu64 server2:/local/ubuntu64, fstype=nfs4,
> options=ro,nodev,nosuid,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8192,soft
> mount_mount: mount(nfs): nfs
> options="ro,nodev,nosuid,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8192,soft", nosymlink=0, ro=1
> get_nfs_info: called for host server2 proto tcp version 0x40
> get_nfs_info: called for host server1 proto tcp version 0x40
> mount(nfs): no hosts available
> dev_ioctl_send_fail: token = 296
> failed to mount /usr/local
> ####################################################
>
> Any idea what might be going wrong?
>
> Thanks in advance,
>
> Nico
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: automounting replicated servers using NFSv4 fails
2011-02-19 3:48 ` Ian Kent
@ 2011-02-19 9:12 ` Ian Kent
2011-02-21 9:26 ` Nico De Ranter
1 sibling, 0 replies; 5+ messages in thread
From: Ian Kent @ 2011-02-19 9:12 UTC (permalink / raw)
To: Nico De Ranter; +Cc: autofs
On Sat, 2011-02-19 at 11:48 +0800, Ian Kent wrote:
> On Fri, 2011-02-18 at 14:09 +0100, Nico De Ranter wrote:
> > Hi,
> >
> > I have a number of Linux clients (Ubuntu 10.04) that mount a (read-only)
> > directory from 3 replicated servers using NFSv3. I am now in the
> > process of moving to NFSv4. I can mount the directories using NFSv4
> > manually. I can mount the directories using autofs over NFSv4 when I
> > specify only 1 server (any of the 3 will work), but when I add all 3
> > servers to the automount configuration file the mount fails.
>
> Works OK for me, on Fedora 12.
Oh ... that's F14 not F12.
>
> >
> > The configuration files look as follows:
> >
> > # /etc/automaster
> > /- /etc/auto.local
> >
> > # /etc/auto.local
> > /usr/local
> > -fstype=nfs4,ro,nodev,nosuid,nonstrict,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8
> > 192,soft server1:/local/ubuntu64 server2:/local/ubuntu64
> > server3:/local/ubuntu64
> >
> > (Note: the content of /etc/auto.local is on 1 line but my e-mail
> > application is splitting the content over multiple lines)
> >
> > As I said above a similar setup using nfs in stead of nfs4 works fine,
> > specifying only 1 server works fine too.
> >
> > If I run automount manually with verbose and debugging enabled I see the
> > following output when trying to access /usr/local:
> >
> > #################################################
> > handle_packet: type = 5
> > handle_packet_missing_direct: token 296, name /usr/local, request pid
> > 2887
> > attempting to mount entry /usr/local
> > lookup_mount: lookup(file): looking up /usr/local
> > lookup_mount: lookup(file): /usr/local ->
> > -fstype=nfs4,ro,nodev,nosuid,nonstrict,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8192,soft server1:/local/ubuntu64 server2:/local/ubuntu64
> > parse_mount: parse(sun): expanded entry:
> > -fstype=nfs4,ro,nodev,nosuid,nonstrict,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8192,soft server1:/local/ubuntu64 server2:/local/ubuntu64
> > parse_mount: parse(sun): gathered options:
> > fstype=nfs4,ro,nodev,nosuid,nonstrict,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8192,soft
> > parse_mount: parse(sun): dequote("server1:/local/ubuntu64") ->
> > server1:/local/ubuntu64
> > parse_mount: parse(sun): dequote("server2:/local/ubuntu64") ->
> > server2:/local/ubuntu64
> > parse_mount: parse(sun): core of entry:
> > options=fstype=nfs4,ro,nodev,nosuid,nonstrict,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8192,soft, loc=server1:/local/ubuntu64 server2:/local/ubuntu64
> > sun_mount: parse(sun): mounting root /usr/local, mountpoint /usr/local,
> > what server1:/local/ubuntu64 server2:/local/ubuntu64, fstype nfs4,
> > options
> > ro,nodev,nosuid,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8192,soft
> > mount_mount: mount(nfs): root=/usr/local name=/usr/local
> > what=server1:/local/ubuntu64 server2:/local/ubuntu64, fstype=nfs4,
> > options=ro,nodev,nosuid,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8192,soft
> > mount_mount: mount(nfs): nfs
> > options="ro,nodev,nosuid,nodev,sync,_netdev,proto=tcp,retry=10,rsize=8192,wsize=8192,soft", nosymlink=0, ro=1
> > get_nfs_info: called for host server2 proto tcp version 0x40
> > get_nfs_info: called for host server1 proto tcp version 0x40
> > mount(nfs): no hosts available
> > dev_ioctl_send_fail: token = 296
> > failed to mount /usr/local
> > ####################################################
> >
> > Any idea what might be going wrong?
> >
> > Thanks in advance,
> >
> > Nico
> >
>
>
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: automounting replicated servers using NFSv4 fails
2011-02-19 3:48 ` Ian Kent
2011-02-19 9:12 ` Ian Kent
@ 2011-02-21 9:26 ` Nico De Ranter
2011-02-21 12:38 ` Ian Kent
1 sibling, 1 reply; 5+ messages in thread
From: Nico De Ranter @ 2011-02-21 9:26 UTC (permalink / raw)
To: Ian Kent; +Cc: autofs
On Sat, 2011-02-19 at 11:48 +0800, Ian Kent wrote:
> On Fri, 2011-02-18 at 14:09 +0100, Nico De Ranter wrote:
> > Hi,
> >
> > I have a number of Linux clients (Ubuntu 10.04) that mount a (read-only)
> > directory from 3 replicated servers using NFSv3. I am now in the
> > process of moving to NFSv4. I can mount the directories using NFSv4
> > manually. I can mount the directories using autofs over NFSv4 when I
> > specify only 1 server (any of the 3 will work), but when I add all 3
> > servers to the automount configuration file the mount fails.
>
> Works OK for me, on Fedora 12.
Which version of autofs are you using?
Nico
--
With kind regards
Nico De Ranter
Senior System Administrator
Techsoft Centre
Technology and Software Centre Europe
The Corporate Village - Da Vincilaan 7-D1 - B-1935 Zaventem - Belgium
Phone: +32 (0)2 700 8641
Fax: +32 (0)2 700 8622
E-mail: nico.deranter@eu.sony.com
A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 - RPR Brussels
Fortis - BIC GEBABEBB - IBAN BE41293037680010
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: automounting replicated servers using NFSv4 fails
2011-02-21 9:26 ` Nico De Ranter
@ 2011-02-21 12:38 ` Ian Kent
0 siblings, 0 replies; 5+ messages in thread
From: Ian Kent @ 2011-02-21 12:38 UTC (permalink / raw)
To: Nico De Ranter; +Cc: autofs
On Mon, 2011-02-21 at 10:26 +0100, Nico De Ranter wrote:
> On Sat, 2011-02-19 at 11:48 +0800, Ian Kent wrote:
> > On Fri, 2011-02-18 at 14:09 +0100, Nico De Ranter wrote:
> > > Hi,
> > >
> > > I have a number of Linux clients (Ubuntu 10.04) that mount a (read-only)
> > > directory from 3 replicated servers using NFSv3. I am now in the
> > > process of moving to NFSv4. I can mount the directories using NFSv4
> > > manually. I can mount the directories using autofs over NFSv4 when I
> > > specify only 1 server (any of the 3 will work), but when I add all 3
> > > servers to the automount configuration file the mount fails.
> >
> > Works OK for me, on Fedora 12.
Like I said, that's F14.
>
> Which version of autofs are you using?
Fedora 14 has 5.0.5 with, essentially all upstream patches except:
autofs-5.0.4-always-read-file-maps-mount-lookup-map-read-fix.patch
autofs-5.0.5-fix-direct-map-not-updating-on-reread.patch
autofs-5.0.5-add-external-bind-method.patch
autofs-5.0.5-fix-add-simple-bind-auth.patch
autofs-5.0.5-add-dump-maps-option.patch
autofs-5.0.5-fix-submount-shutdown-wait.patch
And kernel current kernel revision is 2.6.35.10-74.fc14.
Ian
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-02-21 12:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-18 13:09 automounting replicated servers using NFSv4 fails Nico De Ranter
2011-02-19 3:48 ` Ian Kent
2011-02-19 9:12 ` Ian Kent
2011-02-21 9:26 ` Nico De Ranter
2011-02-21 12:38 ` Ian Kent
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.