You are not logged in.

#1 2012-08-23 23:37:57

PaulBx1
Member
Registered: 2008-10-18
Posts: 142

Umount of /var fails on shutdown

Here is the journalctl log:

Aug 23 15:54:30 myhost systemd-initctl[819]: Received environment initctl request. This is not implemented in systemd.
Aug 23 15:54:30 myhost alsa[822]: [101B blob data]
Aug 23 15:54:34 myhost umount[883]: umount: /var: target is busy.
Aug 23 15:54:34 myhost umount[883]: (In some cases useful info about processes that use
Aug 23 15:54:34 myhost umount[883]: the device is found by lsof(8) or fuser(1))
Aug 23 15:54:34 myhost systemd[1]: var.mount mount process exited, code=exited status=32
Aug 23 15:54:36 myhost systemd-cryptsetup[874]: Failed to deactivate: Invalid argument
Aug 23 15:54:36 myhost systemd[1]: systemd-cryptsetup@cryptvar.service: control process exited, code=exited status=1
Aug 23 15:54:36 myhost systemd[1]: Unit systemd-cryptsetup@cryptvar.service entered failed state.
Aug 23 15:54:39 myhost systemd[1]: Shutting down.
Aug 23 15:54:39 myhost systemd[1]: Hardware watchdog 'iTCO_wdt', version 0
Aug 23 15:54:39 myhost systemd[1]: Set hardware watchdog to 10min.
Aug 23 15:54:39 myhost systemd-journal[169]: Journal stopped

Just noticed this in my shutdown messages (flashing by) because the error message now comes out in red (probably because of my recent upgrade). But it's been doing this for a couple months.

I thought it might have something to do with an xwindows process so I exited X first, verified there were no error messages, then gave the "reboot" command. It still does the same thing.

I found a thread where someone had a somewhat similar problem:
https://bbs.archlinux.org/viewtopic.php?id=144271
...however he was putting the entire /var in tmpfs. I have only /var/tmp in a tmpfs. I did look with lsof as the message suggests; needless to say many things use /var but nothing uses /var/tmp, so now maybe that thread is unrelated to what I am seeing, and it's nothing to do with the tmpfs. Google did not reveal anything to me either. Here are the results of the mount command:

[root@myhost ~]# mount|grep var
/dev/mapper/cryptvar on /var type ext4 (rw,nosuid,nodev,noexec,noatime,discard)
tmpfs on /var/tmp type tmpfs (rw,nosuid,nodev,relatime)
[root@myhost ~]# 

I suppose it may be related to an error I get on bootup:

Aug 23 15:38:08 myhost /usr/sbin/crond[347]: (CRON) INFO (Syslog will be used instead of sendmail.): No such file or directory
Aug 23 15:38:08 myhost /usr/sbin/crond[347]: (CRON) INFO (running with inotify support)

I say this because syslog goes to /var.

Perhaps I should turn syslog off since I'm using journalctl now? What would be the best way to do that?

Last edited by PaulBx1 (2012-08-24 00:37:41)

Offline

#2 2012-08-24 01:26:43

PaulBx1
Member
Registered: 2008-10-18
Posts: 142

Re: Umount of /var fails on shutdown

On that crond error I found in another thread a suggestion to add "-s" to /etc/conf.d/crond, but that didn't work in my case.

Also I was digging through the logs and found this in everything.log:

Aug 23 17:58:43 localhost [   17.280907] systemd[1]: Socket service syslog.service not loaded, refusing.

I found this in "systemctl"

syslog-ng.service                                                 loaded active running       System Logger Daemon
...
syslog.target                                                     loaded active active        Syslog

Still not sure what is going on here. It's annoying that the umount command does not tell *what* application is causing the /var unmount to fail.

Last edited by PaulBx1 (2012-08-24 01:31:49)

Offline

#3 2012-08-24 03:58:41

PaulBx1
Member
Registered: 2008-10-18
Posts: 142

Re: Umount of /var fails on shutdown

More on the crond error. I found something interesting on this page:
http://newsalloy.com/archlinux/bugs.archlinux.org

FS#31231: [cronie] [systemd] /etc/conf.d/crond is ignored 21 Aug 2012 | 11:40 pm

Description: When using systemd, the $CRONDARGS variable in /etc/conf.d/crond has no effect. Additional info: * cronie 1.4.8-3 Steps to reproduce: $ ps ax | grep crond /usr/sbin/crond -n $ echo CR...

Strangely though, when I search for that bug, 31231, I can't find it. This must be a private site. If it is in the bug tracker already, I assume it is being looked at.

Also I found errors in the logs somewhere about "ConditionPathIsExecutable". I googled for that and found the bug FS#31128, already fixed but not yet being distributed I guess.

Offline

Board footer

Powered by FluxBB