我试图通过冬眠systemctl hibernate
但得到Failed to hibernate system via logind: Not enough swap space for hibernation
LANG=C swapon
NAME TYPE SIZE USED PRIO
/swap/swapfile file 200G 0B -2
##################################
LANG=C free -h
total used free shared buff/cache available
Mem: 31Gi 7.3Gi 12Gi 2.2Gi 11Gi 21Gi
Swap: 199Gi 0B 199Gi
##################################
cat /etc/default/grub | grep GRUB_CMDLINE_LINUX_DEFAULT
GRUB_CMDLINE_LINUX_DEFAULT="resume=UUID=22dffee9-9be9-4ab3-afe3-ef0ac025c1c3 resume_offset=173273088 quiet splash"
似乎一切都很好,而且我的交换空间比所需的交换空间多得多,但为什么 systemctl 会向我提供虚假信息?
更新1:
systemctl hibernate
dmesg
PM: Cannot find swap device, try swapon -a
PM: Cannot get swap write