Asking for best solutions for making the transition of this.
Background is that some of my disks were created some time ago with btrfs-progs <=5.14 where the default was using "space cache v1"
On boot, there's some warnings regarding it:
USER@HOST:~ $ sudo dmesg | grep "space cach"
[ 8.686123] BTRFS info (device nvme1n1): disk space caching is enabled
[ 8.686312] BTRFS warning (device nvme1n1): space cache v1 is being deprecated and will be removed in a future release, please use -o space_cache=v2
[ 8.799068] BTRFS info (device sda1): disk space caching is enabled
[ 8.799273] BTRFS warning (device sda1): space cache v1 is being deprecated and will be removed in a future release, please use -o space_cache=v2
[ 9.047055] BTRFS info (device sdc1): disk space caching is enabled
[ 9.047290] BTRFS warning (device sdc1): space cache v1 is being deprecated and will be removed in a future release, please use -o space_cache=v2
[ 9.834824] BTRFS info (device sda2): disk space caching is enabled
[ 9.834826] BTRFS warning (device sda2): space cache v1 is being deprecated and will be removed in a future release, please use -o space_cache=v2
While the other's that were created more recent, and with btrfs-progs >= 5.15, now use as default, space cache v2 (free-space-tree):
USER@HOST:~ $ sudo dmesg | grep "space-tree"
[ 7.809409] BTRFS info (device sdf): using free-space-tree
[ 8.702583] BTRFS info (device sdb): using free-space-tree
[ 9.413756] BTRFS info (device sdd): using free-space-tree
Reading about it, it advises to umount the drives first and then, run several commands:
Btrfs's Space Cache and Free Space Tree | Forza's Ramblings
Since unmount my drives will require some (a lot of) work to unreference everything and also redo OR stop some parts (mergerfs pool, RAID1 that olds Nextcloud among other things), I ask:
1 - Is it viable to just use the mount editor pluging and add the option space_cache=v2 to the drives in question even though the above instructions tell to remove the v1 first?
2 - Or it's better to run a Live Distro and do it to the drives unmounted, as long as that Distro has a btrfs-progs version >= 5.15 ???
Reading further, it seems removing v1 and assigning v2 can take quite some time, depending on the size of the drive, so maybe it's better to stand fast and wait a while longer until the transition is really needed?!?
QuoteIMPORTANT! On very large filesystems, the first mount after changing Space Cache can take a long time. Usually several minutes, but there are reports of an hour or more for extreme cases with massive filesystems.