01.05.2018 12:04, Per Jessen пишет:
Jan Ritzerfeld wrote:
Am Montag, 30. April 2018, 11:53:06 CEST schrieb Per Jessen:
[...] It looks like there's a problem with multipath - the network interface is defined as 'nfsroot', that works fine. Before I go and hook up a serial console, I was hoping to find the shutdown process in the log (/var/log/messages). All I get is "syslog-ng[1083]: syslog-ng shutting down; version='3.14.1'" - any chance syslog-ng is being shut down too soon?
Hmm, I don't use syslog. However, to debug shutdown problems and get the shutdown log: https://freedesktop.org/wiki/Software/systemd/Debugging/#index2h1 Since the shutdown never finishes, use the debug shell that stays active until late shutdown. See "Early Debug Shell" beneath https://freedesktop.org/wiki/Software/systemd/Debugging/#index1h1
It looks like iscsid is being shut down before the mounts have completed unmount.
Is it with your drop-ins? Can you generate full log from boot to shutdown using systemd.log_level=debug on kernel command line? You can additionally try something like log_buf_len=64M printk.devkmsg=on systemd.log_target=kmsg The first sets kernel log buffer size, the second disables rate limiting for user space and last one makes systemd put everything in kmsg. Then on shutdown you should be able to simply save output of dmesg to get complete log. You may need to play with log_buf_len to make sure it is large enough.
srv-www.mount: About to execute: /usr/bin/umount /srv/www -c srv-www.mount: Forked /usr/bin/umount as 4620 srv-www.mount: Changed mounted -> unmounting iscsi.service: About to execute: /sbin/iscsiadm -m node --logoutall=automatic iscsi.service: Forked /sbin/iscsiadm as 4623 iscsi.service: Changed exited -> stop srv-www.mount: Executing: /usr/bin/umount /srv/www -c iscsi.service: Executing: /sbin/iscsiadm -m node --logoutall=automatic Received SIGCHLD from PID 4623 (iscsiadm). Child 4623 (iscsiadm) died (code=exited, status=0/SUCCESS) iscsi.service: Child 4623 belongs to iscsi.service iscsi.service: Control process exited, code=exited status=0 iscsi.service: Running next control command for state stop. iscsi.service: About to execute: /sbin/iscsiadm -m node --logoutall=manual iscsi.service: Forked /sbin/iscsiadm as 4672 iscsi.service: Executing: /sbin/iscsiadm -m node --logoutall=manual
At this point, srv-www has not yet completed unmount.
iscsi.service: Job iscsi.service/stop finished, result=done srv-www.mount: Unmounting timed out. Stopping. srv-www.mount: Changed unmounting -> unmounting-sigterm srv-www.mount: Unmounting timed out. Killing. srv-www.mount: Killing process 4620 (umount) with signal SIGKILL. srv-www.mount: Changed unmounting-sigterm -> unmounting-sigkill
Well, your other mail says you have explicit After=iscsi.service, so the only reason for this I can think of is dependency loop. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org