I've forgot to add, that for compression, this, again, works only for newly 
created/accesses files only, so after adding compression to fstab (and reboot), 
you might want to run a defragmentation `sudo btrfs filesystem defragment -r 
<mount point>`.

There was a recent article about that too: 
https://fedoramagazine.org/working-with-btrfs-compression/

---
Best regards, Alex


------- Original Message -------
On Tuesday, May 2nd, 2023 at 12:04, Alex Gurenko <agure...@protonmail.com> 
wrote:


> There was an article back in the days of btrfs introduction that described 
> the process: https://fedoramagazine.org/convert-your-filesystem-to-btrfs/
> 
> I've used it myself without any issues back then, I would assume it's still 
> safe to do so now.
> 
> I ran it like this for a few more releases without issues, until I decided to 
> re-install fresh.
> 
> The only downside would probably be (please keep me honest here), the 
> defaults might not apply.
> 
> There are few things that are done on a fresh install, which will probably 
> won't apply on a converted system:
> 
> - COW (copy-on-write) disabled for /var/lib/libvirt/images
> - probably on other directories?
> - can be done manually with `chattr -R +C <path>` but it only works for new 
> files in said path, so you might need to move things out and back in
> 
> - enable compression by making sure fstab includes `,compress=zstd:1`
> - based on your position on async discard [0], you might want to add 
> `nodiscard` to fstab as well, but it seems to be okay with latest fixes 
> kernels 6.2.13+ or 6.3.0, at least on a desktop
> 
> [0] 
> https://discussion.fedoraproject.org/t/btrfs-discard-storm-on-fedora/79997/28
> 
> ---
> Best regards, Alex
> 
> 
> 
> 
> ------- Original Message -------
> On Tuesday, May 2nd, 2023 at 11:29, Paul Smith phh...@gmail.com wrote:
> 
> 
> 
> > Dear All,
> > 
> > I have always upgraded Fedora from the previously installed version.
> > Consequently, I still have ext4. To have btrfs, is it needed to do a
> > Fedora clean install?
> > 
> > Thanks in advance,
> > 
> > Paul
> > _______________________________________________
> > users mailing list -- users@lists.fedoraproject.org
> > To unsubscribe send an email to users-le...@lists.fedoraproject.org
> > 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@lists.fedoraproject.org
> > Do not reply to spam, report it: 
> > https://pagure.io/fedora-infrastructure/new_issue
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to