You are not logged in.

#1 2020-06-09 06:00:20

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

[SOLVED] systemd-swap: seems not to find a swap device

Systemd-swap searches for a device but doesn't seem to find any:

 $ systemctl status systemd-swap
● systemd-swap.service - Manage swap spaces on zram, files and partitions.
     Loaded: loaded (/usr/lib/systemd/system/systemd-swap.service; enabled; vendor preset: disabled)
     Active: active (exited) since Tue 2020-06-09 07:43:58 CEST; 9min ago
    Process: 458 ExecStart=/usr/bin/systemd-swap start (code=exited, status=0/SUCCESS)
   Main PID: 458 (code=exited, status=0/SUCCESS)
        CPU: 542ms

june 09 07:43:58 LN-TW-01 systemd[1]: Started Manage swap spaces on zram, files and partitions..
june 09 07:43:59 LN-TW-01 systemd-swap[458]: INFO: Load: /etc/systemd/swap.conf
june 09 07:43:59 LN-TW-01 systemd-swap[458]: INFO: Zswap: backup current configuration: start
june 09 07:43:59 LN-TW-01 systemd-swap[458]: INFO: Zswap: backup current configuration: complete
june 09 07:43:59 LN-TW-01 systemd-swap[458]: INFO: Zswap: set new parameters: start
june 09 07:43:59 LN-TW-01 systemd-swap[458]: INFO: Zswap: Enable: 1, Comp: lz4,  Max pool %: 25, Zpool: zbud
june 09 07:43:59 LN-TW-01 systemd-swap[458]: INFO: Zswap: set new parameters: complete
june 09 07:43:59 LN-TW-01 systemd-swap[458]: INFO: swapD: pickup devices from systemd-gpt-auto-generator
june 09 07:43:59 LN-TW-01 systemd-swap[458]: INFO: swapD: searching swap devices
$

and the swap partition remains at 0B

 $ free -h                                   
              total        used        free      shared  buff/cache   available
Mem:          7,6Gi       1,2Gi       5,4Gi       132Mi       1,0Gi       6,0Gi
Swap:            0B          0B          0B

Last edited by thomasbb (2020-06-09 10:26:57)

Offline

#2 2020-06-09 07:08:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,376

Re: [SOLVED] systemd-swap: seems not to find a swap device

And? Did you create a swap partition and properly denote it as a swap partition according to the GUID partition id? ... from man systemd-gpt-auto-generator

       │0657fd6d-a4ab-43c4-84e5-0933c84b4f4f │ Swap                    │ n/a             │ All swap partitions     │
       │                                     │                         │                 │ located on the disk the │
       │                                     │                         │                 │ root partition is       │
       │                                     │                         │                 │ located on are enabled. │

Last edited by V1del (2020-06-09 07:09:13)

Offline

#3 2020-06-09 09:03:06

andrewclive
Member
Registered: 2019-05-19
Posts: 30

Re: [SOLVED] systemd-swap: seems not to find a swap device

I think this is a new feature in the latest release. https://github.com/Nefelim4ag/systemd-swap/releases "Only create the first swapfile (swapfc) if we're low on ram instead of on startup"

Last edited by andrewclive (2020-06-09 09:03:46)

Offline

#4 2020-06-09 10:26:29

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

Re: [SOLVED] systemd-swap: seems not to find a swap device

V1del wrote:

Did you create a swap partition and properly denote it as a swap partition according to the GUID partition id?

It's dynamic: https://wiki.archlinux.org/index.php/Swap#Automated

andrewclive wrote:

I think this is a new feature in the latest release.

Thanks again

Offline

Board footer

Powered by FluxBB