Date: Sat, 19 Jul 2008 07:23:46 +0200 From: Thierry Herbelot <thierry.herbelot@laposte.net> To: freebsd-hackers@freebsd.org Subject: NFS locking from a qemu machine ? Message-ID: <200807190723.47208.thierry.herbelot@laposte.net>
next in thread | raw e-mail | index | archive | help
Hello, I'm trying to use NFS locking from an NFS client running in a qemu virtual PC to an NFS server running on the host machine, but with no success so far : configuration for the host PC (server) : operating system : FreeBSD 7.0-Stable % cat /etc/exports /shared/ 127.0.0.1 and in /etc/rc.conf : nfs_server_enable="YES" weak_mountd_authentication="YES" # Allow non-root mount requests to be served. rpcbind_enable="YES" # Run the portmapper service (YES/NO). rpc_lockd_enable="YES" # Run NFS rpc.lockd needed for client/server. rpc_statd_enable="YES" # Run NFS rpc.statd needed for client/server. configuration for the qemu machine (client) : operating system : FreeBSD 7.0-Stable in /etc/fstab : 10.0.2.2:/shared /shared nfs rw 0 0 in /etc/rc.conf : nfs_client_enable="YES" # This host is an NFS client (or NO). rpcbind_enable="YES" # Run the portmapper service (YES/NO). rpc_lockd_enable="YES" # Run NFS rpc.lockd needed for client/server. rpc_statd_enable="YES" # Run NFS rpc.statd needed for client/server. I'm using tools/regression/file/flock to check the correct file locking : $ ./flock ../../shared and the client machine seems locked the ethernet traffic between the client and the server when the client is blocked is the following : (the "tunnel" port is the one used by the lockmanager according to rpcinfo) 16:54:47.907919 IP (tos 0x0, ttl 64, id 48249, offset 0, flags [none], proto UDP (17), length 84) localhost.53807 > localhost.sunrpc: [udp sum ok] UDP, length 56 16:54:47.908030 IP (tos 0x0, ttl 64, id 48250, offset 0, flags [none], proto UDP (17), length 56) localhost.sunrpc > localhost.53807: [udp sum ok] UDP, length 28 16:54:47.909791 IP (tos 0x0, ttl 64, id 48251, offset 0, flags [none], proto UDP (17), length 204) localhost.61180 > localhost.tunnel: [udp sum ok] UDP, length 176 16:54:47.909834 IP (tos 0x0, ttl 64, id 48252, offset 0, flags [none], proto UDP (17), length 92) localhost.790 > localhost.sunrpc: [udp sum ok] UDP, length 64 16:54:47.909932 IP (tos 0x0, ttl 64, id 48253, offset 0, flags [none], proto UDP (17), length 72) localhost.sunrpc > localhost.790: [udp sum ok] UDP, length 44 16:54:47.909956 IP (tos 0x0, ttl 64, id 48254, offset 0, flags [none], proto UDP (17), length 140) localhost.790 > localhost.tunnel: [udp sum ok] UDP, length 112 16:55:27.490768 IP (tos 0x0, ttl 64, id 48255, offset 0, flags [none], proto UDP (17), length 204) localhost.61180 > localhost.tunnel: [udp sum ok] UDP, length 176 16:55:27.490814 IP (tos 0x0, ttl 64, id 48256, offset 0, flags [none], proto UDP (17), length 140) localhost.790 > localhost.tunnel: [udp sum ok] UDP, length 112 16:56:07.069067 IP (tos 0x0, ttl 64, id 48257, offset 0, flags [none], proto UDP (17), length 204) localhost.61180 > localhost.tunnel: [udp sum ok] UDP, length 176 16:56:07.069110 IP (tos 0x0, ttl 64, id 48258, offset 0, flags [none], proto UDP (17), length 140) localhost.790 > localhost.tunnel: [udp sum ok] UDP, length 112 16:56:46.683998 IP (tos 0x0, ttl 64, id 48276, offset 0, flags [none], proto UDP (17), length 204) localhost.61180 > localhost.tunnel: [udp sum ok] UDP, length 176 16:56:46.684042 IP (tos 0x0, ttl 64, id 48277, offset 0, flags [none], proto UDP (17), length 140) localhost.790 > localhost.tunnel: [udp sum ok] UDP, length 112 16:57:26.375646 IP (tos 0x0, ttl 64, id 48281, offset 0, flags [none], proto UDP (17), length 84) localhost.50653 > localhost.sunrpc: [udp sum ok] UDP, length 56 16:57:26.375758 IP (tos 0x0, ttl 64, id 48282, offset 0, flags [none], proto UDP (17), length 56) localhost.sunrpc > localhost.50653: [udp sum ok] UDP, length 28 16:57:26.376715 IP (tos 0x0, ttl 64, id 48283, offset 0, flags [none], proto UDP (17), length 204) localhost.63595 > localhost.tunnel: [udp sum ok] UDP, length 176 16:57:26.376755 IP (tos 0x0, ttl 64, id 48284, offset 0, flags [none], proto UDP (17), length 92) localhost.790 > localhost.sunrpc: [udp sum ok] UDP, length 64 16:57:26.376851 IP (tos 0x0, ttl 64, id 48285, offset 0, flags [none], proto UDP (17), length 72) localhost.sunrpc > localhost.790: [udp sum ok] UDP, length 44 16:57:26.376874 IP (tos 0x0, ttl 64, id 48286, offset 0, flags [none], proto UDP (17), length 140) localhost.790 > localhost.tunnel: [udp sum ok] UDP, length 112 16:58:06.271603 IP (tos 0x0, ttl 64, id 48297, offset 0, flags [none], proto UDP (17), length 204) localhost.63595 > localhost.tunnel: [udp sum ok] UDP, length 176 16:58:06.271647 IP (tos 0x0, ttl 64, id 48298, offset 0, flags [none], proto UDP (17), length 140) localhost.790 > localhost.tunnel: [udp sum ok] UDP, length 112 16:58:46.178361 IP (tos 0x0, ttl 64, id 48301, offset 0, flags [none], proto UDP (17), length 204) localhost.63595 > localhost.tunnel: [udp sum ok] UDP, length 176 16:58:46.178409 IP (tos 0x0, ttl 64, id 48302, offset 0, flags [none], proto UDP (17), length 140) localhost.790 > localhost.tunnel: [udp sum ok] UDP, length 112 16:59:26.115517 IP (tos 0x0, ttl 64, id 48303, offset 0, flags [none], proto UDP (17), length 204) localhost.63595 > localhost.tunnel: [udp sum ok] UDP, length 176 16:59:26.115563 IP (tos 0x0, ttl 64, id 48304, offset 0, flags [none], proto UDP (17), length 140) localhost.790 > localhost.tunnel: [udp sum ok] UDP, length 112 any idea about bad configuration ? thanks in advance TfH
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807190723.47208.thierry.herbelot>