Results 1 to 9 of 9

Thread: How to recover from segfaulting btrfs ?

  1. #1
    Join Date
    Nov 2009
    Location
    Bangalore,India
    Posts
    74

    Question How to recover from segfaulting btrfs ?

    I am running latest Tumbleweed and latest btrfs(4.14.1).

    Yesterday night,I left the system for a big update of 300+ packages, may be that included btrfs update too.Today morning, update was succefully-finished, but I felt slow response, 'top' showed btrfs @ 25% load and then come down,I rebooted cleanly. While going down, it was not normal and the system could not bring up login page.

    The root file system is corrupt and an attempt to do, 'btrfs check --repair /dev/sda2 ' ends in segfault. Just 'btrfs check /dev/sda2 ' produces no segfault.I have tried in a 'Rescue' environment and booting to a Maintenance environment.On both occssions, repair attempt segfaults.

    I have done quite an amount of re-search on recovery options,I have run 'badblocks' and then run repair.I have tried 'mount -o recovery....', 'zero-log' et all as suggested at different places, but no good.

    Now my questions,

    1. Is it even possible to bring this partition (sda2-btrfs) to a working stage ? If possible,I want to put some effort there as complete re-install with later codec installation,MS font installation, font anti-aliasing, various networking and applications details are very painful.

    I am comfortable with baisc command-line.

    Thanks in advance to any help.

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,925
    Blog Entries
    14

    Default Re: How to recover from segfaulting btrfs ?

    Not funny. Can you mount the btrfs filesystem when booting from an install medium?
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3
    Join Date
    Nov 2009
    Location
    Bangalore,India
    Posts
    74

    Default Re: How to recover from segfaulting btrfs ?

    @knurpht : No. It cannot be mounted even in a live environment. It looks like, I am condemned to re-install by btrfs ! . Thank you.

  4. #4

    Default Re: How to recover from segfaulting btrfs ?

    Quote Originally Posted by pbhat View Post
    @knurpht : No. It cannot be mounted even in a live environment. It looks like, I am condemned to re-install by btrfs ! . Thank you.
    The definition of insanity is doing the same thing and expecting a different result. Try ext4 for all your filesystems instead of hybrid mix of xfs + btrfs.

  5. #5
    Join Date
    Aug 2008
    Location
    Brazil
    Posts
    3,240

    Default Re: How to recover from segfaulting btrfs ?

    Did you rule out hardware, like a failing HDD or SSD? What does smart report?

  6. #6

    Default Re: How to recover from segfaulting btrfs ?

    I see I'm not the only one. I had the exact same issue after updating yesterday. My system did not want to shut down normally, and when it finally did, it would not come back up. I too had btrfs check --repair end in a segfault, and I too just reinstalled. I just bought my SSD new in December, and I highly doubt it is the cause here.

  7. #7

    Default Re: How to recover from segfaulting btrfs ?

    So not only is the btrfs filesystem hosed, but also the btrfs check tool is not robust ...

  8. #8
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,357
    Blog Entries
    15

    Default Re: How to recover from segfaulting btrfs ?

    Quote Originally Posted by dralanmage View Post
    I see I'm not the only one. I had the exact same issue after updating yesterday. My system did not want to shut down normally, and when it finally did, it would not come back up. I too had btrfs check --repair end in a segfault, and I too just reinstalled. I just bought my SSD new in December, and I highly doubt it is the cause here.
    Hi
    Not a Samsung SSD? No issues seen with an OCZ SSD here (MacBook3,1) up to kernel 4.15.0, on both my Tumbleweed systems (20180205) running mq-deadline (SSD) and bfq (HDD) for schedulers.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  9. #9

    Default Re: How to recover from segfaulting btrfs ?

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Not a Samsung SSD? No issues seen with an OCZ SSD here (MacBook3,1) up to kernel 4.15.0, on both my Tumbleweed systems (20180205) running mq-deadline (SSD) and bfq (HDD) for schedulers.
    I have two machines, each with a Samsung SSD. My desktop is the one that tanked, but my laptop is fine so far. I can't confirm this because my root partition was completely ruined and I had to reinstall, but my suspicion is that the scheduled btrfs balancing task occurred while I was shutting down, which might explain why my shutdown was not normal (and OP mentioned something similar happening). If that's the case, then it might be possible for root filesystem corruption if you are unlucky enough to shut down when your system starts btrfs balancing.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •