You are not logged in.

#1 2013-12-30 16:02:51

hoschi
Member
From: Ulm (Germany)
Registered: 2008-11-03
Posts: 457

cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

Hello!

I've installed Archlinux a new ThinkPad X220 and get this message during shutdown/reboot

cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

What does want Systemd tell me?

I've never seen this on my other systems (ThinkPad t430s and ThinkCenter M).

Somebody mentioned it here and posted also a screenshot:
https://bbs.archlinux.org/viewtopic.php?pid=1362098

The discussion there doesn't take a good direction and I care only about this message, no problem with a "delay" or something similiar.

Thank you

Offline

#2 2014-01-18 22:22:40

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

I get the same message on power down or reboot.  No answer to the question though.  Does yours also report:

watchdog watchdog0: watchdog did not stop!

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2014-01-18 23:12:47

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

I get both what @hoschi and @graysky posted randomly.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#4 2014-01-19 09:20:08

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

Okay, here's a rather long explanation of some of the things that happen during shutdown (simplified at some places, because some details don't help the understanding at all).

  • systemd activates shutdown.target, which conflicts with all services and mount points, essentially stopping everything that was started.

  • Activating shutdown.target starts a service that creates the executable /run/initramfs/shutdown, if it doesn't exist yet (more on that further down).

  • Upon reaching shutdown.target, systemd replaces itself with /usr/lib/systemd/systemd-shutdown.

  • systemd-shutdown tries kill all remaining processes, unmount all remaining file systems, detach all loop and device-mapper devices. It gives up at some point, since most of the time it will fail for a few mount points.

  • If /run/systemd/shutdown does not exist, systemd-shutdown proceeds to power off or reboot the machine.

  • systemd-shutdown changes the root to /run/initramfs, puts the old root to /oldroot and replaces itself with /shutdown.

  • In our case, /shutdown is a copy of /usr/lib/systemd/systemd-shutdown, which again tries to unmount everything and so on. Most of the time, it succeeds now (this means that the root file system is not only remounted read-only as it was classically done, but unmounted entirely. Any encryption mapping is also closed, which causes the kernel to wipe the encryption key from memory, to prevent a cold boot attack).

  • /shutdown then proceeds to power off or reboot.

So, how does the hardware watchdog come into play here? By default, systemd sets the watchdog timer to 10 minutes before it replaces itself with systemd-shutdown. Then it closes it, but does not stop it. When systemd-shutdown takes over, it opens the watchdog again. The same happens again when systemd-shutdown switches to /run/initramfs. This has a very useful result: If somehow the execution of the new binary fails, the hardware watchdog will time out after 10 minutes and reboot the computer - so your machine reboots instead of hanging indefinitely. The downside: You get a "watchdog did not stop" warning twice during shutdown.

As for the other error:

cgroup : option or name mismatch, new: 0x0 "", old: 0x4 "systemd"

This is a message from the kernel that is generated when a cgroup file system is remounted and options are changed that should not be changed. I cannot explain this entirely, but somehow this seems to happen while /oldroot/sys/fs/cgroup/systemd is being unmounted. In any case, it is of no special interest.

Offline

#5 2014-01-19 10:11:22

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

Thanks for the detailed explanation.  I added a link to the wiki.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2014-01-26 15:50:47

hoschi
Member
From: Ulm (Germany)
Registered: 2008-11-03
Posts: 457

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

Thanks for your detailed explaination brain0! That also explains some random sights of the watchdog during critical shutdowns (e.g. unexpected network outage).

...and options are changed that should not be changed

I don't like this kind of undefined behaviour in technical systems and it makes me a little bit worried. But your honest and clear comment is a lot of better than the typical "ignore that" answer!

Offline

#7 2014-01-28 20:02:36

ubunchu
Member
Registered: 2012-05-01
Posts: 181

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

Stupid question incoming: do we need "watchdog"?
https://wiki.archlinux.org/index.php/Po … I_watchdog
Or is it recommended to leave it as it is?


Don't forget to mark as [SOLVED].

Offline

#8 2014-01-29 12:52:45

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

ubunchu wrote:

Stupid question incoming: do we need "watchdog"?
https://wiki.archlinux.org/index.php/Po … I_watchdog
Or is it recommended to leave it as it is?

The NMI watchdog is entirely unrelated to this, it's not a "watchdog" in this sense.

Offline

#9 2014-06-30 14:53:40

bdantas
Member
Registered: 2014-05-13
Posts: 94

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

So, has anyone found a way to make this error at reboot/shutdown go away?

cgroup : option or name mismatch, new: 0x0 "", old: 0x4 "systemd"

I recently starting seeing it and it's quite aggravating.

Last edited by bdantas (2014-06-30 14:55:31)

Offline

#10 2014-06-30 15:27:22

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

bdantas wrote:

So, has anyone found a way to make this error at reboot/shutdown go away?

cgroup : option or name mismatch, new: 0x0 "", old: 0x4 "systemd"

This warning comes from kernel/cgroup.c kernel code:

        /* Don't allow flags or name to change at remount */
        if (((opts.flags ^ root->flags) & CGRP_ROOT_OPTION_MASK) ||
            (opts.name && strcmp(opts.name, root->name))) {
                pr_err("option or name mismatch, new: 0x%x \"%s\", old: 0x%x \"%s\"\n",
                       opts.flags & CGRP_ROOT_OPTION_MASK, opts.name ?: "",
                       root->flags & CGRP_ROOT_OPTION_MASK, root->name);
                ret = -EINVAL;
                goto out_unlock;
        }

Thus something tries to remount cgroups with different name and kernel does not like it.


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#11 2014-06-30 15:31:53

bdantas
Member
Registered: 2014-05-13
Posts: 94

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

Best option seems to be to ensure that cgroups is remounted with the same name as before (0x4 systemd) so that the kernel isn't upset about a mismatch. Is there a systemd setting that I can change to accomplish this?

If not, is it possible to turn off the error reporting (by disabling the code you quoted above) without having to recompile the kernel?

Last edited by bdantas (2014-06-30 16:11:49)

Offline

#12 2014-06-30 16:33:36

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

Just chiming in here: I get with the linux-ck and linux-lqx packages since BFQ v7r5, not with [core]. Not sure about linux-lts-ck.

I'm not particularly worried though.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#13 2014-07-04 07:48:52

calin_ionut
Member
From: Romania
Registered: 2014-03-31
Posts: 15

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

I have the same errors on reboot or shutdown:

cgroup : option or name mismatch, new: 0x0 "", old: 0x4 "systemd"
watchdog watchdog0: watchdog did not stop!

How to fix this?


Compaq CQ61-125EQ - Arch x86_64  - GNOME3
Core 2 duo T6400 - 4GB RAM - NVIDIA G103 M - 120GB SSD

Offline

#14 2014-11-29 22:45:47

varikonniemi
Member
Registered: 2014-11-29
Posts: 1

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

I first saw this cgroup : option or name mismatch, new: 0x0 "", old: 0x4 "systemd" error today when i upgraded (and got systemd217 among others).

Last edited by varikonniemi (2014-11-29 22:52:45)

Offline

#15 2014-11-30 11:22:35

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

@calin_ionut and @varikonniemi: You've read this post (coincidentally in this thread), right?


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#16 2015-01-13 12:35:56

fabrydrunk
Member
From: Catanzaro, Italy
Registered: 2012-04-16
Posts: 25

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

Hi guys. I've been facing this problem since 6 months, and I didn't find a solution yet (I even reinstalled the whole archlinux, uselessly).

During shutdown/reboot I always read this lines:

cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"
shutdown[1]: Failed to finalize  file systems, ignoring

I read the whole post repeatedly, especially this one, but IF there was a solution to my problem, I unfortunately didn't find it.
Can you tell me how to fix it?

Offline

#17 2015-01-13 13:03:04

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

fabrydrunk wrote:
cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

The consensus of this thread is that this bit is fine and doesn't seem to be causing anyone anyone any harm.

fabrydrunk wrote:
shutdown[1]: Failed to finalize  file systems, ignoring

This, I've never seen before and is probably one to be looking at.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#18 2015-01-13 14:00:01

fabrydrunk
Member
From: Catanzaro, Italy
Registered: 2012-04-16
Posts: 25

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

So I was looking for a solution that has never been here. Should I write a new thread for my specific problem then?

Offline

#19 2015-01-13 14:35:40

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

fabrydrunk wrote:

So I was looking for a solution that has never been here. Should I write a new thread for my specific problem then?

For the second of the two messages, if you want to pursue the message further.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#20 2015-01-13 19:34:19

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

doesn't seem to be causing anyone anyone any harm.

fabrydrunk wrote:

So I was looking for a solution that has never been here. Should I write a new thread for my specific problem then?

You didn't say whether you experience any negative side effects apart from having that warning displayed.

Last edited by orschiro (2015-01-13 19:34:38)

Offline

#21 2015-01-14 23:39:33

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,022

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

orschiro wrote:

doesn't seem to be causing anyone anyone any harm.

fabrydrunk wrote:

So I was looking for a solution that has never been here. Should I write a new thread for my specific problem then?

You didn't say whether you experience any negative side effects apart from having that warning displayed.

and? there is a necesity to be harmfull to find a solution? there is need to have side efects to need to be researched?

I thing if someone want know how supress or remove this message, that is enought to try find a solution... so...

I heard that the problem is how mkinitcpio shutdown work.
You try to use a different mkinitcpio tool? like... dracut? and look if the message persist


Well, I suppose that this is somekind of signature, no?

Offline

#22 2015-01-15 07:50:31

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

and? there is a necesity to be harmfull to find a solution? there is need to have side efects to need to be researched?

No, but time invested into a message that does not cause any harm can be used more wisely for investigating more serious issues. That's all I wanted to say.

Offline

#23 2015-01-20 03:05:35

mshan
Member
Registered: 2013-05-05
Posts: 105

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

I also have the same

cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"
reboot: shut down

at shutdown/reboot.
no solution here yet.
waiting for someone with solution to post here...


Amazing !

Offline

#24 2015-01-20 22:44:54

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

Guys, you need to understand that the linux kernel is written by people. So, someone _decided_ that this message should be an error and hence be printed to stdout, while in reality it should have been a warning. There is ton of such places in kernel with "misplaced" log priority (for example, the driver responsible for my kingmax usb flash drive prints an error every time the drive is plugged in, while using other drives results in an info-type identical message).

So, a practical approach would be to submit a bugreport to kernel.org. However, it will most likely be ignored because noone really cares, and neither should you...

On this bright note, can this thread die already?


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#25 2015-01-22 12:51:38

Janilson
Member
From: Recife-PE/Brazil
Registered: 2013-03-05
Posts: 55

Re: cgroup : option or name mismatch, new: 0x0"", old: 0x4 "systemd"

Well, I am experiencing this problem, but it's not the error message that bothers me. When I shutdow/reboot my system, my PC hangs. I can only boot it if I manually turn it off (hard way) and turn it on again.

So, is this ok? Is everybody having this issue and it is normal to not be able to turn the computer off only by using shutdown/reboot command or through desktop enviroment?

Sorry to reply to this thread, I think it's the right way.

Offline

Board footer

Powered by FluxBB