Mailinglist Archive: opensuse (880 mails)

< Previous Next >
Re: [opensuse] Cant rename/remove /var/tmp in 12.3?
В Fri, 2 Aug 2013 13:06:05 +0200
Josef Wolf <jw@xxxxxxxxxxxxx> пишет:

On Do, Aug 01, 2013 at 03:48:55 +0200, Carlos E. R. wrote:
Try restarting 'famd'.

famd is not installed here.

Finally, I have found _one_ suspect: haveged keeps /var/tmp from beeing
renamed, even though it don't access it:

raven:/home/jw # lsof | grep haveged
haveged 578 root cwd DIR 253,0 4096 2 /
haveged 578 root rtd DIR 253,0 4096 2 /
haveged 578 root txt REG 253,0 108320 739481
haveged 578 root mem REG 253,0 1741576 171370
haveged 578 root mem REG 253,0 148206 171363 /lib/
haveged 578 root 0r CHR 1,3 0t0 1034 /dev/null
haveged 578 root 1u unix 0xf4450b80 0t0 9217 socket
haveged 578 root 2u unix 0xf4450b80 0t0 9217 socket
haveged 578 root 3u CHR 1,8 0t0 1038 /dev/random

I find this to be a _very_ surprising fact. I'd never expect a daemon that
gathers random data to lock _anything_ on _any_ filesystem.

But there are some more suspects: rtkit-daemon udisksd polkitd upowerd
Those seem to be managed by dbus. How can I disable/enable those services
selectively to find out which of them is responsible?

The only case when rename returns EBUSY is when directory is mount
point. systemd creates private tmp directories if service has

bor@opensuse:~> grep -rlw PrivateTmp /usr/lib/systemd/system
bor@opensuse:~> systemctl status haveged
haveged.service - Haveged Entropy Gathering Daemon
Loaded: loaded (/usr/lib/systemd/system/haveged.service; enabled)
Active: active (running) since Sat, 2013-07-27 11:13:45 MSK; 6 days
Main PID: 672 (haveged)
CGroup: name=systemd:/system/haveged.service
└ 672 /usr/sbin/haveged -w 1024 -v 0 -F

bor@opensuse:~> sudo grep /var/tmp /proc/672/mountinfo
73 44 253:1 /var/tmp/systemd-private-xztGlQ /var/tmp rw,relatime shared:56
master:1 - ext4 /dev/mapper/system-root rw,commit=600,data=ordered

So /var/tmp cannot be renamed because it mounted - in one of namespaces.
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups