Re: F33 BTRFS - Not enough swap space for hibernation [solved]

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

 



On Wed, Dec 9, 2020 at 5:31 AM Chris Murphy <lists@xxxxxxxxxxxxxxxxx> wrote:
I referred you to man 5 btrfs about a list of limitations of swapfiles
on btrfs 10 days ago.
https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx/message/XF7YO27N2XPWGLPMPUN76VFT3RW2KFYS/

Apologies, I missed that.
 
However, it might be better to have a "swap" subvolume along with
"root" and "home" in the top-level of the file system. And add it to
fstab or maybe we can create a native systemd mount unit. Importantly
we have to have complete certainty that this mount happens before
swapon, or it'll fail. So we can't have races either. Now both issues
are fixed. It won't be snapshot if we snapshot "root". But if we
rollback a "root" snapshot, then the same "swap" subvolume always
mounts into the proper position at /var/swap with the same swapfile.


Ok, how can I guarantee that the swap subvolume will be mounted before swapon is executed ?

Is swapon executed after all mounts in /etc/fstab by design ?

Is there something else I can do to guarantee this?

Or is there no way to guarantee this now ?


Yes you were right. I have just restored my snapshot and now swap is malfunctioning.

I guess that's because the physical offset of the file is different.

But that automatic solution is also kinda hidden. So no matter what
there's some kind of tradeoff. And that's the long answer for why it's
not the default yet, and also not even documented how to do a
post-install setup of swap. But it's on my todo.

 Lets hope you get around to it soon.

--
Regards,
Sreyan Chakravarty
_______________________________________________
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