Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6092

Troubleshooting • Re: OK - so what's going to annoy me next?

$
0
0
Just to add
wrong fs type, bad option, bad superblock on /dev/sdc1, missing codepage or helper program, or other error.


Again this is more to help others -

Code:

# umount /mnt/btrfs # btrfs check --clear-space-cache v1 /dev/device# mount /dev/device /mnt/btrfs -o space_cache=v2
https://wiki.tnonline.net/w/Btrfs/Space_Cache

and the why
Space Cache and the Free Space Tree (space_cache=v2)
There are two versions of the Space Cache, The original v1 and then the new modern v2, which is called free space tree.

On large filesystems (many terabytes) and with certain workloads, the performance of the v1 space cache may degrade drastically. This is why the new v2 implementation was created. It uses a new B-tree called the free space tree.

Starting with btrfs-progs 5.15, the free space tree is the default for all newly created filesystems.

Space cache is a filesystem wide option and it is not possible to change this per-subvolume.

It would have been really lovely if it had told me that my version was too old and wouldn't mount - I'm not sure who would have been responsible for that part - likely those that contrib to btrfs? regardless, apparently the bookworm pi OS no longer supports the older version without (possibly) a magic incantation, however the only resolution for me was to convert it to that above before I mounted it.

Again, I'm doing this now to help those that might encounter the same issue - but for me I'll never know what caused my X11 to die other than a 'sudo apt upgrade' after I turned everything wayland off.

Statistics: Posted by Nossieuk — Sun Dec 31, 2023 11:45 pm



Viewing all articles
Browse latest Browse all 6092

Trending Articles