erroneous btrfs warning/error in the kernel log?
{"kernel":"4.14.121","hostname":"to","system":"ARMv7 Processor rev 1 (v7l)","model":"Turris Omnia","board_name":"armada-385-turris-omnia","release":{"distribution":"TurrisOS","version":"4.0-beta2","revision":"07918c2","target":"mvebu/cortexa9","description":"TurrisOS 4.0-beta2 07918c2"}}
- internal ssd with 2
btrfs
partitions configured asbftrfs raid1
- only one partition (sda3) gets mounted via fstab (mountpoint /srv)
config 'mount'
option target '/srv'
option label 'srv'
option uuid '67eccb2b-cc29-4414-966e-0ff205bb5d3f'
option enabled '1'
config 'mount'
option target '/mnt/sda4'
option uuid '67eccb2b-cc29-4414-966e-0ff205bb5d3f'
option enabled '0'
to my understanding bftrfs raid1
requires only 1 partition of the raid to be mounted by the OS and btrfs managing all partition consigned to the raid.
The kernel log reads:
[ 5.099490] sda: sda1 sda2 sda3 sda4
[ 13.716783] BTRFS: device label srv devid 2 transid 25313 /dev/sda4
[ 13.723630] BTRFS info (device sda4): disk space caching is enabled
[ 13.729914] BTRFS info (device sda4): has skinny extents
The following seems erroneous however:
[ 13.735757] BTRFS warning (device sda4): devid 1 uuid 9d3f01b6-b4f6-4ca4-a7b4-36d6f3509d13 is missing
[ 13.745020] BTRFS error (device sda4): failed to read the system array: -5
[ 13.861295] BTRFS error (device sda4): open_ctree failed
considering that the raid appears fully mounted and working just fine:
btrfs fi show
Label: none uuid: 1831a49e-3001-4e7e-b89f-0ec676763cb0
Total devices 1 FS bytes used 485.02MiB
devid 1 size 7.28GiB used 1.48GiB path /dev/mmcblk0p1Label: 'log' uuid: dc2d8d7b-f198-4f75-88c5-e4ed5079af8b
Total devices 1 FS bytes used 12.34MiB
devid 1 size 2.00GiB used 844.00MiB path /dev/sda2Label: 'srv' uuid: 67eccb2b-cc29-4414-966e-0ff205bb5d3f
Total devices 2 FS bytes used 3.64GiB
devid 1 size 463.49GiB used 5.01GiB path /dev/sda3
devid 2 size 463.54GiB used 5.01GiB path /dev/sda4
btrfs device usage /srv
/dev/sda3, ID: 1 Device size: 463.49GiB
Device slack: 0.00B
Data,RAID0: 4.00GiB
Metadata,RAID1: 1.00GiB
System,RAID1: 8.00MiB
Unallocated: 458.48GiB/dev/sda4, ID: 2 Device size: 463.54GiB
Device slack: 3.50KiB
Data,RAID0: 4.00GiB
Metadata,RAID1: 1.00GiB
System,RAID1: 8.00MiB
Unallocated: 458.53GiB
btrfs filesystem show /dev/sda3
Label: 'srv' uuid: 67eccb2b-cc29-4414-966e-0ff205bb5d3f
Total devices 2 FS bytes used 3.64GiB
devid 1 size 463.49GiB used 5.01GiB path /dev/sda3
devid 2 size 463.54GiB used 5.01GiB path /dev/sda4
btrfs check --force /dev/sda3
| btrfs check --force /dev/sda4
WARNING: filesystem mounted, continuing because of --force
Checking filesystem on /dev/sda3 | Checking filesystem on /dev/sda4
UUID: 67eccb2b-cc29-4414-966e-0ff205bb5d3f
checking extents
checking free space cache
checking fs roots
checking csums
checking root refs
found 3910221824 bytes used, no error found
total csum bytes: 3698576
total tree bytes: 120520704
total fs tree bytes: 109297664
total extent tree bytes: 6012928
btree space waste bytes: 24959410
file data blocks allocated: 3844587520
referenced 3746054144
btrfs filesystem df /srv
Data, RAID0: total=8.00GiB, used=3.53GiB
System, RAID1: total=8.00MiB, used=16.00KiB
Metadata, RAID1: total=1.00GiB, used=114.92MiB
GlobalReserve, single: total=512.00MiB, used=0.00B
Not sure if perhaps if these unset kernel settings might cause it?
# CONFIG_BTRFS_FS_CHECK_INTEGRITY is not set
# CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set
# CONFIG_BTRFS_ASSERT is not set