/swapfile : fstab | SOLUTION : systemd-swap ! Thank You all!

This works for hibernation?

I don't use hibernation & deactivated it, so can't tell

Sort of:
https://wiki.archlinux.org/index.php?title=Power_management/Suspend_and_hibernate&redirect=no#Hibernation_into_swap_file

Small issue : while systemd-swap seems to fluently do the job, I have warnings :

mkswap: Label was truncated.
chattr: Operation not supported while setting flags on /var/lib/systemd-swap/swapfc//5

Do I have to care ?

~]$ sudo 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 2019-03-19 07:38:45 CET; 2h 17min ago
 Main PID: 819 (code=exited, status=0/SUCCESS)
    Tasks: 2 (limit: 4915)
   Memory: 5.2M
      CPU: 2min 37.905s
   CGroup: /system.slice/systemd-swap.service
           ├─  878 /bin/bash /usr/bin/systemd-swap start
           └─13139 sleep 1s

mars 19 09:06:23 manjaro systemd-swap[819]: mkswap: Label was truncated.
mars 19 09:06:23 manjaro systemd-swap[819]: Setting up swapspace version 1, size = 512 MiB (536866816 bytes), LABEL=SWAP_ext2/ext3_, UUID=0fce52d7-5>
mars 19 09:13:57 manjaro systemd-swap[819]: INFO: swapFC: free swap: 14 < 15 - allocate chunk: 4
mars 19 09:13:58 manjaro systemd-swap[819]: chattr: Operation not supported while setting flags on /var/lib/systemd-swap/swapfc//4
mars 19 09:14:09 manjaro systemd-swap[819]: mkswap: Label was truncated.
mars 19 09:14:09 manjaro systemd-swap[819]: Setting up swapspace version 1, size = 512 MiB (536866816 bytes), LABEL=SWAP_ext2/ext3_, UUID=6a3c6061-1>
mars 19 09:22:52 manjaro systemd-swap[819]: INFO: swapFC: free swap: 13 < 15 - allocate chunk: 5
mars 19 09:22:54 manjaro systemd-swap[819]: chattr: Operation not supported while setting flags on /var/lib/systemd-swap/swapfc//5
mars 19 09:23:04 manjaro systemd-swap[819]: mkswap: Label was truncated.
mars 19 09:23:05 manjaro systemd-swap[819]: Setting up swapspace version 1, size = 512 MiB (536866816 bytes), LABEL=SWAP_ext2/ext3_, UUID=bda36923-c>
lines 1-21/21 (END)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by