@BertN45 re BTRFS. Currently I use Ubuntu 22.04. In the past years I uses EXT, then BTRFS, then Ubuntu ZFS. Original use of BTRFS was years ago and after a couple “data losses” I reinstalled my backups to an Ubuntu ZFS system… Worked really well but I was hitting a wall with adding more storage, and frankly some of the complexity in areas.
I’d kept following the progress of BTRFS (beyond the raid 5/6 write hole issue) and they’ve made great improvements in it. As you’re probably aware several Distro’s now default to BTRFS.
A couple months ago I found this article
https://www.lorenzobettini.it/2022/10/timeshift-and-grub-btrfs-in-ubuntu/
Also, two important (to me) configuration/setup articles:
To have GRUB boot off of a BTRFS partition look at GRUB-BTRFS on Github.
For use of TimeShift to auto create BTRFS snapshots whenever you execute
** “$ sudo apt install/remove/purge”** etc
timeshift-autosnap-apt
Expanding the BTRFS File System is super easy when adding new disks/SSD.
btrfs filesystem show
gives you a list of all the btrfs filesystems on the systems and which devices they include.
btrfs device add
is used to add new devices to a mounted filesystem.
btrfs balance
can balance (restripe) the allocated extents across all of the existing devices. For example, with an existing filesystem mounted at /mnt
, you can add the device /dev/sdc
to it with:
$ sudo btrfs device add /dev/sdc /mnt
at this point we have added our device to the filesystem, but all of the metadata and data are still stored on the original device(s). The filesystem can be balanced to spread the extents across all the devices.
$ btrfs balance start /mnt
The btrfs balance
operation will take some time. It reads in all of the file system data and metadata and rewrites it across all the available devices.
Depending on the usage scenario that is not needed, one example would be adding a new device to a RAID 1 filesystem whose existing devices still have enough space left. However, in other cases a balancing might be needed.
This has been working great for me.
Added a 2nd 2TB NVME to my mobo and used “btrfs device add/balance etc” and shazam I had an ~4TB BTRFS file system.
Including booting from BTRFS!
Ubuntu’s ZFS did work really well. Its just BTRFS is already part of the Linux Kernel!