2006-04-27 09:04:26

by Chris Fanning

[permalink] [raw]
Subject: lockd: couldn't create RPC handle for

Hello all,

I'm new aboard and, although I've been using nfs for some time now,
I've never really stopped to learn much about it.
Now I've got a problem.

I'm exporting homes.
on the server (192.168.172.30)
/home client(rw,no_root_squash,sync)

on the client(192.168.172.31) fstab
server:/home /home nfs tcp,rw 0 0

This seemed to be working ok until I upgraded the kernel on the nfs
server to 2.6.16

Now, when a users opens his X session the nfs client console says
lockd: couldn't create RPC handle for 192.168.172.30

I have found a thread on this list not long ago so I tried followed it.
Below, I answer some of the same questions asked on that thread hoping
this will give some clues.

>Does 'rpcinfo -u w.x.y.z 100021' work from the server?

rpcinfo -u 192.168.172.31 100021
program 100021 version 1 ready and waiting
rpcinfo: RPC: Program/version mismatch; low version =3D 1, high version =3D=
4
program 100021 version 2 is not available
program 100021 version 3 ready and waiting
program 100021 version 4 ready and waiting

on the client (192.168.172.31) console is says
svc: unknown version (0)
svc: unknown version (2)

> Is anything at all listening on port 32768 on '192.168.172.31'?
netstat -ap | grep 32768
udp 0 0 *:32768 *:*

on client
ps -ef|grep lock
root 1152 1 0 10:05 ? 00:00:00 [lockd]

/home is mounted and I can use it.
But why does the nfs client console fill up with these "lockd:
couldn't create RPC handle for 192.168.172.30" ?

Thankyou for any help.
Chris.


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs


2006-04-27 14:11:01

by Trond Myklebust

[permalink] [raw]
Subject: Re: lockd: couldn't create RPC handle for

On Thu, 2006-04-27 at 11:04 +0200, Chris Fanning wrote:
> Hello all,
>
> I'm new aboard and, although I've been using nfs for some time now,
> I've never really stopped to learn much about it.
> Now I've got a problem.
>
> I'm exporting homes.
> on the server (192.168.172.30)
> /home client(rw,no_root_squash,sync)
>
> on the client(192.168.172.31) fstab
> server:/home /home nfs tcp,rw 0 0
>
> This seemed to be working ok until I upgraded the kernel on the nfs
> server to 2.6.16
>
> Now, when a users opens his X session the nfs client console says
> lockd: couldn't create RPC handle for 192.168.172.30
>
> I have found a thread on this list not long ago so I tried followed it.
> Below, I answer some of the same questions asked on that thread hoping
> this will give some clues.
>
> >Does 'rpcinfo -u w.x.y.z 100021' work from the server?
>
> rpcinfo -u 192.168.172.31 100021
> program 100021 version 1 ready and waiting
> rpcinfo: RPC: Program/version mismatch; low version = 1, high version = 4
> program 100021 version 2 is not available
> program 100021 version 3 ready and waiting
> program 100021 version 4 ready and waiting
>
> on the client (192.168.172.31) console is says
> svc: unknown version (0)
> svc: unknown version (2)
>
> > Is anything at all listening on port 32768 on '192.168.172.31'?
> netstat -ap | grep 32768
> udp 0 0 *:32768 *:*
>
> on client
> ps -ef|grep lock
> root 1152 1 0 10:05 ? 00:00:00 [lockd]
>
> /home is mounted and I can use it.
> But why does the nfs client console fill up with these "lockd:
> couldn't create RPC handle for 192.168.172.30" ?

The message indicates that your client can't access the lockd on the
server. IOW, you really want to try the same tests that you performed
above in reverse (i.e. from the client to the server).

Cheers,
Trond



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2006-04-27 14:30:59

by Chris Fanning

[permalink] [raw]
Subject: Re: lockd: couldn't create RPC handle for

Hi Trond,

Thanks for getting back.

On the server
ps -ef|grep lock
root 16 11 0 13:14 ? 00:00:00 [kblockd/0]
root 17 11 0 13:14 ? 00:00:00 [kblockd/1]
root 6132 4154 0 16:27 pts/0 00:00:00 grep lock

netstat -ap | grep 32768
nothing

On the client to the server
rpcinfo -u 192.168.172.30 100021
rpcinfo: RPC: Program not registered
program 100021 is not available

Looks like nlockmgr isn't running on the server. right?
Where does that leave me?
Perhaps I left something out when I compiled the kernel?

Cheers.
Chris.


On 4/27/06, Trond Myklebust <[email protected]> wrote:
> On Thu, 2006-04-27 at 11:04 +0200, Chris Fanning wrote:
> > Hello all,
> >
> > I'm new aboard and, although I've been using nfs for some time now,
> > I've never really stopped to learn much about it.
> > Now I've got a problem.
> >
> > I'm exporting homes.
> > on the server (192.168.172.30)
> > /home client(rw,no_root_squash,sync)
> >
> > on the client(192.168.172.31) fstab
> > server:/home /home nfs tcp,rw 0 0
> >
> > This seemed to be working ok until I upgraded the kernel on the nfs
> > server to 2.6.16
> >
> > Now, when a users opens his X session the nfs client console says
> > lockd: couldn't create RPC handle for 192.168.172.30
> >
> > I have found a thread on this list not long ago so I tried followed it.
> > Below, I answer some of the same questions asked on that thread hoping
> > this will give some clues.
> >
> > >Does 'rpcinfo -u w.x.y.z 100021' work from the server?
> >
> > rpcinfo -u 192.168.172.31 100021
> > program 100021 version 1 ready and waiting
> > rpcinfo: RPC: Program/version mismatch; low version =3D 1, high version=
=3D 4
> > program 100021 version 2 is not available
> > program 100021 version 3 ready and waiting
> > program 100021 version 4 ready and waiting
> >
> > on the client (192.168.172.31) console is says
> > svc: unknown version (0)
> > svc: unknown version (2)
> >
> > > Is anything at all listening on port 32768 on '192.168.172.31'?
> > netstat -ap | grep 32768
> > udp 0 0 *:32768 *:*
> >
> > on client
> > ps -ef|grep lock
> > root 1152 1 0 10:05 ? 00:00:00 [lockd]
> >
> > /home is mounted and I can use it.
> > But why does the nfs client console fill up with these "lockd:
> > couldn't create RPC handle for 192.168.172.30" ?
>
> The message indicates that your client can't access the lockd on the
> server. IOW, you really want to try the same tests that you performed
> above in reverse (i.e. from the client to the server).
>
> Cheers,
> Trond
>
>


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2006-04-27 14:40:52

by Trond Myklebust

[permalink] [raw]
Subject: Re: lockd: couldn't create RPC handle for

On Thu, 2006-04-27 at 16:30 +0200, Chris Fanning wrote:
> Hi Trond,
>
> Thanks for getting back.
>
> On the server
> ps -ef|grep lock
> root 16 11 0 13:14 ? 00:00:00 [kblockd/0]
> root 17 11 0 13:14 ? 00:00:00 [kblockd/1]
> root 6132 4154 0 16:27 pts/0 00:00:00 grep lock
>
> netstat -ap | grep 32768
> nothing
>
> On the client to the server
> rpcinfo -u 192.168.172.30 100021
> rpcinfo: RPC: Program not registered
> program 100021 is not available
>
> Looks like nlockmgr isn't running on the server. right?
> Where does that leave me?
> Perhaps I left something out when I compiled the kernel?

Are you running with the user space NFS server perhaps? If you need
locking support, then you have to run the kernel NFS server.

Cheers,
Trond



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2006-04-27 15:02:05

by Chris Fanning

[permalink] [raw]
Subject: Re: lockd: couldn't create RPC handle for

> Are you running with the user space NFS server perhaps?
Yes.

> If you need
> locking support, then you have to run the kernel NFS server.
I was under the impression that locking support helped data integrity.
Is that right?

I have changed to the kernel server and no I've got nlockmgr

Cheers.
Chris.

On 4/27/06, Trond Myklebust <[email protected]> wrote:
> On Thu, 2006-04-27 at 16:30 +0200, Chris Fanning wrote:
> > Hi Trond,
> >
> > Thanks for getting back.
> >
> > On the server
> > ps -ef|grep lock
> > root 16 11 0 13:14 ? 00:00:00 [kblockd/0]
> > root 17 11 0 13:14 ? 00:00:00 [kblockd/1]
> > root 6132 4154 0 16:27 pts/0 00:00:00 grep lock
> >
> > netstat -ap | grep 32768
> > nothing
> >
> > On the client to the server
> > rpcinfo -u 192.168.172.30 100021
> > rpcinfo: RPC: Program not registered
> > program 100021 is not available
> >
> > Looks like nlockmgr isn't running on the server. right?
> > Where does that leave me?
> > Perhaps I left something out when I compiled the kernel?
>
> Are you running with the user space NFS server perhaps? If you need
> locking support, then you have to run the kernel NFS server.
>
> Cheers,
> Trond
>
>


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2006-04-27 15:08:30

by Trond Myklebust

[permalink] [raw]
Subject: Re: lockd: couldn't create RPC handle for

On Thu, 2006-04-27 at 17:02 +0200, Chris Fanning wrote:

> > If you need
> > locking support, then you have to run the kernel NFS server.
> I was under the impression that locking support helped data integrity.
> Is that right?

Yes. It is the standard way to ensure that 2 processes can read and
write safely to the same file without losing data. Other schemes are
possible, but are less well supported under NFS.

Cheers,
Trond



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs