Re: btrfs errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the reply!

On Tue, 13 Mar 2018 22:24:43 -0600, Chris Murphy
<lists@xxxxxxxxxxxxxxxxx> wrote:
> If you search the list for 'corrupt leaf bad key ordering' the top two
> causes are bad RAM and flaky power supply. These can be hard to narrow
> down.

	I will try to get new power supply to test as the current one have
about almost 10 years, so probably it this one the source of the problem.

> a. Make sure backups are up to date. Hopefully you can mount the
> volume read only

yes, i have updated backups and i can mount the filesystem without any
problem. I can always reformat the partition and restore, but i would
like to use this to learn how to repair btrfs partitions and help 
improving the btrfs if possible.

> b. Make sure you're using a recent btrfs-progs 

	Check! i'm using btrfs-progs v4.15.1,

> c. (optional) take a btrfs image before you do the repair because if
> something blows up, at least that will help a dev figure out why btrfs
> check blew up your file system.

	done! i was expecting a image with at least my used space ( ~40GB), 
but i got a 1GB file. Is that normal?


> But yes pretty good chance it can be fixed with 'btrfs check
> --repair' 

	After booting with a livecd and running a --repair with
btrfs-progs v4.15.1, it didn't look it have done almost anything to the
errors, running a new check still show mostly the same errors:

# btrfs check --force /dev/vdisk/root 
WARNING: filesystem mounted, continuing because of --force
Checking filesystem on /dev/vdisk/root
UUID: c6cbf25f-f020-4247-822d-d9a85ec3c09f
checking extents
parent transid verify failed on 4505600 wanted 12266 found 13304
parent transid verify failed on 4505600 wanted 12266 found 13304
Ignoring transid failure
leaf parent key incorrect 4505600
bad block 4505600
ERROR: errors found in extent allocation tree or chunk allocation
checking free space cache
checking fs roots
parent transid verify failed on 4505600 wanted 12266 found 13304
Ignoring transid failure
leaf parent key incorrect 4505600
parent transid verify failed on 4505600 wanted 12266 found 13304
Ignoring transid failure
leaf parent key incorrect 4505600
parent transid verify failed on 4505600 wanted 12266 found 13304
Ignoring transid failure
leaf parent key incorrect 4505600
parent transid verify failed on 4505600 wanted 12266 found 13304
Ignoring transid failure
leaf parent key incorrect 4505600
parent transid verify failed on 4505600 wanted 12266 found 13304
Ignoring transid failure
leaf parent key incorrect 4505600
parent transid verify failed on 4505600 wanted 12266 found 13304
Ignoring transid failure
leaf parent key incorrect 4505600
parent transid verify failed on 4505600 wanted 12266 found 13304
Ignoring transid failure
leaf parent key incorrect 4505600
parent transid verify failed on 4505600 wanted 12266 found 13304
Ignoring transid failure
leaf parent key incorrect 4505600
parent transid verify failed on 4505600 wanted 12266 found 13304
Ignoring transid failure
leaf parent key incorrect 4505600
parent transid verify failed on 4505600 wanted 12266 found 13304
Ignoring transid failure
leaf parent key incorrect 4505600
checking csums
parent transid verify failed on 4505600 wanted 12266 found 13304
Ignoring transid failure
checking root refs
ERROR: transid errors in file system
found 46024671232 bytes used, error(s) found
total csum bytes: 0
total tree bytes: 1035763712
total fs tree bytes: 980156416
total extent tree bytes: 55296000
btree space waste bytes: 194602932
file data blocks allocated: 44942737408
 referenced 59370504192

 
So looks like btrfs check --repair do not really know how to fix this

Thanks for the help
higuita
-- 
Naturally the common people don't want war... but after all it is the
leaders of a country who determine the policy, and it is always a 
simple matter to drag the people along, whether it is a democracy, or
a fascist dictatorship, or a parliament, or a communist dictatorship.
Voice or no voice, the people can always be brought to the bidding of
the leaders. That is easy. All you have to do is tell them they are 
being attacked, and denounce the pacifists for lack of patriotism and
exposing the country to danger.  It works the same in every country.
           -- Hermann Goering, Nazi and war criminal, 1883-1946

Attachment: pgps67yi6yKMK.pgp
Description: OpenPGP digital signature


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux