Skip to contentSkip to conversation

NFS lock reclaiming not working on SLES9 SP2

DISCUSSION asha yr 3 participants 3 messages Feb 17, 2006 – Feb 20, 2006

Subsystems (2)
lore
Share & tools
lore

asha yr

author
#0 lore raw

Hi,

I am comparing the working of NFS lock recovery feature on different updates of SLES9 and Redhat4. So I dont want to test the feature by applying any patch. Anyway, thanks for the patch.

I tried mounting NFS file system using hostname on client. After sending notifications, sm-notify clears sm directory. Then the sm directory should get updated freshly with the client information. This is not happening.

The debugging messages of lockd on server and client are:

on client side

Feb 17 16:10:07 sgmlx2 kernel: NFS lockd/statd started (ver 0.5).
Feb 17 16:10:23 sgmlx2 kernel: lockd: request from 0f46bfac
Feb 17 16:10:23 sgmlx2 kernel: lockd: nlm_host_rebooted("sgmlx1")
Feb 17 16:10:30 sgmlx2 kernel: lockd: nlm_lookup_host(0f46bfac, p=6, v=4, my role=client, name=sgmlx1)
Feb 17 16:10:30 sgmlx2 kernel: lockd: host garbage collection
Feb 17 16:10:30 sgmlx2 kernel: lockd: nlmsvc_mark_resources
Feb 17 16:10:30 sgmlx2 kernel: lockd: nlm_bind_host(0f46bfac)
Feb 17 16:11:00 sgmlx2 last message repeated 3 times
Feb 17 16:11:00 sgmlx2 kernel: lockd: release host sgmlx1
Feb 17 16:11:00 sgmlx2 kernel: lockd: get host sgmlx1
Feb 17 16:11:48 sgmlx2 kernel: lockd: request from 0f46bfac
Feb 17 16:11:48 sgmlx2 kernel: lockd: nlm_host_rebooted("sgmlx1")
Feb 17 16:11:48 sgmlx2 kernel: lockd: rebind host sgmlx1
Feb 17 16:11:48 sgmlx2 kernel: lockd: get host sgmlx1
Feb 17 16:11:48 sgmlx2 kernel: lockd: release host sgmlx1
Feb 17 16:11:48 sgmlx2 kernel: nlmsvc_retry_blocked(00000000, when=0)
Feb 17 16:11:48 sgmlx2 kernel: lockd: nlm_bind_host(0f46bfac)
Feb 17 16:11:48 sgmlx2 kernel: lockd: release host sgmlx1

on server side

Feb 17 21:47:34 sgmlx1 kernel: NFS lockd/statd started (ver 0.5).
Feb 17 21:47:52 sgmlx1 rpc.mountd: authenticated mount request from sgmlx2.india.hp.com:970 for /test (/test)
Feb 17 21:48:15 sgmlx1 kernel: lockd: request from 0f46bfad
Feb 17 21:48:30 sgmlx1 kernel: lockd: request from 0f46bfad
Feb 17 21:48:30 sgmlx1 kernel: nlmsvc_retry_blocked(00000000, when=0)
Feb 17 21:48:45 sgmlx1 kernel: lockd: request from 0f46bfad
Feb 17 21:48:45 sgmlx1 kernel: lockd: nlm_lookup_host(0f46bfad, p=6, v=4, my role=server, name=sgmlx2)
Feb 17 21:48:45 sgmlx1 kernel: lockd: host garbage collection
Feb 17 21:48:45 sgmlx1 kernel: lockd: nlmsvc_mark_resources
Feb 17 21:48:45 sgmlx1 kernel: lockd: nlm_file_lookup(06000001 01006800 00025489 00012f4e 00025489 0002da54)
Feb 17 21:48:45 sgmlx1 kernel: lockd: creating file for (06000001 01006800 00025489 00012f4e 00025489 0002da54)
Feb 17 21:48:45 sgmlx1 kernel: lockd: found file f5070e00 (count 0)
Feb 17 21:48:45 sgmlx1 kernel: lockd: nlmsvc_lock(cciss/c0d0p1/77646, ty=1, pi=6733, 0-9223372036854775807, bl=0)
Feb 17 21:48:45 sgmlx1 kernel: lockd: nlmsvc_lookup_block f=f5070e00 pd=6733 0-9223372036854775807 ty=1
Feb 17 21:48:45 sgmlx1 kernel: lockd: posix_lock_file returned 0
Feb 17 21:48:45 sgmlx1 kernel: lockd: release host sgmlx2
Feb 17 21:48:45 sgmlx1 kernel: lockd: nlm_release_file(f5070e00, ct = 1)
Feb 17 21:48:45 sgmlx1 kernel: nlmsvc_retry_blocked(00000000, when=0)
Feb 17 21:48:45 sgmlx1 kernel: nlmsvc_retry_blocked(00000000, when=0)
Feb 17 21:49:27 sgmlx1 kernel: lockd: nlmsvc_free_host_resources
Feb 17 21:49:27 sgmlx1 kernel: lockd: release host sgmlx2
Feb 17 21:49:33 sgmlx1 kernel: lockd: request from 0f46bfad
Feb 17 21:49:33 sgmlx1 kernel: lockd: nlm_lookup_host(0f46bfad, p=6, v=4, my role=server, name=sgmlx2)
Feb 17 21:49:33 sgmlx1 kernel: lockd: nlm_file_lookup(06000001 01006800 00025489 00012f4e 00025489 0002da54)
Feb 17 21:49:33 sgmlx1 kernel: lockd: creating file for (06000001 01006800 00025489 00012f4e 00025489 0002da54)
Feb 17 21:49:33 sgmlx1 kernel: lockd: found file f5070000 (count 0)
Feb 17 21:49:33 sgmlx1 kernel: lockd: nlmsvc_lock(cciss/c0d0p1/77646, ty=1, pi=6733, 0-9223372036854775807, bl=0)
Feb 17 21:49:33 sgmlx1 kernel: lockd: nlmsvc_lookup_block f=f5070000 pd=6733 0-9223372036854775807 ty=1
Feb 17 21:49:33 sgmlx1 kernel: lockd: posix_lock_file returned 0
Feb 17 21:49:33 sgmlx1 kernel: lockd: release host sgmlx2
Feb 17 21:49:33 sgmlx1 kernel: lockd: nlm_release_file(f5070000, ct = 1)

Regards,
Asha

Quoted 22 lines · On Fri, 17 Feb 2006 Greg Banks wrote :
Quoted 2 lines · Olaf Kirch

It seems the problem is that we're now using hostnames to identify lockd peers, but you mounted the file system using the ipaddr:/path.

Indeed, well caught. I missed the significance of name=...

Greg.
--
Greg Banks, R&D Software Engineer, SGI Australian Software Group. I don't speak for SGI.

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#1 lore raw
Quoted 3 lines · asha yr

I am comparing the working of NFS lock recovery feature on different updates of SLES9 and Redhat4. So I dont want to test the feature by applying any patch. Anyway, thanks for the patch.

Hm, I thought posting to a developer list normally indicates willingness to try out patches to narrow down the problem. That's why it is a free service, unlike the business support we offer (the difference being that they would build a test kernel for you, using this exact same patch :-)

Quoted 6 lines
Feb 17 16:10:07 sgmlx2 kernel: NFS lockd/statd started (ver 0.5).
Feb 17 16:10:23 sgmlx2 kernel: lockd: request from 0f46bfac
Feb 17 16:10:23 sgmlx2 kernel: lockd: nlm_host_rebooted("sgmlx1")
Feb 17 16:10:30 sgmlx2 kernel: lockd: nlm_lookup_host(0f46bfac, p=6, v=4, my role=client, name=sgmlx1)
Feb 17 16:10:30 sgmlx2 kernel: lockd: host garbage collection
Feb 17 16:10:30 sgmlx2 kernel: lockd: nlmsvc_mark_resources

Hm, it still doesn't find the host. Please provide the line in /proc/mounts for this NFS mount.

Thanks,
Olaf

Signature · 12 lines
Olaf Kirch   |  --- o --- Nous sommes du soleil we love when we play
[email protected] |    / | \   sol.dhoop.naytheet.ah kin.ir.samse.qurax


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
#2 lore raw
In reply to asha yr
Quoted 7 lines · asha yr

I tried mounting NFS file system using hostname on client. After sending notifications, sm-notify clears sm directory. Then the sm directory should get updated freshly with the client information. This is not happening.

The debugging messages of lockd on server and client are:

Quoted 7 lines

on client side
[...]

Feb 17 16:10:23 sgmlx2 kernel: lockd: request from 0f46bfac
Feb 17 16:10:23 sgmlx2 kernel: lockd: nlm_host_rebooted("sgmlx1")
Feb 17 16:10:30 sgmlx2 kernel: lockd: nlm_lookup_host(0f46bfac, p=6,

v=4, my role=client, name=sgmlx1)
[...]

Works fine on SP3 (if you mount by hostname):

Feb 20 01:43:57 4A:cocky kernel: lockd: request from 860e364f
Feb 20 01:43:57 4A:cocky kernel: statd: NOTIFY        called
Feb 20 01:43:57 4A:cocky kernel: lockd: nlm_host_rebooted("rosella")
Feb 20 01:43:57 4A:cocky kernel: lockd: rebind host rosella
Feb 20 01:43:57 4A:cocky kernel: NLM: reclaiming locks for host rosellalockd: get host rosella
Feb 20 01:43:57 4A:cocky kernel: lockd: release host rosella
Feb 20 01:43:57 4A:cocky kernel: nlmsvc_retry_blocked(0000000000000000, when=0)
Feb 20 01:43:57 4A:cocky kernel: nlmsvc_retry_blocked(0000000000000000, when=0)
Feb 20 01:43:57 4A:cocky kernel: lockd: call procedure 2 on rosella
Feb 20 01:43:57 4A:cocky kernel: lockd: nlm_bind_host(860e364f)
Feb 20 01:43:57 4A:cocky kernel: lockd: server returns status 0
Feb 20 01:43:57 4A:cocky kernel: lockd: release host rosella

Mounting by IP address is (unsurprisingly) as broken as SP2.

Greg.

Signature · 14 lines
Greg Banks, R&D Software Engineer, SGI Australian Software Group.
I don't speak for SGI.




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs