Hi,
Anyone here knows more about BTRFS and netdata
?
My syslog is flooded with this messages:
err netdata[8236]: BTRFS: failed to read '/sys/fs/btrfs/6157fa16-e817-45cd-9a4a-4999373b1cc7/allocation/data/total_bytes'
I have a SSD mounted in /srv
output of blkid
root@turris:~# blkid
/dev/mmcblk0p1: UUID=“6157fa16-e817-45cd-9a4a-4999373b1cc7” UUID_SUB=“e36f8e31-6232-4dc4-adb0-10f5dd5f8267” TYPE=“btrfs” PARTUUID=“f2391160-01”
/dev/sda: LABEL=“srv” UUID=“7b335f8b-461d-4f6e-85c5-a09551efe2d4” UUID_SUB=“63999edd-f3cc-4501-84a3-f58a802dc87e” TYPE=“btrfs”
/dev/mmcblk0: PTUUID=“f2391160” PTTYPE=“dos”
Some ideas how to solve this? I am new to BTRFS.
Try this:
btrfs check --repair /dev/sda1
https://btrfs.wiki.kernel.org/index.php/Btrfsck#btrfs_check_--repair
EDIT: I will add that it is good to release (unmount).
I had to kill containers and unmount. And here is it. No errors found.
output of btrfs check --repair /dev/sda
root@turris:~# btrfs check --repair /dev/sda
enabling repair mode
Opening filesystem to check...
Checking filesystem on /dev/sda
UUID: 7b335f8b-461d-4f6e-85c5-a09551efe2d4
[1/7] checking root items
Fixed 0 roots.
[2/7] checking extents
No device size related problem found
[3/7] checking free space cache
cache and super generation don't match, space cache will be invalidated
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
found 25080356864 bytes used, no error found
total csum bytes: 5384840
total tree bytes: 194609152
total fs tree bytes: 179421184
total extent tree bytes: 9175040
btree space waste bytes: 33074234
file data blocks allocated: 24887209984
referenced 24885628928
Thx! I also check with the parameter --check-data-csum and this poped up:
...
[3/7] checking free space cache
cache and super generation don't match, space cache will be invalidated
...
And BAM! Fixed it with:
btrfs check --clear-space-cache v1 /dev/sda
Now mounting it again and see if it helps…
EDIT: Nope the error is still there.
But it’s weird that the partition is under /dev/sda not /dev/sda1. I formatted it with Foris Storage Plugin maybe that’s why.
Other ideas?