Ask Your Question
1

Reboot/shutdown blocked by firewalld and umount /oldroot

asked 2018-11-20 10:07:31 -0600

esbentoke gravatar image

updated 2018-11-21 07:45:29 -0600

Hi.

I'm a new Fedora user and a fairly green Linux user, so please bear with me.

I'm on a completely fresh Fedora 29 Workstation install. Literally the only steps i've taken since installation is dropping a firmware in /lib/firmware/brcm to get my wifi working, and running 'sudo dnf --distro-sync'.

When rebooting/shutting down the process stalls in two places: -First with 'A stop job is running for firewalld - dynamic firewall daemon (some-elapsed-time/sometimes up to 6 minutes) -Then it stalls again at 'Starting Reboot' - This can take upwards of 5 minutes before i get this output:

dracut Warning: Killing all remaining processes
dracut Warning: Cannot umount /oldroot
/shutdown: line 79: warning: command substitution: ignored null byte in input
dracut Warning: Blocking umount of /oldroot [3537] /sbin/rmmodnf_conntrack
dracut Warning: lrwxrwxrwx. 1 root root 0 Nov 20 14:48 /proc/3537/exe -> /oldroot/usr/bin/kmod
dracut Warning: total 0
dracut Warning: lr-x------. root root 64 Nov 20 14:42 0 -> pipe:[69368]
dracut Warning: l-wx------. root root 64 Nov 20 14:42 1 -> pipe:[69369]
dracut Warning: l-wx------. root root 64 Nov 20 14:42 2 -> pipe:[69369]
device-mapper: remove ioctl on fedora-root failed: Device or resource busy
Command failed.
device-mapper: remove ioctl on fedora-root-real failed: Device or resource busy
Command failed.
device-mapper: remove ioctl on luks-f4c635c0-ed8e-4920-9fa1-b077e4b4b0d6 failed: Device or resource busy
Command failed
device-mapper: remove ioctl on fedora-root failed: Device or resource busy
Command failed
device-mapper: remove ioctl on fedora-root-real failed: Device or resource busy
Command failed
device-mapper: remove ioctl on fedora-root failed: Device or resource busy
Command failed
Rebooting.
[22587.809487] reboot: Restarting system

EDIT: I managed to grab the final bits of output before the machine finally reboots. I've added it to the above. Something fishy is going on with LVM or luks.

An additional behaviour that might mean something. If I boot the system, and shut down/reboot before actually doing anything, it happens almost instantly. But just opening e.g. Firefox, going to a page, then shutting down i get this 10 minute wait.

I really don't know how to debug this, where to look for logs etc. so any help would be greatly appreciated.

Edit: I tried following the instructions here for getting a verbose shutdown log. No mention of oldroot in the log. I get this regarding firewalld:

[  282.320466] systemd[1]: firewalld.service: State 'stop-sigterm' timed out. Killing.
[  282.320634] systemd[1]: firewalld.service: Killing process 1090 (firewalld) with signal SIGKILL.
[  282.320968] systemd[1]: firewalld.service: Killing process 3061 (rmmod) with signal SIGKILL.
[  282.321141] systemd[1]: firewalld.service: Killing process 1442 (gmain) with signal SIGKILL.
[  282.321176] systemd[1]: firewalld.service: Changed stop-sigterm -> stop-sigkill
[  282.321328] systemd-journald[903]: Journal effective settings seal=no compress=yes compress_threshold_bytes=512B
[  282.321433] systemd-journald[903]: Journal effective settings seal=no compress=yes compress_threshold_bytes=512B
[  282.321469] systemd-journald[903]: Journal effective settings seal=no compress=yes compress_threshold_bytes=512B
[  282.321496] systemd-journald[903 ...
(more)
edit retag flag offensive close merge delete

Comments

Try this: grep /oldroot /etc/mtab to see if there's really something mounted there. If so, we'll need to find out what it is, and why it isn't unmounting correctly. If not, the question becomes why your system's trying to unmount something that's not there and why the operation's hanging.

sideburns gravatar imagesideburns ( 2018-11-20 13:11:25 -0600 )edit

No output from 'sudo grep /oldroot /etc/mtab' :/

esbentoke gravatar imageesbentoke ( 2018-11-21 01:10:58 -0600 )edit

Thank you; that means that /oldroot didn't exist when you checked. Btw, you don't need sudo for that command, which is why I didn't put it into my suggestion.

sideburns gravatar imagesideburns ( 2018-11-21 08:22:47 -0600 )edit

Have you searched for the oldroot message.

The problem seems to be related to systemd.

florian gravatar imageflorian ( 2018-11-21 12:22:28 -0600 )edit

Yes i have searched but not found anything useful :(

esbentoke gravatar imageesbentoke ( 2018-11-22 01:49:29 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
2

answered 2018-11-23 04:18:17 -0600

esbentoke gravatar image

So this question ended up being more about the /oldroot issue than firewalld. No answers or suggestions were given regarding firewalld. Here's what i've found out though.

Regarding /oldroot, which noone seems to know about i've found this. Apparently (correct me if i'm wrong) during shutdown, dracut loads the initramfs image, pivots to this system and then unmounts /oldroot (the actual os root). So /oldroot is actually always there during shutdown.

As it turned out, everything was caused by firewalld. Disabling firewalld completely solves the problem. It simply CAN'T be the intended behavior that a misbehaving service should prevent the system from shutting down cleanly. But I don't know where to start reporting this as a bug.

Now I need to figure out what the issue with firewalld is, as i don't want to run without it. But i will open a seperate issue for that. Just wanted to report my findings in case anyone else is struggling and is puzzled about /oldroot.

edit flag offensive delete link more
0

answered 2018-11-20 11:58:29 -0600

ed209 gravatar image

Sometimes the shutdown remains blocked for weird reasons. First of all, what is /oldroot supposed to be, and why is there in first place? Something very strange is going on.

Then, try the following. Open a terminal, become root with su and issue the command:

shutdown -h now

It halts the machine. The subsequent shutdown should be ok, provided you don't have other problems pending like /oldroot.

edit flag offensive delete link more

Comments

I have no idea what /oldroot is. As mentioned this is a completely fresh install so it must be a part of Fedora 29. I tried 'sudo shutdown -h now'. Same behavior - stalls stopping firewalld and again before giving the output in the question :/

esbentoke gravatar imageesbentoke ( 2018-11-20 12:13:37 -0600 )edit

Do you have something mounted under /oldroot ? What df has to say? cat /proc/mounts ? What about /etc/fstab ? Once identified, as root unmount it and erase the line present in fstab . Then try again.

ed209 gravatar imageed209 ( 2018-11-20 18:09:19 -0600 )edit

Check also /proc/mdstat . It could be a but of mdadm. Try to upgrade or downgrade. If all else fails report to bugzilla.

ed209 gravatar imageed209 ( 2018-11-20 18:13:56 -0600 )edit

I have updated the info in the question, but basically no output looking for 'oldroot' in df output, /proc/mounts or fstab.

esbentoke gravatar imageesbentoke ( 2018-11-21 08:05:13 -0600 )edit
0

answered 2018-11-24 04:38:26 -0600

I have got exactly the same problem. Can I please ask you the specs of your machine?

edit flag offensive delete link more

Comments

Sure. Most likely it has to do with the NIC since firewalld is the problem. I have an Asus pce-ac88 WiFi card. Motherboard is Asus z97-pro.

esbentoke gravatar imageesbentoke ( 2018-11-25 08:41:06 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-11-20 10:07:31 -0600

Seen: 109 times

Last updated: Nov 23