Public bug reported:

Binary package hint: mountall

Hi!

I discovered this problem when an improper shut down of the server
before all clients had shutdown on an LTSP system. It seems that the
client when it logs out deletes files in /tmp that confuse it when
booting again(that is another bug report). However, this can cause
problems with /tmp filling up the hard drive with unneeded files that
should otherwise be deleted on boot.

Ubuntu forum user tall-male also discovered this. See his post here:

http://ubuntuforums.org/showthread.php?p=9558012#post9558012

Here is a summary and fix:

The automatic cleanup of /tmp at boot time is not working. It wasn't
working in Ubuntu 9.10, neither in the new 10.04.

The problem seems to happen using a separate /usr partition.

According to /etc/init/mounted-tmp.conf, cleaning starts when /tmp is mounted:
start on mounted MOUNTPOINT=/tmp
However, the script needs /usr/bin/find to cleanup /tmp. Cleanup is failing 
since /usr is not there (is not mounted) when cleaning starts. Therefor, /tmp 
is never cleaned

Changing it to:
start on local-filesystems
solved the problem. The cleanup is only started when all local file systems are 
mounted.

I can confirm that this change does work.

I filed this report first against upstart itself not knowing what
package it should be filed against.

https://bugs.launchpad.net/upstart/+bug/602659

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: mountall 2.15
ProcVersionSignature: Ubuntu 2.6.32-23.37-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-23-generic i686
Architecture: i386
Date: Wed Jul  7 14:52:26 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100427.1)
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: mountall

** Affects: mountall (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 lucid

-- 
Upstart job to clean /tmp does not run when /usr is on a seperate partion
https://bugs.launchpad.net/bugs/602723
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to