Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

BTRFS check errors

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
papalexo
Posts: 1
Joined: 2017-04-17 20:36

BTRFS check errors

#1 Post by papalexo »

Hello,

I am getting some errors when I run "btrfs check". The system appears to be running normally, the filesystem is mounting fine but I would like to understand and ideally get rid of those errors/warnings as they seem to be increasing in number.

By googling around I did not find a solution so any help is much appreciated.

Code: Select all

# uname -a
Linux pizza 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1 (2016-12-30) x86_64 GNU/Linux
# btrfs --version
Btrfs v3.17
# btrfs   check /dev/sda
Checking filesystem on /dev/sda
UUID: 7f984f61-3512-44d7-90c4-810856c40007
checking extents
checking free space cache
checking fs roots
checking csums
checking root refs
checking quota groups
Ignoring qgroup relation key 259
Ignoring qgroup relation key 1977
Ignoring qgroup relation key 1981
     [ additional "Ignoring qgroup relation key ..." lines deleted ]
Ignoring qgroup relation key 567172078071971842
Ignoring qgroup relation key 567172078071971842
Ignoring qgroup relation key 567172078071971842
Ignoring qgroup relation key 567172078071971843
Ignoring qgroup relation key 567172078071971844
     [ additional "Ignoring qgroup relation key ..." lines deleted ] 
Counts for qgroup id: 1990 are different
our:            referenced 132918099968 referenced compressed 132918099968
disk:           referenced 132918099968 referenced compressed 132918099968
our:            exclusive 132918099968 exclusive compressed 132918099968
disk:           exclusive 132918116352 exclusive compressed 132918116352
diff:           exclusive -16384 exclusive compressed -16384
Counts for qgroup id: 4802 are different
our:            referenced 16384 referenced compressed 16384
disk:           referenced 2551808 referenced compressed 2551808
diff:           referenced -2535424 referenced compressed -2535424
our:            exclusive 16384 exclusive compressed 16384
disk:           exclusive 16384 exclusive compressed 16384
Counts for qgroup id: 4803 are different
our:            referenced 16384 referenced compressed 16384
disk:           referenced 2551808 referenced compressed 2551808
diff:           referenced -2535424 referenced compressed -2535424
our:            exclusive 16384 exclusive compressed 16384
disk:           exclusive 16384 exclusive compressed 16384
found 5231005719315 bytes used err is 0
total csum bytes: 5054309044
total tree bytes: 6340247552
total fs tree bytes: 371965952
total extent tree bytes: 155222016
btree space waste bytes: 758581142
file data blocks allocated: 13842248798208
 referenced 11070457643008
extent buffer leak: start 97271808 len 16384
extent buffer leak: start 1729806336 len 16384
extent buffer leak: start 100663296 len 16384
extent buffer leak: start 1730805760 len 16384
    [ additional "extent buffer leak: start 1730805760 len 16384" lines deleted ]
Many thanks,
George

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: BTRFS check errors

#2 Post by pylkko »

Are you aware of the fact that the btrfs wiki written by kernel.org (https://btrfs.wiki.kernel.org/index.php/Btrfsck) states that you should use btrfs check only if nothing else works on a unmounted device? Are you aware that the same source warns against using it with any kernel previous to 4.0? IIRC the btrfs on Jessie cannot even do autobalance (introduced in 3.18 I think).

Have you read Marc Merlin's (btrfs developer) post on how to fix btrfs systems? This is also linked to in the documentation mentioned above:
http://marc.merlins.org/perso/btrfs/pos ... epair.html

Post Reply