[Bug 992480] Re: fsck.btrfs of a 1TB volume triggers OOM kill on a 1GB RAM machine. (32-bit)

Arie Skliarouk skliarie at gmail.com
Mon Jun 25 16:00:45 UTC 2012


After some search I found that --repair flag of btrfsck would cause it
to try to fix the filesystem. Yet in my case btrfsck failed to do that:

# btrfsck --repair /dev/sda2
...
Incorrect local backref count on 51589234688 root 4095 owner 6854501 offset 0 found 0 wanted 1 back 0xa00a0980
backpointer mismatch on [51589234688 8192]
owner ref check failed [51589234688 8192]
ref mismatch on [51589242880 8192] extent item 1, found 0
repair deleting extent record: key 51589242880 168 8192
failed to repair damaged filesystem, aborting

I tried to zero log, but it did not help:
btrfs-zero-log /dev/sda2

Any ideas I can try before reformatting the partition and starting from
scratch?

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

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

Status in “btrfs-tools” package in Ubuntu:
  Confirmed

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

  Thats about all there is to say:

  sudo fsck -v /dev/sdd1
  fsck from util-linux 2.20.1
  fsck: Warning... fsck.btrfs for device /dev/sdd1 exited with signal 9.

  May  1 17:49:10 lifelesswks kernel: [639863.533203] Out of memory: Kill process 32192 (fsck.btrfs) score 846 or sacrifice child
  May  1 17:49:10 lifelesswks kernel: [639863.533210] Killed process 32192 (fsck.btrfs) total-vm:2555884kB, anon-rss:772228kB, file-rss:0kB

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




More information about the foundations-bugs mailing list