Thanks for the quick response, Bernhard! On Mi, Jul 31, 2013 at 11:37:45 +0200, Bernhard Voelker wrote:
Your commands above show that /var/tmp is not the mount point (but "/" is"). How does your strace look like?
raven:/ # strace -e rename,stat,lstat mv /var/tmp /var/tmp-orig rename("/var/tmp", "/var/tmp-orig") = -1 EBUSY (Device or resource busy) mv: cannot move ‘/var/tmp’ to ‘/var/tmp-orig’: Device or resource busy +++ exited with 1 +++ raven:/ #
In a plain installation, I can't imagine much other reasons for EBUSY. Did you play with some other restricting methods like SELinux etc.?
No. Everything is as it was on a fresh install.
Are there suspicious entries in /proc/self/mounts?
raven:/ # grep tmp /proc/self/mounts devtmpfs /dev devtmpfs rw,relatime,size=1530924k,nr_inodes=207269,mode=755 0 0 tmpfs /dev/shm tmpfs rw,relatime 0 0 tmpfs /run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0 tmpfs /sys/fs/cgroup tmpfs rw,nosuid,nodev,noexec,mode=755 0 0 tmpfs /tmp tmpfs rw,nosuid,nodev,noexec,relatime,size=524288k 0 0 tmpfs /var/lock tmpfs rw,nosuid,nodev,relatime,mode=755 0 0 tmpfs /var/run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0 raven:/ #
Does "lsof /var/tmp" or "fuser /var/tmp" show something, e.g. a process chroot-ed to /var/tmp?
Nothing chrooted: raven:/ # ls -ld /proc/*/root|grep -v ' /$' lrwxrwxrwx 1 root root 0 Jul 31 12:09 /proc/3309/root -> /var/lib/ntp lrwxrwxrwx 1 root root 0 Jul 31 12:11 /proc/3892/root -> /proc lsof and fuser show a lot of entries, but none of them are related directly to /var/tmp. In the 20 years I have been using linux, I have never seen that changing into a directory or keeping files open (even for writing) in a direcoty would prevent you from deleting/renaming that directory. Not even chroot would prevent renaming (I just tried with /var/lib/ntp shown above). While deletion could fail if deletion of some file or directory further down fails, I don't see any reason why a rename could possibly fail. And I strongly consider those semantics to be a feauture, not a bug. Just take a look over there to the windows world, where all applications need to be stopped every time you want to install or update something. The only reason I can see would be a mount. But there is nothing mounted on /var/tmp. -- Josef Wolf jw@raven.inka.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org