Re: Swap on BTRFS

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

 



On Fri, 6 Nov 2020 at 08:42, Patrick O'Callaghan <pocallaghan@xxxxxxxxx> wrote:
On Fri, 2020-11-06 at 20:27 +0800, Qiyu Yan wrote:
> Patrick O'Callaghan <pocallaghan@xxxxxxxxx> 于2020年11月6日周五 下午8:14写道:
> >
> > On Fri, 2020-11-06 at 11:18 +0000, Patrick O'Callaghan wrote:
> > > On Fri, 2020-11-06 at 05:43 +0000, Qiyu Yan wrote:
> > > > You can use swapfile on btrfs with nocow
> > > > [...]
> > > > https://wiki.archlinux.org/index.php/btrfs#Swap_file for instructions
> > >
> > > Great. I was actually wondering about precisely that, so I'm glad to
> > > see it's supported with the right incantations.
> >
> > Trying to follow the instructions in the above URL, but clearly I'm
> > misunderstanding something:
> >
> > # btrfs sub create /SWAP
> > Create subvolume '//SWAP'
> > # btrfs property set /SWAP compression no
> > # btrfs sub show /SWAP
> > root/SWAP
> >         Name:                   SWAP
> >         UUID:                   1d4d839a-fd4e-d345-8d3f-ea858af71982
> >         Parent UUID:            -
> >         Received UUID:          -
> >         Creation time:          2020-11-06 11:41:37 +0000
> >         Subvolume ID:           1311
> >         Generation:             14657
> >         Gen at creation:        14547
> >         Parent ID:              257
> >         Top level ID:           257
> >         Flags:                  -
> >         Snapshot(s):
> > # cd /SWAP
> > # truncate -s 0 ./swapfile
> > # chattr +C /SWAP
> > chattr: Invalid argument while setting flags on /SWAP
> Try setting +C flag on the file rather than the subvolume itself

# chattr +C swapfile
chattr: Invalid argument while setting flags on swapfile

Mybe we are no lnpger meant to use chattr: Manual page btrfs-property(8) says:

"btrfs property provides an unified and user-friendly method to tune different btrfs 
properties instead of using the traditional method like chattr(1) or lsattr(1)."

-- 
George N. White III

_______________________________________________
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