Re: btrfs swapfile - Not enough swap space for hibernation.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 11, 2020 at 7:02 AM Sreyan Chakravarty <sreyan32@xxxxxxxxx> wrote:
>
> The only reason I can fathom is that systemd-logind is unable to
> access the directory /var/swap. IIRC, you were the one who suggested I
> mount in that directory.
>
> Not blaming you, but the question is what do I do now ?

Well, what I recommended is a swap partition to avoid all of these
limitations and questions. If you're going to use swap on Btrfs then
you're kinda in the same boat as the rest of us who are trying to
address each limit. This is why it's not the default and why I haven't
written up anything yet.

My expectation is that swapfiles on btrfs need a helper service of
some sort, in order for it to be generally usable.

> The bug that you have linked to is about /home not /var.

It's a reference for a similar problem, not an identical problem, with
a how to enable debug for logind.

> So where should I keep the swap for logind to access it without any problems ?

You are in adventure land. So you're going on an adventure. If you
want it to just work, use a swap partition.


> I don't think that is possible since the file was created with dd, not
> fallocate.

Why? I've mentioned fallocate several times, and also man 5 btrfs
several times, and there it recommends fallocate. Nowhere is dd
suggested. It may not work with dd depending on the dd exact dd
command used.


-- 
Chris Murphy
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux