[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Reboot haengt bis Timeout



On Tue, 21 May 2019 16:01:03 +0200, Martin Johannes Dauser
<mdauser@cs.sbg.ac.at> wrote:
>Das Timeout von 30min ist im reboot.target, eine Art Runlevel von
>systemd, zu finden.

Dankeschön.

>Ich vermute, der File System Check braucht zu lange.

Nein, das System ist in diesem Status "kaputt", weil aufgrund eines
Kernelproblems eine VM hängt und sich auch mit kill -9 nicht beenden
lässt.

>Aber warum läuft der eigentlich beim Runterfahren und nicht beim
>Hochfahren?

Für jedes Dateisystem wird eine systemd-fsck@device.service Unit
generiert, die wird beim Booten gestartet und macht das fsck und ist
dann "Active". Beim Runterfahren wird sie "gestoppt", das ist aber ein
noop.

Eigentlich ganz schlau gemacht.
|[2/5325]mh@drop:~ $ sudo systemctl status systemd-fsck@dev-mapper-dropbtr0.service 
|? systemd-fsck@dev-mapper-dropbtr0.service - File System Check on /dev/mapper/d
|   Loaded: loaded (/lib/systemd/system/systemd-fsck@.service; static; vendor pr
|   Active: active (exited) since Tue 2019-05-21 10:40:44 CEST; 1 day 3h ago
|     Docs: man:systemd-fsck@.service(8)
|  Process: 787 ExecStart=/lib/systemd/systemd-fsck /dev/mapper/dropbtr0 (code=e
| Main PID: 787 (code=exited, status=0/SUCCESS)
|
|Mai 21 10:40:44 drop systemd[1]: Starting File System Check on /dev/mapper/drop
|Mai 21 10:40:44 drop systemd[1]: Started File System Check on /dev/mapper/dropb
|[3/5326]mh@drop:~ $ sudo systemctl cat systemd-fsck@dev-mapper-dropbtr0.service 
|[sudo] password for mh: 
|# /lib/systemd/system/systemd-fsck@.service
|#  SPDX-License-Identifier: LGPL-2.1+
|#
|#  This file is part of systemd.
|#
|#  systemd is free software; you can redistribute it and/or modify it
|#  under the terms of the GNU Lesser General Public License as published by
|#  the Free Software Foundation; either version 2.1 of the License, or
|#  (at your option) any later version.
|
|[Unit]
|Description=File System Check on %f
|Documentation=man:systemd-fsck@.service(8)
|DefaultDependencies=no
|BindsTo=%i.device
|Conflicts=shutdown.target
|Wants=systemd-fsckd.socket
|After=%i.device systemd-fsck-root.service local-fs-pre.target systemd-fsckd.soc
|Before=systemd-quotacheck.service shutdown.target
|
|[Service]
|Type=oneshot
|RemainAfterExit=yes
|ExecStart=/lib/systemd/systemd-fsck %f
|TimeoutSec=0

Grüße
Marc
-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber         |   " Questions are the         | Mailadresse im Header
Mannheim, Germany  |     Beginning of Wisdom "     | 
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 72739834


Reply to: