I reformatted the 6TB volume, and filled it with data (3.5TB). Yesterday there 
was a power failure and the partition became corrupted.
btrfsck 0.19+20120328-2ubuntu1 used all available memory (of 6GB present) and 
got killed by OOM:
...
ref mismatch on [5606072983552 8192] extent item 1, found 0
Incorrect local backref count on 5606072983552 root 4095 owner 14571496 offset 
0 found 0 wanted 1 back 0x846449d0
backpointer mismatch on [5606072983552 8192]
owner ref check failed [5606072983552 8192]
Errors found in extent allocation tree
checking fs roots
Killed

I then added 2GB and after using 6.5GB of memory, the btrfsck managed to 
complete, but it did not fix the filesystem:
Errors found in extent allocation tree
checking fs roots
checking root refs
found 3304564289536 bytes used err is 0
total csum bytes: 3195312740
total tree bytes: 30077300736
total fs tree bytes: 24014831616
btree space waste bytes: 7517736113
file data blocks allocated: 3557121048576
 referenced 3557121048576
Btrfs Btrfs v0.19

Is there a special flag for btrfsck to fix the filesystem?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/992480

Title:
  fsck.btrfs of a 1TB volume triggers OOM kill on a 1GB RAM machine.
  (32-bit)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/btrfs-tools/+bug/992480/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to