You are not logged in.

#1 2020-05-22 19:32:39

thomasbb
Member
Registered: 2020-05-22
Posts: 52

[SOLVED] systemd-swap issue

Hi,

My system has become unstable after I installed systemd-swap:

systemd-swap[679]: mkswap: Label was truncated.
systemd-swap[680]: Setting up swapspace version 1, size = 512 MiB (536866816 bytes), LABEL=SWAP_ext2/ext3_, UUID=334b2381-c24f-4733-b923-21807d62cee1
systemd[1]: Reloading.
systemd[1]: var-lib-dhcpcd-run-udev.mount: Failed to create cgroup /system.slice/var-lib-dhcpcd-run-udev.mount: No such file or directory
systemd[1]: Failed to realize cgroups for queued unit var-lib-dhcpcd-run-udev.mount, ignoring: No such file or directory
systemd[1]: systemd-journal-flush.service: Failed to create cgroup /system.slice/systemd-journal-flush.service: No such file or directory
systemd[1]: Failed to realize cgroups for queued unit systemd-journal-flush.service, ignoring: No such file or directory
systemd[1]: systemd-modules-load.service: Failed to create cgroup /system.slice/systemd-modules-load.service: No such file or directory
systemd[1]: Failed to realize cgroups for queued unit systemd-modules-load.service, ignoring: No such file or directory
systemd[1]: sys-kernel-tracing.mount: Failed to create cgroup /system.slice/sys-kernel-tracing.mount: No such file or directory
systemd[1]: Failed to realize cgroups for queued unit sys-kernel-tracing.mount, ignoring: No such file or directory
systemd[1]: system.slice: Failed to create cgroup /system.slice: No such file or directory
systemd[1]: Failed to realize cgroups for queued unit system.slice, ignoring: No such file or directory
systemd[1]: system-systemd\x2dfsck.slice: Failed to create cgroup /system.slice/system-systemd\x2dfsck.slice: No such file or directory
systemd[1]: Failed to realize cgroups for queued unit system-systemd\x2dfsck.slice, ignoring: No such file or directory
systemd[1]: dbus.service: Failed to create cgroup /system.slice/dbus.service: No such file or directory
systemd[1]: Failed to realize cgroups for queued unit dbus.service, ignoring: No such file or directory
systemd[1]: systemd-udevd-control.socket: Failed to create cgroup /system.slice/systemd-udevd-control.socket: No such file or directory
systemd[1]: Failed to realize cgroups for queued unit systemd-udevd-control.socket, ignoring: No such file or directory
systemd[1]: lvm2-lvmpolld.socket: Failed to create cgroup /system.slice/lvm2-lvmpolld.socket: No such file or directory
systemd[1]: Failed to realize cgroups for queued unit lvm2-lvmpolld.socket, ignoring: No such file or directory
systemd[1]: systemd-random-seed.service: Failed to create cgroup /system.slice/systemd-random-seed.service: No such file or directory

Any idea how I can fix it?

Last edited by thomasbb (2020-05-24 19:35:29)

Offline

#2 2020-05-23 15:42:05

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,456

Re: [SOLVED] systemd-swap issue

Post the exact steps you took to install and configure systemd-swap. I don't run systemd-swap, but the Arch Wiki says there's a number of configuration steps you must take described on their GitHub readme. Did you follow all those steps?

Offline

#3 2020-05-24 11:28:41

thomasbb
Member
Registered: 2020-05-22
Posts: 52

Re: [SOLVED] systemd-swap issue

twelveeighty wrote:

Post the exact steps you took to install and configure systemd-swap.

I only followed the wiki step-by-step

twelveeighty wrote:

I don't run systemd-swap, but the Arch Wiki says there's a number of configuration steps you must take described on their GitHub readme. Did you follow all those steps?

Yes, I also went on this GitHub page and followed their procedure. Most of the time, it starts well though: https://x0.at/uj_

Offline

#4 2020-05-24 12:29:16

loqs
Member
Registered: 2014-03-06
Posts: 19,070

Re: [SOLVED] systemd-swap issue

If you disable dhcpcd@enp0s26f7u2.service can you reproduce the issue?

Offline

#5 2020-05-24 14:48:09

thomasbb
Member
Registered: 2020-05-22
Posts: 52

Re: [SOLVED] systemd-swap issue

loqs wrote:

If you disable dhcpcd@enp0s26f7u2.service can you reproduce the issue?

Well done, it's related: if the service dhcpcd@enp0s26f7u2 starts before the swap is allocated, the boot fails.

Offline

#6 2020-05-24 15:08:08

jones
Member
Registered: 2013-03-14
Posts: 276

Re: [SOLVED] systemd-swap issue

loqs wrote:

If you disable dhcpcd@enp0s26f7u2.service can you reproduce the issue?

Where did you get that service name from or did you just make it up? smile

Offline

#7 2020-05-24 17:12:34

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,456

Re: [SOLVED] systemd-swap issue

@jones: it's the service that fails in the logs that OP linked:

systemd[1]: Starting dhcpcd on enp0s26f7u2...
dhcpcd[999]: sending commands to dhcpcd process
systemd[1]: dhcpcd@enp0s26f7u2.service: Can't open PID file /run/dhcpcd/enp0s26f7u2.pid (yet?) after start: Operation not permitted
systemd[1]: dhcpcd@enp0s26f7u2.service: Failed with result 'protocol'.
systemd[1]: Failed to start dhcpcd on enp0s26f7u2.

Offline

#8 2020-05-24 17:14:04

jones
Member
Registered: 2013-03-14
Posts: 276

Re: [SOLVED] systemd-swap issue

Oh, the link in their second post. Thanks!

Offline

#9 2020-05-24 18:03:11

loqs
Member
Registered: 2014-03-06
Posts: 19,070

Re: [SOLVED] systemd-swap issue

There is / was an open bug report on https://bugs.archlinux.org/ for dhcpcd I can not provide a link as currently my system can not connect to the server.

Offline

#10 2020-05-24 18:53:43

thomasbb
Member
Registered: 2020-05-22
Posts: 52

Re: [SOLVED] systemd-swap issue

jones wrote:

Where did you get that service name from or did you just make it up? smile

It's my mobile USB tethering

loqs wrote:

There is / was an open bug report on https://bugs.archlinux.org/ for dhcpcd I can not provide a link as currently my system can not connect to the server.

Then, it seems it's solved. Many thanks for your help(s)

Offline

Board footer

Powered by FluxBB