All of lore.kernel.org
 help / color / mirror / Atom feed
* Server not working since 2.6.20-rc
@ 2007-02-20 23:29 Jean-Denis Girard
  2007-02-20 23:40 ` Kevin Coffman
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jean-Denis Girard @ 2007-02-20 23:29 UTC (permalink / raw)
  To: nfs

Hi list,

I have an LTSP environment, which is working fine with kernels before =

2.6.20 series. I think I started to test with 2.6.20-rc3, up to latest =

2.6.20.1, but mounting nfs shares from the clients fails with =

"permission denied". If I reboot server to 2.6.19.x without changing =

configuration, it works again.

When I try to mount /home from my laptop (with kernel 2.6.20), I get the =

well known message:
	mount: tiare.sysnux.pf:/home failed, reason given by server: Permission =

denied

But, on the server I have:
[jdg@tiare ~]$ cat /proc/fs/nfs/exports
# Version 1.1
# Path Client(Flags) # IPs
/home =

192.168.10.0/255.255.255.0(rw,insecure,root_squash,sync,wdelay,no_subtree_c=
heck,insecure_locks)

Client and server are based on Mandriva 2007. Server is 64 bits SMP. =

nfs-utils has been updated to 1.0.10. I can provide more details if needed.

I think I have done all checks recommended in the troubleshooting =

section of the nfs-howto. Any help would be greatly appreciated.


Thanks,
-- =

Jean-Denis Girard

SysNux                  Syst=E8mes Linux en Polyn=E9sie fran=E7aise
http://www.sysnux.pf/   T=E9l: +689 483 527 / GSM: +689 797 527

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

* Re: Server not working since 2.6.20-rc
  2007-02-20 23:29 Server not working since 2.6.20-rc Jean-Denis Girard
@ 2007-02-20 23:40 ` Kevin Coffman
  2007-02-21  0:05   ` Neil Brown
  2007-02-21  0:11   ` Jean-Denis Girard
  2007-02-21  0:09 ` Neil Brown
       [not found] ` <1172014569.27441.182.camel@rcs004>
  2 siblings, 2 replies; 7+ messages in thread
From: Kevin Coffman @ 2007-02-20 23:40 UTC (permalink / raw)
  To: Jean-Denis Girard; +Cc: nfs

On 2/20/07, Jean-Denis Girard <jd.girard@sysnux.pf> wrote:
> Hi list,
>
> I have an LTSP environment, which is working fine with kernels before
> 2.6.20 series. I think I started to test with 2.6.20-rc3, up to latest
> 2.6.20.1, but mounting nfs shares from the clients fails with
> "permission denied". If I reboot server to 2.6.19.x without changing
> configuration, it works again.
>
> When I try to mount /home from my laptop (with kernel 2.6.20), I get the
> well known message:
>         mount: tiare.sysnux.pf:/home failed, reason given by server: Permission
> denied
>
> But, on the server I have:
> [jdg@tiare ~]$ cat /proc/fs/nfs/exports
> # Version 1.1
> # Path Client(Flags) # IPs
> /home
> 192.168.10.0/255.255.255.0(rw,insecure,root_squash,sync,wdelay,no_subtree_check,insecure_locks)
>
> Client and server are based on Mandriva 2007. Server is 64 bits SMP.
> nfs-utils has been updated to 1.0.10. I can provide more details if needed.
>
> I think I have done all checks recommended in the troubleshooting
> section of the nfs-howto. Any help would be greatly appreciated.
>

This patch from Bruce worked for me:

--- a/net/sunrpc/svcsock.c~copy_address_correctly       2007-02-06
16:55:30.000000000 -0500
+++ b/net/sunrpc/svcsock.c      2007-02-12 14:27:59.000000000 -0500
@@ -1038,7 +1038,7 @@
        if (!(newsvsk = svc_setup_socket(serv, newsock, &err,
                                 (SVC_SOCK_ANONYMOUS | SVC_SOCK_TEMPORARY))))
                goto failed;
-       memcpy(&newsvsk->sk_remote, &sin, slen);
+       memcpy(&newsvsk->sk_remote, sin, slen);
        newsvsk->sk_remotelen = slen;

        /* make sure that we don't have too many active connections.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

* Re: Server not working since 2.6.20-rc
  2007-02-20 23:40 ` Kevin Coffman
@ 2007-02-21  0:05   ` Neil Brown
  2007-02-21  0:11   ` Jean-Denis Girard
  1 sibling, 0 replies; 7+ messages in thread
From: Neil Brown @ 2007-02-21  0:05 UTC (permalink / raw)
  To: Kevin Coffman; +Cc: nfs, Jean-Denis Girard

On Tuesday February 20, kwc@citi.umich.edu wrote:
> 
> This patch from Bruce worked for me:
> 
> --- a/net/sunrpc/svcsock.c~copy_address_correctly       2007-02-06
> 16:55:30.000000000 -0500
> +++ b/net/sunrpc/svcsock.c      2007-02-12 14:27:59.000000000 -0500
> @@ -1038,7 +1038,7 @@
>         if (!(newsvsk = svc_setup_socket(serv, newsock, &err,
>                                  (SVC_SOCK_ANONYMOUS | SVC_SOCK_TEMPORARY))))
>                 goto failed;
> -       memcpy(&newsvsk->sk_remote, &sin, slen);
> +       memcpy(&newsvsk->sk_remote, sin, slen);
>         newsvsk->sk_remotelen = slen;
> 
>         /* make sure that we don't have too many active connections.
> 

That bug was never in mainline, so I doubt that was it. :-)

NeilBrown

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

* Re: Server not working since 2.6.20-rc
  2007-02-20 23:29 Server not working since 2.6.20-rc Jean-Denis Girard
  2007-02-20 23:40 ` Kevin Coffman
@ 2007-02-21  0:09 ` Neil Brown
  2007-02-21  0:51   ` Jean-Denis Girard
       [not found] ` <1172014569.27441.182.camel@rcs004>
  2 siblings, 1 reply; 7+ messages in thread
From: Neil Brown @ 2007-02-21  0:09 UTC (permalink / raw)
  To: Jean-Denis Girard; +Cc: nfs

On Tuesday February 20, jd.girard@sysnux.pf wrote:
> Hi list,
> 
> I have an LTSP environment, which is working fine with kernels before 
> 2.6.20 series. I think I started to test with 2.6.20-rc3, up to latest 
> 2.6.20.1, but mounting nfs shares from the clients fails with 
> "permission denied". If I reboot server to 2.6.19.x without changing 
> configuration, it works again.
> 
> When I try to mount /home from my laptop (with kernel 2.6.20), I get the 
> well known message:
> 	mount: tiare.sysnux.pf:/home failed, reason given by server: Permission 
> denied
> 
> But, on the server I have:
> [jdg@tiare ~]$ cat /proc/fs/nfs/exports
> # Version 1.1
> # Path Client(Flags) # IPs
> /home 
> 192.168.10.0/255.255.255.0(rw,insecure,root_squash,sync,wdelay,no_subtree_check,insecure_locks)
> 
> Client and server are based on Mandriva 2007. Server is 64 bits SMP. 
> nfs-utils has been updated to 1.0.10. I can provide more details if needed.
> 
> I think I have done all checks recommended in the troubleshooting 
> section of the nfs-howto. Any help would be greatly appreciated.
> 

What messages appear in /var/log/message (or /var/log/syslog or where
ever)?

What does "strace -s1000 -p `pidof mountd`" show when you try the
mount?

Do you have /proc/fs/nfsd mounted?

Is the IP of your notebook in 192.168.10.X :-)

NeilBrown

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

* Re: Server not working since 2.6.20-rc
  2007-02-20 23:40 ` Kevin Coffman
  2007-02-21  0:05   ` Neil Brown
@ 2007-02-21  0:11   ` Jean-Denis Girard
  1 sibling, 0 replies; 7+ messages in thread
From: Jean-Denis Girard @ 2007-02-21  0:11 UTC (permalink / raw)
  To: Kevin Coffman; +Cc: nfs

Kevin Coffman a =E9crit :
> This patch from Bruce worked for me:
> =

> --- a/net/sunrpc/svcsock.c~copy_address_correctly       2007-02-06
> 16:55:30.000000000 -0500
> +++ b/net/sunrpc/svcsock.c      2007-02-12 14:27:59.000000000 -0500
> @@ -1038,7 +1038,7 @@
>        if (!(newsvsk =3D svc_setup_socket(serv, newsock, &err,
>                                 (SVC_SOCK_ANONYMOUS | =

> SVC_SOCK_TEMPORARY))))
>                goto failed;
> -       memcpy(&newsvsk->sk_remote, &sin, slen);
> +       memcpy(&newsvsk->sk_remote, sin, slen);
>        newsvsk->sk_remotelen =3D slen;
> =

>        /* make sure that we don't have too many active connections.

Thanks Kevin for very prompt reply, but I can't find that code in =

net/sunrpc/svcsock.c of the 2.6.20.1 kernel. At line 925 I have:
	if (!(newsvsk =3D svc_setup_socket(serv, newsock, &err, 0)))
		goto failed;


	/* make sure that we don't have too many active connections.


Thanks,
-- =

Jean-Denis Girard

SysNux                  Syst=E8mes Linux en Polyn=E9sie fran=E7aise
http://www.sysnux.pf/   T=E9l: +689 483 527 / GSM: +689 797 527

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

* Re: Server not working since 2.6.20-rc
       [not found] ` <1172014569.27441.182.camel@rcs004>
@ 2007-02-21  0:36   ` Jean-Denis Girard
  0 siblings, 0 replies; 7+ messages in thread
From: Jean-Denis Girard @ 2007-02-21  0:36 UTC (permalink / raw)
  To: csc, nfs

Chris Croswhite a =E9crit :
> what does rpcinfo -p <server> show as services?  In the log files on the
> nfs server, is there any error with the attempted nfs mount?

[jdg@tiare ~]$ sudo rpcinfo -p
Password:
    program no_version protocole  no_port
     100000    2   tcp    111  portmapper
     100000    2   udp    111  portmapper
     100011    1   udp    912  rquotad
     100011    2   udp    912  rquotad
     100011    1   tcp    915  rquotad
     100011    2   tcp    915  rquotad
     100021    1   udp  32792  nlockmgr
     100021    3   udp  32792  nlockmgr
     100021    4   udp  32792  nlockmgr
     100003    2   udp   2049  nfs
     100003    3   udp   2049  nfs
     100021    1   tcp  40936  nlockmgr
     100021    3   tcp  40936  nlockmgr
     100021    4   tcp  40936  nlockmgr
     100003    2   tcp   2049  nfs
     100003    3   tcp   2049  nfs
     100005    1   udp    937  mountd
     100005    1   tcp    940  mountd
     100005    2   udp    937  mountd
     100005    2   tcp    940  mountd
     100005    3   udp    937  mountd
     100005    3   tcp    940  mountd
     100024    1   udp  32793  status
     100024    1   tcp  44580  status

I have exactly the same list running rpcinfo -p tiare from my portable.

There's nothing special in the logs, just:
Feb 20 14:35:04 tiare mountd[13481]: authenticated mount request from =

q30.sysnux.pf:776 for /home (/home)


Thanks,
-- =

Jean-Denis Girard

SysNux                  Syst=E8mes Linux en Polyn=E9sie fran=E7aise
http://www.sysnux.pf/   T=E9l: +689 483 527 / GSM: +689 797 527

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

* Re: Server not working since 2.6.20-rc
  2007-02-21  0:09 ` Neil Brown
@ 2007-02-21  0:51   ` Jean-Denis Girard
  0 siblings, 0 replies; 7+ messages in thread
From: Jean-Denis Girard @ 2007-02-21  0:51 UTC (permalink / raw)
  To: Neil Brown, nfs

Neil Brown a =E9crit :
> Do you have /proc/fs/nfsd mounted?

Ok, I had to manually mount /proc/fs/nfsd on the server and everything =

is back to normal. Did that change with 2.6.20, or did I miss something?


Thanks to everybody,
-- =

Jean-Denis Girard

SysNux                  Syst=E8mes Linux en Polyn=E9sie fran=E7aise
http://www.sysnux.pf/   T=E9l: +689 483 527 / GSM: +689 797 527

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

end of thread, other threads:[~2007-02-21  1:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-20 23:29 Server not working since 2.6.20-rc Jean-Denis Girard
2007-02-20 23:40 ` Kevin Coffman
2007-02-21  0:05   ` Neil Brown
2007-02-21  0:11   ` Jean-Denis Girard
2007-02-21  0:09 ` Neil Brown
2007-02-21  0:51   ` Jean-Denis Girard
     [not found] ` <1172014569.27441.182.camel@rcs004>
2007-02-21  0:36   ` Jean-Denis Girard

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.