You are not logged in.

#1 2022-11-19 12:04:37

lester29
Member
Registered: 2022-10-31
Posts: 9

Failed unmounting /var/log and /var/log/journal at shutdown

Hi there, I have a problem with unmounting some systemd services at shutdown:

Nov 19 12:31:55 laptop systemd[1]: var-log-journal.mount: Mount process exited, code=exited, status=32/n/a
Nov 19 12:31:55 laptop systemd[1]: Failed unmounting /var/log/journal.
Nov 19 12:31:55 laptop systemd[1]: Stopped target Swaps.
Nov 19 12:31:55 laptop systemd[1]: Unmounting /var/log...
Nov 19 12:31:55 laptop umount[21663]: umount: /var/log: target is busy.
Nov 19 12:31:55 laptop systemd[1]: var-log.mount: Mount process exited, code=exited, status=32/n/a
Nov 19 12:31:55 laptop systemd[1]: Failed unmounting /var/log.

I have ZFS on root and /var, /var/log, /var/log/journal on the separate datasets. Let me know how can I solve this issue. Thanks

Last edited by lester29 (2022-11-19 12:05:05)

Offline

#2 2022-11-19 15:05:48

seth
Member
Registered: 2012-09-03
Posts: 59,894

Re: Failed unmounting /var/log and /var/log/journal at shutdown

You cannot umount /var as long as journald is trying to write there.
See whether you get away w/ https://www.freedesktop.org/software/sy … itrd.mount for the relevant entries in fstab.

Online

#3 2024-05-14 02:09:40

schmitmd
Member
Registered: 2020-07-09
Posts: 1

Re: Failed unmounting /var/log and /var/log/journal at shutdown

For any future folks who end up here, the solution you're most likely looking for is to simply use the ZFS mount generator specified in the wiki here:
https://wiki.archlinux.org/title/ZFS#Us … -generator
Follow those steps and you should be golden (did the trick for me anyway).

Last edited by schmitmd (2024-05-14 02:10:06)

Offline

Board footer

Powered by FluxBB