[Merge] lp:~jamesodhunt/ubuntu/saucy/sysvinit/log-processes-and-open-files-on-shutdown into lp:ubuntu/sysvinit

Dmitrijs Ledkovs launchpad at surgut.co.uk
Thu Sep 12 11:10:43 UTC 2013


You have been requested to review the proposed merge of lp:~jamesodhunt/ubuntu/saucy/sysvinit/log-processes-and-open-files-on-shutdown into lp:ubuntu/sysvinit.

For more details, see:
https://code.launchpad.net/~jamesodhunt/ubuntu/saucy/sysvinit/log-processes-and-open-files-on-shutdown/+merge/163740

= 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/shutdown-ps.log
- /var/log/shutdown-lsof.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).


-- 
https://code.launchpad.net/~jamesodhunt/ubuntu/saucy/sysvinit/log-processes-and-open-files-on-shutdown/+merge/163740
Your team Ubuntu branches is requested to review the proposed merge of lp:~jamesodhunt/ubuntu/saucy/sysvinit/log-processes-and-open-files-on-shutdown into lp:ubuntu/sysvinit.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: review-diff.txt
Type: text/x-diff
Size: 2701 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-reviews/attachments/20130912/046c517b/attachment.diff>


More information about the Ubuntu-reviews mailing list