08.07.2017 19:17, Achim Gratz пишет:
Since a few weeks dracut spews about two pages of errors/warnings on shutdown. Yesterday I halted the system instead of poweroff to be able to read those and it seems that the unmount of /oldroot fails and then the disassembly of the device-mapper devices errors out (maybe there'd been other errors before that that already rolled off the screeb). Does anybody have an idea what is going on and how to fix it?
Sorry, but you will need to debug it. If unmounting of /oldroot fails, some process was stuck and not killed. device-mapper are just followup errors, as LVM cannot be stopped at this point. Any debugging will involve some way to capture late console output. Here is example of console output in my case (clean shutdown). Are you sure you do not misinterpret "Warning: Unmounted /oldroot" or "Failed to read reboot parameter file" or preceding "device or resource busy" as errors? [ OK ] Reached target Shutdown. [ 32.943171] systemd-shutdown[1]: Sending SIGTERM to remaining processes... [ 32.945135] systemd-journald[775]: Received SIGTERM from PID 1 (systemd-shutdow). [ 33.076748] systemd-shutdown[1]: Sending SIGKILL to remaining processes... [ 33.078616] systemd-shutdown[1]: Unmounting file systems. [ 33.079348] systemd-shutdown[1]: Remounting '/var/log' read-only with options 'space_cache,subvolid=274,subvol=/@/var/log'. [ 33.200819] BTRFS info (device dm-1): disk space caching is enabled [ 33.283588] systemd-shutdown[1]: Unmounting /var/log. [ 33.295335] systemd-shutdown[1]: Remounting '/' read-only with options 'space_cache,subvolid=257,subvol=/@'. [ 33.296214] BTRFS info (device dm-1): disk space caching is enabled [ 33.296947] systemd-shutdown[1]: Remounting '/' read-only with options 'space_cache,subvolid=257,subvol=/@'. [ 33.298869] BTRFS info (device dm-1): disk space caching is enabled [ 33.299555] systemd-shutdown[1]: Remounting '/' read-only with options 'space_cache,subvolid=257,subvol=/@'. [ 33.300564] BTRFS info (device dm-1): disk space caching is enabled [ 33.301212] systemd-shutdown[1]: All filesystems unmounted. [ 33.301785] systemd-shutdown[1]: Deactivating swaps. [ 33.302337] systemd-shutdown[1]: All swaps deactivated. [ 33.302877] systemd-shutdown[1]: Detaching loop devices. [ 33.303530] systemd-shutdown[1]: All loop devices detached. [ 33.304111] systemd-shutdown[1]: Detaching DM devices. [ 33.304923] systemd-shutdown[1]: Detaching DM 254:1. [ 33.305463] systemd-shutdown[1]: Could not detach DM /dev/dm-1: Device or resource busy [ 33.306293] systemd-shutdown[1]: Detaching DM 254:0. [ 33.327328] systemd-shutdown[1]: Not all DM devices detached, 1 left. [ 33.328001] systemd-shutdown[1]: Detaching DM devices. [ 33.328643] systemd-shutdown[1]: Detaching DM 254:1. [ 33.329073] systemd-shutdown[1]: Could not detach DM /dev/dm-1: Device or resource busy [ 33.329733] systemd-shutdown[1]: Not all DM devices detached, 1 left. [ 33.330289] systemd-shutdown[1]: Cannot finalize remaining DM devices, continuing. [ 33.334868] systemd-shutdown[1]: Successfully changed into root pivot. [ 33.335494] systemd-shutdown[1]: Returning to initrd... [ 33.364999] dracut Warning: Killing all remaining processes dracut Warning: Killing all remaining processes [ 33.423657] dracut Warning: Unmounted /oldroot. [ 33.436812] dracut: Disassembling device-mapper devices Failed to read reboot parameter file: No such file or directory Rebooting. [ 33.468035] Unregister pv shared memory for cpu 0 [ 33.468670] sd 6:0:0:0: [sda] Synchronizing SCSI cache [ 33.470750] reboot: Restarting system [ 33.471122] reboot: machine restart -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org