Merge lp:~jamesodhunt/ubuntu/saucy/sysvinit/log-processes-and-open-files-on-shutdown into lp:ubuntu/saucy/sysvinit
Status: | Rejected |
---|---|
Rejected by: | Iain Lane |
Proposed branch: | lp:~jamesodhunt/ubuntu/saucy/sysvinit/log-processes-and-open-files-on-shutdown |
Merge into: | lp:ubuntu/saucy/sysvinit |
Diff against target: |
94 lines (+51/-0) (has conflicts) 3 files modified
debian/changelog (+11/-0) debian/src/initscripts/etc/init.d/umountfs (+20/-0) debian/src/initscripts/etc/init.d/umountroot (+20/-0) Text conflict in debian/changelog |
To merge this branch: | bzr merge lp:~jamesodhunt/ubuntu/saucy/sysvinit/log-processes-and-open-files-on-shutdown |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Steve Langasek | Needs Fixing | ||
Ubuntu branches | Pending | ||
Review via email: mp+163740@code.launchpad.net |
Description of the change
= Problem =
Occasionally, people report issues where the root filesystem cannot be unmounted cleanly on shutdown. To debug these issues generally involves either producing custom PPA packages, or requesting users hack around with the existing shutdown sequence (not ideal).
= Overview =
Since these shutdown issues re-occur from time-to-time (*) it makes sense to put in place a facility to aid debugging without having to produce custom PPA package builds, etc.
This MP logs running processes and open files just prior to unmounting the disks such that if problems are observed on shutdown, they can be investigated on the next boot by looking at the files below which are generated on shutdown:
- /var/log/
- /var/log/
= Notes =
The lsof command can take some time to run on a normal system. However, note that this should not be a problem at shutdown in the usual case since we don't expect many processes to still be running (and hence it will only slow down the shutdown slightly in the cases where something _has_ gone wrong and hence we need to run lsof to diagnose). Note too that by using the '-lnP' options, lsof is run as fast as possible.
If accepted, this should be forwarded to Debian too.
(*) - this does not imply a regression: it may be that some combination of package versions from the full archive interact in unexpected ways in a particular release (it is not possible to test every combination).
Unmerged revisions
- 191. By James Hunt
-
* debian/
src/initscripts /etc/init. d/umountroot: Fix typo and use POSIX
form of head(1) (thanks cjwatson). - 190. By James Hunt
-
* debian/
src/initscripts /etc/init. d/umountfs: Log open files on root
filesystem just prior to unmounting filesystems to aid diagnosis of
shutdown issues.
* debian/src/initscripts /etc/init. d/umountroot: Check again for open files
and log to console.
Note that once this feature is available, apport hooks can make use of these files for reporting shutdown issues.