`systemctl hibernate` incorrectly reports "Not enough swap space for hibernation"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I have plenty of swap space configured in my system:
$ cat /sys/power/
6642229248 # ~ 6.2GiB
$ swapon
NAME TYPE SIZE USED PRIO
/dev/dm-2 partition 980M 0B -2
/dev/sda2 partition 97.7G 0B -3
But when I attempt to hibernate:
$ sudo systemctl hibernate
Failed to hibernate system via logind: Not enough swap space for hibernation
I have the swap partition configured as my resume device in my kernel commandline:
$ cat /proc/cmdline
BOOT_IMAGE=
$ ls -l /dev/disk/
lrwxrwxrwx 1 root root 10 Jan 5 09:08 /dev/disk/
(I'm not really sure how to further debug my issue, any assistance would be appreciated!)
ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: systemd 246.6-1ubuntu1
ProcVersionSign
Uname: Linux 5.8.0-33-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu50.3
Architecture: amd64
CasperMD5CheckR
Date: Tue Jan 5 09:33:04 2021
InstallationDate: Installed on 2019-05-07 (608 days ago)
InstallationMedia: Ubuntu 18.04.2 LTS "Bionic Beaver" - Release amd64 (20190210)
MachineType: Gigabyte Technology Co., Ltd. B450M DS3H
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: systemd
SystemdDelta:
[EXTENDED] /lib/systemd/
[EXTENDED] /lib/systemd/
2 overridden configuration files found.
SystemdFailedUnits:
Error: command ['systemctl', 'status', '--full', '●'] failed with exit code 4: Invalid unit name "●" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?).
Unit \xe2\x97\
------
Error: command ['systemctl', 'status', '--full', '●'] failed with exit code 4: Invalid unit name "●" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?).
Unit \xe2\x97\
UpgradeStatus: Upgraded to groovy on 2020-06-22 (196 days ago)
dmi.bios.date: 01/25/2019
dmi.bios.release: 5.13
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: F4
dmi.board.
dmi.board.name: B450M DS3H-CF
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Default string
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.family: Default string
dmi.product.name: B450M DS3H
dmi.product.sku: Default string
dmi.product.
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
One thing I have noticed, is that on boot:
$ cat /sys/power/resume
0:0
I can't test right now, but I _think_ that before the holiday break setting that to 8:2[0] and restarting systemd-logind meant that hibernate did then work.
[0] $ ls -l /sys/dev/block/8:2 pci0000: 00/0000: 00:01.3/ 0000:02: 00.1/ata1/ host0/target0: 0:0/0:0: 0:0/block/ sda/sda2
lrwxrwxrwx 1 root root 0 Jan 5 09:08 /sys/dev/block/8:2 -> ../../devices/