NFS Client Not Properly Unmounted on Halt/Reboot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openvpn (Ubuntu) |
Expired
|
Medium
|
Unassigned |
Bug Description
(Note, this bug also exists in Debian.) I am using Ubuntu 10.04.1 LTS.
After installing the nfs-client package, Ubuntu installs the following rc0.d and rc6.d links:
$ ls -l /etc/rc0.
lrwxrwxrwx 1 root root 22 2009-02-19 19:22 /etc/rc0.
$ ls -l /etc/rc6.
lrwxrwxrwx 1 root root 22 2009-02-19 19:22 /etc/rc6.
These are incorrect for many reasons:
1) The /etc/init.
2) The S20sendsigs script is run before this and kills all NFS processes.
3) NFS volumes mounted over openvpn will not be properly unmounted because openvpn is killed before the start script is run.
I propose that the umountnfs.sh script be changed (back) to a kill script with sufficiently low number so that it runs before other daemons like openvpn. I changed mine to run at K25:
# ls -l /etc/rc0.
lrwxrwxrwx 1 root root 22 2009-02-19 19:22 /etc/rc0.
# ls -l /etc/rc6.
lrwxrwxrwx 1 root root 22 2009-02-19 19:22 /etc/rc6.
Changed in openvpn (Ubuntu): | |
importance: | Undecided → Medium |
Thank you for taking the time to report this issue and help to improve Ubuntu.
> 1) The /etc/init. d/umountnfs. sh script does nothing on "start".
That's not how "S" scripts are called in runlevels 0 and 6; this is not a bug.
> 2) The S20sendsigs script is run before this and kills all NFS processes.
No, this script does not kill any processes belonging to upstart jobs.
> 3) NFS volumes mounted over openvpn will not be properly unmounted because
> openvpn is killed before the start script is run.
This seems to be the real bug - a bug in openvpn for being stopped to early, not in nfs-utils. Reassigning to that package.