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

2020-12-09 Thread Sreyan Chakravarty
On Wed, Dec 9, 2020 at 5:36 AM Chris Murphy wrote: > Small clarification. 'chattr +C' to set the C file attribute is > 'nodatacow'. Since Btrfs is cow by default, it's generally OK to > assume cow unless this attribute is set. But there's a rather uncommon > and not highly recommended mount optio

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

2020-12-09 Thread Sreyan Chakravarty
On Wed, Dec 9, 2020 at 5:31 AM Chris Murphy 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@lists.fedoraproject.org/message/XF7YO27N2XPWGLPMPUN76VFT3RW2KFYS/ > > It's important to kno

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

2020-12-09 Thread Sreyan Chakravarty
On Wed, Dec 9, 2020 at 5:31 AM Chris Murphy 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@lists.fedoraproject.org/message/XF7YO27N2XPWGLPMPUN76VFT3RW2KFYS/ Apologies, I missed that.

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

2020-12-09 Thread Sreyan Chakravarty
On Tue, Dec 8, 2020 at 9:30 PM Qiyu Yan wrote: > Since swapfile should always be NOCOW, while doing snapshot the subvol > containing the file will definitely make it COW. You may want to put > swapfile to a separate subvol. > Yes, you are right. I just snapshotted my root, and restored the snap

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

2020-12-08 Thread Chris Murphy
On Tue, Dec 8, 2020 at 11:14 AM Garry T. Williams wrote: > > On Tuesday, December 8, 2020 1:02:19 PM EST Sreyan Chakravarty wrote: > > How would you verify if a file is CoW in BTRFS? > > It's not btrfs-specific, but use the lsattr(1) command. E.g., > > garry@gtw$ lsattr .local/share/akonadi/d

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

2020-12-08 Thread Chris Murphy
On Tue, Dec 8, 2020 at 5:53 AM Sreyan Chakravarty wrote: > > On Mon, Dec 7, 2020 at 3:43 PM Chris Murphy wrote: >> >> >> This isn't a great location for a swapfile on btrfs because you can't ever >> snapshot /. > > > You never said why it was not possible to snapshot /. > > Why is that ? I refe

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

2020-12-08 Thread Garry T. Williams
On Tuesday, December 8, 2020 1:02:19 PM EST Sreyan Chakravarty wrote: > How would you verify if a file is CoW in BTRFS? It's not btrfs-specific, but use the lsattr(1) command. E.g., garry@gtw$ lsattr .local/share/akonadi/db_data/ibdata1 ---C .local/share/akonadi/db_data/

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

2020-12-08 Thread Sreyan Chakravarty
On Tue, 8 Dec 2020, 9:30 pm Qiyu Yan, wrote: > Since swapfile should always be NOCOW, while doing snapshot the subvol > containing the file will definitely make it COW. You may want to put > swapfile to a separate subvol. > How would you verify if a file is CoW in BTRFS? > _

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

2020-12-08 Thread Qiyu Yan
Sreyan Chakravarty 于2020年12月8日周二 下午8:53写道: > > On Mon, Dec 7, 2020 at 3:43 PM Chris Murphy wrote: >> >> >> This isn't a great location for a swapfile on btrfs because you can't ever >> snapshot /. > > > You never said why it was not possible to snapshot /. Since swapfile should always be NOCOW,

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

2020-12-08 Thread Sreyan Chakravarty
On Mon, Dec 7, 2020 at 3:43 PM Chris Murphy wrote: > > This isn't a great location for a swapfile on btrfs because you can't ever > snapshot /. > You never said why it was not possible to snapshot /. Why is that ? -- Regards, Sreyan Chakravarty ___

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

2020-12-07 Thread Sreyan Chakravarty
On Mon, Dec 7, 2020 at 3:43 PM Chris Murphy wrote: > > The more predictable arrangement is a swap partition. > I did it. The problem was that btrfs_map_physical script will actually output the offset in bytes. I had to divide by my block size 4096. So the correct resume_offset is = 147455098