Re: BTRFS failure after resume from hibernate

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

 




On 2020/1/20 下午10:45, Robbie Smith wrote:
> I put my laptop into hibernation mode for a few days so I could boot
> up into Windows 10 to do some things, and upon waking up BTRFS has
> borked itself, spitting out errors and locking itself into read-only
> mode. Is there any up-to-date information on how to fix it, short of
> wiping the partition and reinstalling (which is what I ended up
> resorting to last time after none of the attempts to fix it worked)?
> The error messages in my journal are:
> 
> BTRFS error (device dm-0): parent transid verify failed on
> 223458705408 wanted 144360 found 144376

The fs is already corrupted at this point.

> BTRFS critical (device dm-0): corrupt leaf: block=223455346688 slot=23
> extent bytenr=223451267072 len=16384 invalid generation, have 144376
> expect (0, 144375]

This is one newer tree-checker added in latest kernel.

It can be fixed with btrfs check in this branch:
https://github.com/adam900710/btrfs-progs/tree/extent_gen_repair

But that transid error can't be repair, so it doesn't make much sense.

> BTRFS error (device dm-0): block=223455346688 read time tree block
> corruption detected
> BTRFS error (device dm-0): error loading props for ino 1032412 (root 258): -5
> 
> The parent transid messages are repeated a few times. There's nothing
> fancy about my BTRFS setup: subvolumes are used to emulate my root and
> home partition. No RAID, no compression, though the partition does sit
> beneath a dm-crypt layer using LUKS. Hibernation is done onto a
> separate swap partion on the same drive.

Please provide the output of "btrfs check" and kernel version.

Thanks,
Qu

> 
> This is the second time in six months this has happened on this
> laptop. The only other thing I can think of is that the laptop BIOS
> reported that the charger wasn't supplying the correct wattage, and I
> have no idea why it would do that—both laptop and charger are nearly
> brand-new, less than a year old. The laptop model is a Lenovo Thinkpad
> T470.
> 
> I've got backups, but reinstalling is a nuisance and I really don't
> want to spend a couple of days getting the laptop working again. I
> don't have a conveniently large drive lying around to mirror this one
> onto.
> 
> Robbie
> 

Attachment: signature.asc
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