Skip to contentSkip to conversation

Server not working since 2.6.20-rc

DISCUSSION Jean-Denis Girard 3 participants 7 messages Feb 20, 2007 – Feb 21, 2007 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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 - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#1 lore raw
Quoted 20 lines · Jean-Denis Girard

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)

Quoted 6 lines

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 - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#2 lore raw
Quoted 8 lines · On Tuesday February 20, [email protected] 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

Review line 1044

Quoted 8 lines
(quoted diff) +1 -1
@@ -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 - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#4 lore raw
In reply to Jean-Denis Girard
Quoted 20 lines · On Tuesday February 20, [email protected] 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)

Quoted 6 lines

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 - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#3 lore raw
In reply to Kevin Coffman

Kevin Coffman a =E9crit :

Quoted 17 lines

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

(quoted diff) +1 -1
@@ -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;

=

Quoted 1 line
       /* 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 - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#7 lore raw
In reply to a message not in the archive

Chris Croswhite a =E9crit :

Quoted 2 lines

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 - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#5 lore raw
In reply to Neil Brown

Neil Brown a =E9crit :

Quoted 1 line

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 - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs