Systemd-swap: Faild to start var-lib-systemd-swap-swapfc--1.swap

Created on 31 Aug 2017  ·  4Comments  ·  Source: Nefelim4ag/systemd-swap

Today I did a fresh Arch installation (no GUI) on a VM and then installed systemd-swap (3.5.0-1)
with the following config options:

zswap_enabled=0
swapfc_enabled=1

I checked my system and saw that now swap files where active.
checked the output of htop and saw a process was still running

shred -n1 -z /var/lib/systemd-swap/swapfc//1

While investigating I looked again to htop and saw that the number has changed:

shred -n1 -z /var/lib/systemd-swap/swapfc//8

So I thought that something is wrong with swapfc trying to create(?) ckunks and failing. Then tries again but fails.

I checked _sudo systemctl status systemd-swap_ and the output gave me a hint:

Faild to start var-lib-systemd-swap-swapfc--1.swap: Unit var-lib-systemd-swap-swapfc--1.swap is not loaded properly: Invalid argument. See system logs and systemctl status var-lib-systemd-swap-swapfc--1.swap
And the above was repeated for every chunk

So, I run systemctl status var-lib-systemd-swap-swapfc--1.swap and there was:

Value of What= and unit name do not match, not loading

Any ideas how to investigate this ?

On my main machine I have systemd-swap (3.4.2-1) with the same config options and It is working properly.
Could this be a regression ?

All 4 comments

@Nefelim4ag I cloned your repo with your latest additions and installed it.

It works like as expected and the issue has been resolved !

Thanks for your patience and valuable time addressing the issue !

Everything seems to be working fine now 👍

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Navneet-Suresh picture Navneet-Suresh  ·  11Comments

Nefelim4ag picture Nefelim4ag  ·  3Comments

TeslaBargain picture TeslaBargain  ·  7Comments

dou4cc picture dou4cc  ·  7Comments

Brottweiler picture Brottweiler  ·  6Comments