OpenMandrivaAssociation / distribution

OpenMandriva Lx is an exciting free Desktop Operating System that aims to cater to and interest first time and advanced users alike. It has the breadth and depth of an advanced system but is designed to be simple and straightforward in use.
https://openmandriva.org
7 stars 2 forks source link

Btrfs by default #2895

Open Conan-Kudo opened 1 year ago

Conan-Kudo commented 1 year ago

Description

Btrfs is an advanced filesystem included in the Linux kernel that provides a number of great capabilities (ssd optimizations, transparent compression, snapshots, fluid disk allocation, etc.). Notably, SUSE has been using it by default since 2014 and Fedora since 2020.

I believe changing to Btrfs by default for OpenMandriva will involve changing two things:

Additionally, we could look into preloading boot-to-snapshot capabilities, similar to what openSUSE, Garuda, and Kali have. That would require some tweaks to where the rpmdb and the dnfdb live to move them to /usr, but it's not out of the realm of possibility. With those tweaks, then we could use the snapper plugin for DNF for auto-snapshotting and pull in the SUSE grub patches for boot-to-snapshot.

References

tpgxyz commented 1 year ago

Hi @Conan-Kudo thanks for the suggestion. Indeed switching to btrfs is going to be improvement over the ext4 :)

davidebeatrici commented 1 year ago

https://www.phoronix.com/news/Btrfs-Discard-Tuning-Linux-6.3

saber716rus commented 1 year ago

there is only one caveat. There is an error and it is called: GRUB error: sparse file not allowed. there is a solution, both in manjara and Rosa linux. https://forum.manjaro.org/t/grub-error-sparse-file-not-allowed/20267

benbullard79 commented 1 year ago

I tried btrfs recently on my multi-boot desktop. OM's os-prober does not seem to work well with btrfs. I believe we need to fix this before considering btrfs as default fs for OMLx.

I am willing to test any possible fixes for this if anyone wants to work on this. I would like to see this issue fixed.

rugyada commented 1 year ago

As a Community driven distro, basically that implies anyone wishing to bring up btrfs as a default option needs to work on it and contribute to fix current issues. (TC meeting 2023-06-07)

saber716rus commented 1 year ago

As a Community driven distro, basically that implies anyone wishing to bring up btrfs as a default option needs to work on it and contribute to fix current issues. (TC meeting 2023-06-07)

I raised a question to the contributors of calamaris for marking disks on a subvoluve. https://github.com/calamares/calamares/issues/2130 But in kalamaris they redirected to another previously opened error.

https://github.com/calamares/calamares/issues/1580

benbullard79 commented 9 months ago

I'll start posting OM Issue Tracker reports on btrfs. Looks like a few things need to be resolved and we hope to resolve them in a way that does not disrupt OMLx users.

https://github.com/OpenMandrivaAssociation/distribution/issues/2921

https://github.com/OpenMandrivaAssociation/distribution/issues/2902

They all seem to revolve around btrfs not working well with grub2. I would hope if we replace grub2 with something else that something will be able to work with current users upgrading current systems.

Conan-Kudo commented 9 months ago

There are a few non-upstream patches for btrfs support in GRUB that resolve some of this. But also an easy fix is just putting /boot on ext4.

saber716rus commented 9 months ago

There are a few non-upstream patches for btrfs support in GRUB that resolve some of this. But also an easy fix is just putting /boot on ext4.

yes, this is also another solution.