Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Aug 2013 23:34:13 -0700
From:      John Reynolds <johnjen@reynoldsnet.org>
To:        stable@freebsd.org
Subject:   NFS locking between 8.3-STABLE (jan 2013) and 9.2-BETA2 -- Firefox SQLite locking issue
Message-ID:  <51FDF5E5.4070606@reynoldsnet.org>

next in thread | raw e-mail | index | archive | help
Hello all,

I've been recently building up a new Haswell box and after overcoming 
several problems have gotten things to mostly work. But I got stuck when 
trying to use Firefox 22. The bookmarks editor/container was always 
coming up empty and I was not able to import bookmarks I had from a 
saved profile. Additionally, the back/forward arrow buttons would not 
work. They were always grayed out making navigation impossible and thus 
rendering the browser fairly useless.

I tried linux-firefox and the SAME problems existed. This led me to 
believe it wasn't a port problem. I saw mention after searching and 
searching for an answer of somebody who moved their account's $HOME dir 
from an NFS mounted volume to a local disk and some other problem they 
had went away. I thought "oh, this has got to be a locking problem." So, 
I tried this and Firefox 22 works perfectly on local disk! It's got to 
be the SQLite that FF22 uses for the "places.sqlite" and other SQL 
databases (bookmarks, etc.) and a locking issue since I have my $HOME 
directory mounted over NFS.

My setup:

NFS server: FreeBSD 8.3-STABLE as of Jan 2013
nfs_server_enable="YES"
nfs_server_flags="-u -t -n 4"
nfsv4_server_enable="NO"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"

I am not knowingly running any other version of NFS server/client other 
than what any user would get by "default" (supposing NFSv3).

NFS client: FreeBSD 9.2-BETA2 (I've been tracking sources and updating 
through buildworld, etc.)
Just using normal "nfs" options when mounting the homedir directory on 
the client.

So, questions:
  - I haven't upgraded the server to 9.x. I plan to do that along with 
new faster hardware, but since I have multiple "users" in the house, I 
have to have some dedicated time to work, research, plan, and pray 
things don't go wrong before I black-out the gateway/firewall/nat/etc 
box for all these "users" :). When I upgrade so that server is 
relatively equal to client (at least same 9.x version) should I see 
locking problems like the above? i.e. somebody else on this list HAS to 
be using NFS to serve up home directories. Do you see locking problems 
like that mentioned above?
  - I saw many posts talking about moving things to NFSv4 to resolve 
locking problems. If I was to upgrade the server to the latest 
8.x-STABLE kernel/world should this interact with a 9.x world properly 
using NFSv4? Is the NFSv4 server in 8.x-STABLE "good enough" in this regard?
  - Without having to upgrade either my server or change to NFSv4 across 
the board, what other options might there be? The older hardware for 
this machine was running relatively the same kernel as my 
server--8.3-STABLE and I DID NOT SEE this behavior--which l leads me to 
believe that it is an 8.x <-> 9.x issue. Is there anybody out there 
besides me mixing these versions or am I the only person the planet that 
hasn't upgraded to 9-stable? :)
  - I see bits and pieces of documentation talking about how to use 
NFSv4, but I didn't see anything in the Handbook or out there in the 
wild that was a guide on how to migrate one's setup/config files. If 
there are good howto's or other articles on this please share!

Thanks in advance for all answers. I appreciate the dedication that you 
all have!

-Jr




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51FDF5E5.4070606>