[Pkg-sysvinit-devel] Bug#616330: /etc/network/if-up.d/mountnfs: mountnfs script stalls for 2
Debian BTS
debbugs at busoni.debian.org
Thu Mar 3 14:51:04 UTC 2011
minutes on boot when client moun$
Reply-To: Vagelis Koutsomitros <vagk77 at gmail.com>, 616330 at bugs.debian.org
Resent-From: Vagelis Koutsomitros <vagk77 at gmail.com>
Resent-To: debian-bugs-dist at lists.debian.org
Resent-CC: Debian sysvinit maintainers <pkg-sysvinit-devel at lists.alioth.debian.org>
X-Loop: owner at bugs.debian.org
Resent-Date: Thu, 03 Mar 2011 14:51:01 +0000
Resent-Message-ID: <handler.616330.B.129916379731019 at bugs.debian.org>
Resent-Sender: owner at bugs.debian.org
X-Debian-PR-Message: report 616330
X-Debian-PR-Package: initscripts
X-Debian-PR-Keywords:
X-Debian-PR-Source: sysvinit
Received: via spool by submit at bugs.debian.org id=B.129916379731019
(code B ref -1); Thu, 03 Mar 2011 14:51:01 +0000
Received: (at submit) by bugs.debian.org; 3 Mar 2011 14:49:57 +0000
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
(2008-06-10) on busoni.debian.org
X-Spam-Level:
X-Spam-Bayes: score:0.0000 Tokens: new, 22; hammy, 145; neutral, 142; spammy,
6. spammytokens:1.000-1--H*r:sk:static0, 1.000-1--H*RU:sk:static0,
1.000-1--HX-Spam-Relays-External:sk:static0, 0.999-1--moun,
0.995-1--H*MI:12543 hammytokens:0.000-+--H*M:reportbug,
0.000-+--H*MI:reportbug, 0.000-+--H*x:reportbug, 0.000-+--H*UA:reportbug,
0.000-+--UD:init.d
X-Spam-Status: No, score=-11.7 required=4.0 tests=BAYES_00,FOURLA,HAS_PACKAGE,
RCVD_IN_DNSWL_LOW,SPF_PASS,XMAILER_REPORTBUG autolearn=ham
version=3.2.5-bugs.debian.org_2005_01_02
Received: from mail-bw0-f52.google.com ([209.85.214.52])
by busoni.debian.org with esmtps (TLS1.0:RSA_ARCFOUR_MD5:16)
(Exim 4.69)
(envelope-from <vagk77 at gmail.com>)
id 1Pv9qn-00083c-2t
for submit at bugs.debian.org; Thu, 03 Mar 2011 14:49:57 +0000
Received: by bwj24 with SMTP id 24so1585354bwj.11
for <submit at bugs.debian.org>; Thu, 03 Mar 2011 06:49:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:content-type:mime-version
:content-transfer-encoding:from:to:subject:message-id:x-mailer:date;
bh=jmN4B2xN+tkrhFnQIrGJmKAuLy4Wcqlp3KqaOE4TSiI=;
b=scsbBsA9kANLmMoOIHYCpktBvCPu6zMzFihOz8H5W/6S8FJZh1z3/ddcKWbZOfFdOb
vrcvCnOTfc38xwyue/Qx2f4EwFlmkt+vMrZFkiJgYGKoWeYM68iiG63qLhoHBKF7aItM
5dNIHGx4NkXY96xS03pY1LUBnTNN2xlzR2HbU=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=content-type:mime-version:content-transfer-encoding:from:to:subject
:message-id:x-mailer:date;
b=CZFj1bCyebCUVOCVTVzKPWORpq4ADddvTvLdZtPOBTS+ryAGEBv6WmQdEZ5rfD5Uz3
t1dd3Gl46+wzuPCP5snByl6i0dLrTQ100MA0XR8Pj2kmfgVT3MFmOH8xrF47yaLDs8Az
rXa2MF1YXOUEJ/HiVYDEj1zxNveTGIyCXzg+4=
Received: by 10.204.165.194 with SMTP id j2mr1628752bky.135.1299163785422;
Thu, 03 Mar 2011 06:49:45 -0800 (PST)
Received: from athlon.wad.local (static062038154127.dsl.hol.gr [62.38.154.127])
by mx.google.com with ESMTPS id q18sm803565bka.15.2011.03.03.06.49.42
(version=TLSv1/SSLv3 cipher=OTHER);
Thu, 03 Mar 2011 06:49:43 -0800 (PST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Vagelis Koutsomitros <vagk77 at gmail.com>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Message-ID: <20110303144940.664.12543.reportbug at athlon.wad.local>
X-Mailer: reportbug 4.12.6
Date: Thu, 03 Mar 2011 16:49:40 +0200
Delivered-To: submit at bugs.debian.org
Package: initscripts
Version: 2.88dsf-13.1
Severity: important
File: /etc/network/if-up.d/mountnfs
-- System Information:
Debian Release: 6.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=el_GR.UTF-8, LC_CTYPE=el_GR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages initscripts depends on:
ii coreutils 8.5-1 GNU core utilities
ii debianutils 3.4 Miscellaneous utilities specific t
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii mount 2.17.2-9 Tools for mounting and manipulatin
ii sysv-rc 2.88dsf-13.1 System-V-like runlevel change mech
ii sysvinit-utils 2.88dsf-13.1 System-V-like utilities
Versions of packages initscripts recommends:
ii e2fsprogs 1.41.12-2 ext2/ext3/ext4 file system utiliti
ii psmisc 22.11-1 utilities that use the proc file s
initscripts suggests no packages.
-- no debconf information
Hi, I have several clients in a lab getting /home via nfs with the line
below.
nfsserver:/home /home nfs defaults,nolock 0 0
After upgrading to squeeze and dependency based system for init
scripts all clients stall
for about 2 minutes while running /etc/network/if-up.d/mountnfs.
When finishing boot sequence, I have to run mount -a manually to mount the shares
Debugging the script with set -x shows it stalls on
mount -a -tnfs
After inspecting the script I saw that flag start_nfs is not set to
yes when using nolock option with below explanation
# NFS filsystems normally require statd and portmap. However,
# if nolock is set, portmap and statd are not required for this
# file system
However start_nfs=yes is needed to run
/etc/init.d/portmap start
/etc/init.d/nfs-common start
When I remove nolock from /etc/fstab, start_nfs is set to yes and booting is smooth,
but I have other issues so i cannot remove it.
nfs-common service due to dependency based system is started after networking service
which triggers /etc/network/if-up.d/mountnfs
I think that mount -a -tnfs cannot succeed
if nfs-common service has not started in the client and
So it needs to be started in this script to mount correctly even if nolock option is set
Bottom line, I think that start_nfs flag should be set to yes
even when clients mount nfs shares with nolock
What is your opinion?
More information about the Pkg-sysvinit-devel
mailing list