[Bug 525154] Re: mountall for /var or other nfs mount races with rpc.statd
hyper_ch
525154 at bugs.launchpad.net
Fri Aug 12 17:33:31 UTC 2011
I just had quite a few updates in the pipe today and it seems I run into
statd problems also. Not quite sure if it's the same bug.
cat syslog | grep statd gives me this:
Aug 12 18:46:04 doubi statd-pre-start: local-filesystems started
Aug 12 18:46:05 doubi rpc.statd[1008]: Version 1.2.2 starting
Aug 12 18:46:05 doubi rpc.statd[1008]: Flags:
Aug 12 18:46:05 doubi rpc.statd[1008]: unable to register (statd, 1, udp).
Aug 12 18:46:05 doubi init: statd main process (1008) terminated with status 1
Aug 12 18:46:05 doubi init: statd main process ended, respawning
Aug 12 18:46:05 doubi statd-pre-start: local-filesystems started
Aug 12 18:46:05 doubi rpc.statd[1032]: Version 1.2.2 starting
Aug 12 18:46:05 doubi rpc.statd[1032]: Flags:
Aug 12 18:46:05 doubi rpc.statd[1032]: unable to register (statd, 1, udp).
Aug 12 18:46:05 doubi init: statd main process (1032) terminated with status 1
Aug 12 18:46:05 doubi init: statd main process ended, respawning
Aug 12 18:46:05 doubi statd-pre-start: local-filesystems started
Aug 12 18:46:05 doubi rpc.statd[1041]: Version 1.2.2 starting
Aug 12 18:46:05 doubi rpc.statd[1041]: Flags:
Aug 12 18:46:05 doubi rpc.statd[1041]: unable to register (statd, 1, udp).
Aug 12 18:46:05 doubi init: statd main process (1041) terminated with status 1
Aug 12 18:46:05 doubi init: statd main process ended, respawning
Aug 12 18:46:05 doubi statd-pre-start: local-filesystems started
Aug 12 18:46:05 doubi rpc.statd[1049]: Version 1.2.2 starting
Aug 12 18:46:05 doubi rpc.statd[1049]: Flags:
Aug 12 18:46:05 doubi rpc.statd[1049]: unable to register (statd, 1, udp).
Aug 12 18:46:05 doubi init: statd main process (1049) terminated with status 1
Aug 12 18:46:05 doubi init: statd main process ended, respawning
Aug 12 18:46:05 doubi statd-pre-start: local-filesystems started
Aug 12 18:46:05 doubi rpc.statd[1066]: Version 1.2.2 starting
Aug 12 18:46:05 doubi rpc.statd[1066]: Flags:
Aug 12 18:46:05 doubi rpc.statd[1066]: unable to register (statd, 1, udp).
Aug 12 18:46:05 doubi init: statd main process (1066) terminated with status 1
Aug 12 18:46:05 doubi init: statd main process ended, respawning
Aug 12 18:46:05 doubi statd-pre-start: local-filesystems started
Aug 12 18:46:05 doubi rpc.statd[1074]: Version 1.2.2 starting
Aug 12 18:46:05 doubi rpc.statd[1074]: Flags:
Aug 12 18:46:05 doubi rpc.statd[1074]: unable to register (statd, 1, udp).
Aug 12 18:46:05 doubi init: statd main process (1074) terminated with status 1
Aug 12 18:46:05 doubi init: statd main process ended, respawning
Aug 12 18:46:05 doubi statd-pre-start: local-filesystems started
Aug 12 18:46:05 doubi rpc.statd[1082]: Version 1.2.2 starting
Aug 12 18:46:05 doubi rpc.statd[1082]: Flags:
Aug 12 18:46:05 doubi rpc.statd[1082]: unable to register (statd, 1, udp).
Aug 12 18:46:05 doubi init: statd main process (1082) terminated with status 1
Aug 12 18:46:05 doubi init: statd main process ended, respawning
Aug 12 18:46:05 doubi statd-pre-start: local-filesystems started
Aug 12 18:46:05 doubi rpc.statd[1101]: Version 1.2.2 starting
Aug 12 18:46:05 doubi rpc.statd[1101]: Flags:
[... continues for quite some time... ]
Aug 12 18:46:05 doubi rpc.statd[1109]: unable to register (statd, 1, udp).
Aug 12 18:46:05 doubi init: statd main process (1109) terminated with status 1
Aug 12 18:46:05 doubi init: statd main process ended, respawning
Aug 12 18:46:05 doubi statd-pre-start: local-filesystems started
Aug 12 18:46:05 doubi rpc.statd[1117]: Version 1.2.2 starting
Aug 12 18:46:05 doubi rpc.statd[1117]: Flags:
Aug 12 18:46:05 doubi rpc.statd[1117]: unable to register (statd, 1, udp).
Aug 12 18:46:05 doubi init: statd main process (1117) terminated with status 1
Aug 12 18:46:05 doubi init: statd main process ended, respawning
Aug 12 18:46:06 doubi statd-pre-start: local-filesystems started
Aug 12 18:46:06 doubi rpc.statd[1125]: Version 1.2.2 starting
Aug 12 18:46:06 doubi rpc.statd[1125]: Flags:
Aug 12 18:46:06 doubi rpc.statd[1125]: unable to register (statd, 1, udp).
Aug 12 18:46:06 doubi init: statd main process (1125) terminated with status 1
Aug 12 18:46:06 doubi init: statd respawning too fast, stopped
Manually restarting it makes it then work
Aug 12 19:07:52 doubi rpc.statd[3676]: Version 1.2.2 starting
Aug 12 19:07:52 doubi rpc.statd[3676]: Flags:
I'm not sure if that is the same bug... but it looks similar.
copy of sources.list
###### Ubuntu Main Repos
deb http://ch.archive.ubuntu.com/ubuntu/ natty main restricted universe multiverse
deb-src http://ch.archive.ubuntu.com/ubuntu/ natty main restricted universe multiverse
###### Ubuntu Update Repos
deb http://ch.archive.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse
deb http://ch.archive.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse
deb http://ch.archive.ubuntu.com/ubuntu/ natty-proposed main restricted universe multiverse
deb http://ch.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
deb-src http://ch.archive.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse
deb-src http://ch.archive.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse
deb-src http://ch.archive.ubuntu.com/ubuntu/ natty-proposed main restricted universe multiverse
###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu natty partner
#### Chromium Project - http://code.google.com/chromium/
deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu natty main # disabled on upgrade to natty
#### Kubuntu Backports - https://edge.launchpad.net/~kubuntu-ppa/+archive/backports
deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu natty main
#### Kubuntu Beta Backports - https://launchpad.net/~kubuntu-ppa/+archive/beta
deb http://ppa.launchpad.net/kubuntu-ppa/beta/ubuntu natty main
#### Kubuntu Updates - https://edge.launchpad.net/~kubuntu-ppa/+archive/ppa
# deb http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu maverick main
#### LibreOffice 3.3 - http://www.documentfoundation.org/download/
deb http://ppa.launchpad.net/libreoffice/ppa/ubuntu natty main
#### Medibuntu - http://www.medibuntu.org/
deb http://packages.medibuntu.org/ natty free non-free
#### Mozilla Daily Build Team - http://edge.launchpad.net/~ubuntu-mozilla-daily/+archive/ppa
deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu natty main
#### UNetbootin - http://unetbootin.sourceforge.net/
deb http://ppa.launchpad.net/gezakovacs/ppa/ubuntu natty main
#### VirtualBox - http://www.virtualbox.org
deb http://download.virtualbox.org/virtualbox/debian natty contrib
#### X Updates - https://launchpad.net/~ubuntu-x-swat/+archive/x-updates/
deb http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu natty main
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to mountall in Ubuntu.
https://bugs.launchpad.net/bugs/525154
Title:
mountall for /var or other nfs mount races with rpc.statd
Status in “mountall” package in Ubuntu:
Invalid
Status in “nfs-utils” package in Ubuntu:
Fix Released
Status in “portmap” package in Ubuntu:
Fix Released
Status in “mountall” source package in Lucid:
Invalid
Status in “nfs-utils” source package in Lucid:
Fix Released
Status in “portmap” source package in Lucid:
Fix Released
Status in “mountall” source package in Maverick:
Invalid
Status in “nfs-utils” source package in Maverick:
Fix Released
Status in “portmap” source package in Maverick:
Fix Released
Status in “mountall” source package in Natty:
Invalid
Status in “nfs-utils” source package in Natty:
Fix Released
Status in “portmap” source package in Natty:
Fix Released
Bug description:
If one has /var (or /var/lib or /var/lib/nfs for that matter) on its
own filesystem the statd.conf start races with the mounting of /var as
rpc.statd needs /var/lib/nfs to be available in order to work.
I am sure this is not the only occurrence of this type of problem.
A knee-jerk solution is to simply spin in statd.conf waiting for
/var/lib/nfs to be available, but polling sucks, especially for
something like upstart whose whole purpose is to be an event driven
action manager.
SRU justification: NFS mounts do not start reliably on boot in lucid
and maverick (depending on the filesystem layout of the client system)
due to race conditions in the startup of statd. This should be fixed
so users of the latest LTS can make reliable use of NFS.
Regression potential: Some systems may fail to mount NFS filesystems
at boot time that didn't fail before. Some systems may hang at boot.
Some systems may hang while upgrading the packages (this version or in
a future SRU). I believe the natty update adequately guards against
all of these possibilities, but the risk is there.
TEST CASE:
1. Configure a system with /var as a separate partition.
2. Add one or more mounts of type 'nfs' to /etc/fstab.
3. Boot the system.
4. Verify whether statd has started (status statd) and whether all NFS filesystems have been mounted.
5. Repeat 3-4 until the race condition is triggered.
6. Upgrade to the new version of portmap and nfs-common from -proposed.
7. Repeat steps 3-4 until satisfied that statd now starts reliably and all non-gss-authenticated NFSv3 filesystems mount correctly at boot time.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mountall/+bug/525154/+subscriptions
More information about the foundations-bugs
mailing list