nfs-kernel-server init script leaves nfsd fs mounted

Bug #251026 reported by Benjamin Krueger
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nfs-utils (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: nfs-kernel-server

Description: Ubuntu 8.04.1
Release: 8.04
nfs-kernel-server:
  Installed: 1:1.1.2-2ubuntu2.1
  Candidate: 1:1.1.2-2ubuntu2.1
  Version table:
 *** 1:1.1.2-2ubuntu2.1 0
        500 http://us.archive.ubuntu.com hardy-updates/main Packages
        100 /var/lib/dpkg/status
     1:1.1.2-2ubuntu2 0
        500 http://us.archive.ubuntu.com hardy/main Packages

When starting nfs-kernel-server, /proc/fs/nfsd is (correctly) mounted. When stopping nfs-kernel-server, however, the filesystem is never unmounted. While the impact is low this behavior is annoying when, for example, asssigning a static port to the lock daemon. In that case, a manual umount (and kernel module reloads, also annoying) is required.

root@host:~# mount
/dev/sda4 on / type ext3 (rw,relatime,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw,relatime)
/dev/sda2 on /tmp type ext3 (rw,relatime)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

root@host:~# /etc/init.d/nfs-kernel-server start
 * Exporting directories for NFS kernel daemon...
   ...done.
 * Starting NFS kernel daemon
   ...done.

root@host:~# mount
/dev/sda4 on / type ext3 (rw,relatime,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw,relatime)
/dev/sda2 on /tmp type ext3 (rw,relatime)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)

root@host:~# /etc/init.d/nfs-kernel-server stop
 * Stopping NFS kernel daemon
   ...done.
 * Unexporting directories for NFS kernel daemon...
   ...done.

root@host:~# mount
/dev/sda4 on / type ext3 (rw,relatime,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw,relatime)
/dev/sda2 on /tmp type ext3 (rw,relatime)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)

Tags: patch nfs nfsd

Related branches

Revision history for this message
Oleksii Ovcharenko (aleksey-ovcharenko) wrote :
tags: added: patch
Steve Langasek (vorlon)
Changed in nfs-utils (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Bryce Harrington (bryce)
Changed in nfs-utils (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nfs-utils - 1:1.2.2-4ubuntu6

---------------
nfs-utils (1:1.2.2-4ubuntu6) oneiric; urgency=low

  * nfs-kernel-server.init: Unmount nfsd fs when init script stops
    (LP: #251026)
 -- Bryce Harrington <email address hidden> Mon, 06 Jun 2011 19:18:16 -0700

Changed in nfs-utils (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.