NFS locking between 8.3-STABLE (jan 2013) and 9.2-BETA2 -- Firefox SQLite locking issue

2013-08-04 Thread John Reynolds

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

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: NFS locking between 8.3-STABLE (jan 2013) and 9.2-BETA2 -- Firefox SQLite locking issue

2013-08-04 Thread Rick Macklem
John Reynolds wrote:
 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?
Yes, I believe that a current stable/8.x NFSv4 server will work ok.

   - Without having to upgrade either my server or change to NFSv4
   across
 the board, what other options might there be?
Unless multiple clients share the same files concurrently that must be
locked (not likely for home dir stuff), the nolockd mount option on
the client will avoid having to use rpc.lockd and rpc.statd. (With this
mount option, the locks are visible to all processes in the client,
but not to other clients accessing the same file.)

 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!
 
About all you need to do is add a V4: ... line to your /etc/exports
and then set nfsv4_server_enable=YES in /etc/rc.conf and reboot.
On the client mount, you need to add nfsv4 as a mount option.

 Thanks in advance for all answers. I appreciate the dedication that
 you
 all have!
 
 -Jr
 
 ___
 freebsd-stable@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-stable
 To unsubscribe, send any mail to
 freebsd-stable-unsubscr...@freebsd.org
 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


binary upgrade from 9.1 to 9.2

2013-08-04 Thread Zoran Kolic
I assume freebsd-update, mergemaster and pkgng would
do the job. Is there any change for upcoming release?
Especially for kms nodes, which needed to be compiled
separately to have x working.
Best regards

Zoran

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


root umask and building ports

2013-08-04 Thread Karl Dunn
I discovered the hard way, when building ImageMagick-6.7.9.4 on 
9.1-RELEASE, that having root's umask set to 077 is a mistake.


Lots of directories and some files, in ImageMagick itself and some of the 
dependent ports, had other and group perms set to ---.  No good.  Hard to 
fix after the fact: I tracked down all the problems with four-liner 
command that used find, ls, and grep; then I fixed them by hand, more or 
less.


Made a lot of work for myself, just to get mogrify to run in a script that 
generates per-user web activity bar graphs once a week.


This is probably not a new discovery to most.  I have been using FreeBSD 
for a long time (about 15 years), but I still regard myself as a newbie.


Lesson learned.  Leave root umask set to 022.  (Maybe ports should be 
written to not depend on root's umask?)


Karl Dunn
kd...@acm.org

On Sun, 4 Aug 2013, freebsd-stable-requ...@freebsd.org wrote:


Send freebsd-stable mailing list submissions to
freebsd-stable@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
or, via email, send a message with subject or body 'help' to
freebsd-stable-requ...@freebsd.org

You can reach the person managing the list at
freebsd-stable-ow...@freebsd.org

When replying, please edit your Subject line so it is more specific
than Re: Contents of freebsd-stable digest...


Today's Topics:

  1. Re: Strange sendmail behaviour after upgrade to 9.1-BETA2
 (Pavel Timofeev)
  2. Re: ZFS: can't read MOS of pool (Andriy Gapon)
  3. Re: /usr/bin/ld: warning: creating a DT_TEXTREL in a shared
 object after freebsd-update (Fabian Wenk)
  4. Re: Problem with zfsloader on 9.2-BETA2 (Andriy Gapon)
  5. Re: Strange sendmail behaviour after upgrade to 9.1-BETA2
 (Pavel Timofeev)
  6. NFS locking between 8.3-STABLE (jan 2013) and 9.2-BETA2 --
 Firefox SQLite locking issue (John Reynolds)
  7. Re: NFS locking between 8.3-STABLE (jan 2013) and 9.2-BETA2
 -- Firefox SQLite locking issue (Rick Macklem)


--

Message: 1
Date: Sat, 3 Aug 2013 17:41:58 +0400
From: Pavel Timofeev tim...@gmail.com
To: Ruben de Groot mai...@bzerk.org
Cc: freebsd-stable@freebsd.org
Subject: Re: Strange sendmail behaviour after upgrade to 9.1-BETA2
Message-ID:
CAAoTqfu7n9j9V=H4Af2oTka=aS_UqKwkMCxE=ajm9i3gqxb...@mail.gmail.com
Content-Type: text/plain; charset=UTF-8

2013/8/2 Ruben de Groot mai...@bzerk.org:

On Wed, Jul 31, 2013 at 04:54:08PM +0400, Pavel Timofeev typed:

I've just installed new fresh 9.2-BETA2 amd64 on another machine.
Same behaviour - Sendmail asks DNS only for  record of mx server.
We don't use IPv6 in our company.

2013/7/31 Pavel Timofeev tim...@gmail.com:

I wanted to say that sendmail asks only  (IPv6) record of mx
server, but not A (IPv4).
Any ideas?

2013/7/31 Pavel Timofeev tim...@gmail.com:

Looks like my sendmail uses only IPv6 to resolve mx server dns name to
ip address.

14:59:50.793338 IP reticulum.xxx.ru.19032  hercules.xxx.ru.domain:
53417+ ? xxx.ru. (24)
   [13/98]
14:59:50.793662 IP hercules.xxx.ru.domain  reticulum.xxx.ru.19032:
53417* 0/1/0 (75)
14:59:50.793696 IP reticulum.xxx.ru.55299  hercules.xxx.ru.domain:
53418+ A? xxx.ru. (24)


Here it is definately asking an A record.


And? It's not A record of mx server.


14:59:50.794087 IP hercules.xxx.ru.domain  reticulum.xxx.ru.55299:
53418* 7/0/0 A 192.168.2.11, A 192.168.2.12, A 192.168.41.4, A
192.168.14.12, A 192.168.34.100, A 192.168.34.110, A 192.168.44.19
 (136)


And here is the reply. The quetion is more why is it repeating the same
query (below) over and over.


Yes, reply about xxx.ru, not about mx server's IP which is kalmar.xxx.ru



Ruben


14:59:50.973445 IP reticulum.xxx.ru.29244  hercules.xxx.ru.domain:
53419+ MX? xxx.ru. (24)
14:59:50.973754 IP hercules.xxx.ru.domain  reticulum.xxx.ru.29244:
53419* 1/0/1 MX kalmar.xxx.ru. 10 (63)
14:59:50.974061 IP reticulum.xxx.ru.56461  hercules.xxx.ru.domain:
53420+ ? kalmar.xxx.ru. (31)
14:59:50.974340 IP hercules.xxx.ru.domain  reticulum.xxx.ru.56461:
53420* 0/1/0 (82)
14:59:50.974570 IP reticulum.xxx.ru.28332  hercules.xxx.ru.domain:
53421+ ? kalmar.xxx.ru. (31)
14:59:50.974887 IP hercules.xxx.ru.domain  reticulum.xxx.ru.28332:
53421* 0/1/0 (82)
14:59:50.974919 IP reticulum.xxx.ru.21453  hercules.xxx.ru.domain:
53422+ ? kalmar. (24)
14:59:50.975290 IP hercules.xxx.ru.domain  reticulum.xxx.ru.21453:
53422 ServFail 0/0/0 (24)
14:59:50.975314 IP reticulum.xxx.ru.63038  hercules.xxx.ru.domain:
53422+ ? kalmar. (24)
14:59:50.975674 IP hercules.xxx.ru.domain  reticulum.xxx.ru.63038:
53422 ServFail 0/0/0 (24)
14:59:50.975749 IP reticulum.xxx.ru.38393  hercules.xxx.ru.domain:
53423+ ? kalmar.xxx.ru. (31)
14:59:50.976105 IP hercules.xxx.ru.domain  reticulum.xxx.ru.38393:
53423* 0/1/0 (82)
14:59:50.976176 IP 

boot2 FreeBSD 9.2-RC1 r253913M

2013-08-04 Thread George Mitchell

boot2 gives me a boot:  prompt but will not accept input from the
keyboard on an HP CQ61-420US notebook.  Fortunately, it times out
after a few seconds and boots normally after that.  But it's still
a bit annoying.   -- George
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: boot2 FreeBSD 9.2-RC1 r253913M

2013-08-04 Thread George Mitchell

On 08/04/13 15:27, George Mitchell wrote:

boot2 gives me a boot:  prompt but will not accept input from the
keyboard on an HP CQ61-420US notebook.  Fortunately, it times out
after a few seconds and boots normally after that.  But it's still
a bit annoying.   -- George


The M is because I rolled back r250907 due to the reports of NFS
deadlocks.  -- George
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org