Skip to contentSkip to conversation

btrfs filesystem for /home has become readonly

DISCUSSION Bob Williams 1 participant 2 messages Apr 25, 2015 Btrfs file system

lore
Share & tools
lore
#0 lore raw

My system is openSUSE 13.2, using kernel 3.16.7-21-desktop. I recently had to reinstall the system, since when /home has become readonly. /home is a btrfs raid1 array, mirroring both data and metadata.

btrfs check run on unmounted /home gives line after line of parent transid verification failures. The last few lines are retyped below (I'm sending this from a different machine):

...
parent transid verify failed on 222388969472 wanted 658362 found 656682 parent transid verify failed on 4028227584 wanted 658356 found 657902 root 2778 inode 3051948 errors 400, nbytes wrong
warning line 2104
found 548489650966 bytes used err is 1
total csum bytes: 1166534872
total tree bytes: 2437394432
total fs tree bytes: 803016704
total extent tree bytes: 149839872
btree space waste bytes: 443944348
file data blocks allocated: 3915207680000
referenced 1695262269440
Btrfs v3.16.2+20141003
:~ #

How can I repair this filesystem?

Many thanks

Signature · 1 line
Bob Williams
#1 lore raw
Quoted 24 lines · Bob Williams

My system is openSUSE 13.2, using kernel 3.16.7-21-desktop. I recently had to reinstall the system, since when /home has become readonly. /home is a btrfs raid1 array, mirroring both data and metadata.

btrfs check run on unmounted /home gives line after line of parent transid verification failures. The last few lines are retyped below (I'm sending this from a different machine):

...
parent transid verify failed on 222388969472 wanted 658362 found 656682 parent transid verify failed on 4028227584 wanted 658356 found 657902 root 2778 inode 3051948 errors 400, nbytes wrong
warning line 2104
found 548489650966 bytes used err is 1
total csum bytes: 1166534872
total tree bytes: 2437394432
total fs tree bytes: 803016704
total extent tree bytes: 149839872
btree space waste bytes: 443944348
file data blocks allocated: 3915207680000
referenced 1695262269440
Btrfs v3.16.2+20141003
:~ #

Quoted 3 lines

How can I repair this filesystem?

Many thanks

The results of btrfs check seem to be the same, whichever device I run the check on. I presume that's because it's raid1, and the filesystem is distributed across both devices. Before this problem arose, I was running scrub once a week.

What is the current recommendation regarding btrfs check --repair?

Signature · 1 line
Bob Williams