Skip to content

Balance failed with status -2, now the file system shows csum errors #545

@simonwaid

Description

@simonwaid

I tried to balance a raid1 array. The balance failed with status -2

Now, when copying data to the file system I get the following in dmesg:

[  986.872832] BTRFS critical (device sda1): corrupt leaf: root=7 block=5758685151232 slot=1, csum end range (5848702070784) goes beyond the start range (5848701284352) of the next csum item
[  986.872840] BTRFS info (device sda1): leaf 5758685151232 gen 82170 total ptrs 6 free space 8129 owner 7
[  986.872841] 	item 0 key (18446744073709551606 128 5848693952512) itemoff 11967 itemsize 4316
[  986.872842] 	item 1 key (18446744073709551606 128 5848698372096) itemoff 8355 itemsize 3612
[  986.872843] 	item 2 key (18446744073709551606 128 5848701284352) itemoff 8351 itemsize 4
[  986.872844] 	item 3 key (18446744073709551606 128 5848701288448) itemoff 8339 itemsize 12
[  986.872845] 	item 4 key (18446744073709551606 128 5848701300736) itemoff 8331 itemsize 8
[  986.872846] 	item 5 key (18446744073709551606 128 5848702070784) itemoff 8279 itemsize 52
[  986.872847] BTRFS error (device sda1): block=5758685151232 write time tree block corruption detected
[  986.895795] BTRFS: error (device sda1) in btrfs_commit_transaction:2436: errno=-5 IO failure (Error while writing out transaction)
[  986.895809] BTRFS info (device sda1: state E): forced readonly
[  986.895815] BTRFS warning (device sda1: state E): Skipping commit of aborted transaction.
[  986.895820] BTRFS: error (device sda1: state EA) in cleanup_transaction:1983: errno=-5 IO failure

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcheckChanges in btrfs check

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions