From: Niklas Schnelle <niklas.schnelle@gmail.com>
To: Duncan <1i5t5.duncan@cox.net>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Can't remove empty directory after kernel panic, no errors in dmesg
Date: Sat, 7 Dec 2013 12:37:05 +0000 [thread overview]
Message-ID: <CADdntNt_5yvz0KC3StkJ0sOEw55oHWq4fV0qfOLaXymrYWOLUA@mail.gmail.com> (raw)
In-Reply-To: <pan$4b17c$7a4e1e36$4569b4d4$d3dc2dcf@cox.net>
Ok, so I tried btrfsck from a live stick and I got the following:
After btrfsck --repair the errors are displayed again though.
btrfsck ./btrfsroot
Checking filesystem on ./btrfsroot
UUID: 2966e7fc-22dd-414a-9197-ec512d94a622
checking extents
checking free space cache
cache and super generation don't match, space cache will be invalidated
checking fs roots
root 470 inode 60984 errors 200
root 470 inode 62463 errors 200
root 470 inode 62522 errors 200
root 470 inode 62536 errors 200
root 470 inode 62561 errors 200
root 470 inode 62594 errors 200
root 470 inode 68067 errors 400
root 470 inode 318806 errors 400
root 470 inode 318814 errors 400
root 470 inode 653218 errors 400
root 474 inode 60984 errors 200
root 474 inode 62463 errors 200
root 474 inode 62522 errors 200
root 474 inode 62536 errors 200
root 474 inode 62561 errors 200
root 474 inode 62594 errors 200
found 38006717310 bytes used err is 1
total csum bytes: 114009592
total tree bytes: 2296799232
total fs tree bytes: 2007769088
total extent tree bytes: 148426752
btree space waste bytes: 525760756
file data blocks allocated: 221531045888
referenced 176664707072
Btrfs v0.20-rc1
On Sat, Dec 7, 2013 at 11:23 AM, Duncan <1i5t5.duncan@cox.net> wrote:
> Niklas Schnelle posted on Sat, 07 Dec 2013 11:36:45 +0100 as excerpted:
>
>> Hi List,
>>
>> so first the basics. I'm running Arch Linux with 3.13-rc2, btrfs-progs
>> 0.20rc1.3-2 from the repo and I'm using a SSD.
>> So I was having kernel panics with my USB 3.0 Gigabit card and was
>> trying to get a panic output. These panics are intermittent and most
>> often happen while using Chromium. Anyway so my system paniced while I
>> was in Chromium.
>> After the reboot Chromium reported that its preferences are corrupted,
>> thankfully I've both backups and an older snapshot. So I wanted to copy
>> over my ~/.config/chromium from the snapshot.
>> However I couldn't delete that directory, rm -rf reported it to not be
>> empty. Renaming worked via "mv chromium bad" but now I can't delete the
>> bad directory, this is the output:
>> http://pastebin.com/FWTPGGH1
>>
>> any idea how to get that directory deleted or how to obtain more
>> information?
>
> That sort of behavior is a(n almost[1]) sure sign of filesystem
> corruption. On a normal filesystem, you'd fsck it and hope that fixed
> the errors, and you can try btrfsck too, first without the --repair
> option, just to see what it gives you, then if you want to risk it
> (btrfsck still not being fully tested yet, see the manpage), with the
> option.
>
> But before you try that repair option, you can try a few other things
> first. Here's a link to a post with a list of things to try, in the
> order of least to greatest risk. (It that case IIRC the filesystem
> wouldn't mount at all, so the problem was worse. But the point is,
> there's other things you can try first -- btrfsck --repair isn't always
> the first recommended option.)
>
> http://permalink.gmane.org/gmane.comp.file-systems.btrfs/27999
>
> Meanwhile, FWIW I have my btrfs filesystems (also on ssd, actually dual
> SSD in btrfs raid1 mode) split up into independent filesystems on
> separate partitions, so all my data eggs aren't in the same basket, and
> recovery from one going bad isn't so difficult. As a result, since most
> of it's still readable, I'd probably first do a scrub (raid1 mode both
> data and metadata so hopefully one copy is good), then if that didn't
> work I'd ensure my backups were current, then do a balance and/or btrfsck
> --repair, hoping that would fix it. If that didn't fix it, I'd probably
> simply blow it away and restore from backup. Since I have things splitup
> into multiple independent filesystems, the biggest is only double-digit
> gigs, and being on SSD, doing a mkfs.btrfs on the partition automatically
> does a trim/discard on the entire partition, zeroing it out, and copying
> over the tens of gigs from the backup will only take a few minutes. It's
> not like the multiple TB btrfs filesystems on spinning rust I see people
> reporting as taking a good fraction of a day or longer.
>
> ---
> [1] Almost: Barring something like selinux or the like, where root is
> /not/ necessarily all powerful! I also once had problems getting
> something to execute, even tho execute permissions were set... until I
> remembered that partition was mounted noexec! Of course the equivalent
> here would be a read-only mount, but that can't be it or you'd not have
> been able to rename/move the directory, either.
>
> --
> Duncan - List replies preferred. No HTML msgs.
> "Every nonfree program has a lord, a master --
> and if you use the program, he is your master." Richard Stallman
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-12-07 12:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-07 10:36 Can't remove empty directory after kernel panic, no errors in dmesg Niklas Schnelle
2013-12-07 11:23 ` Duncan
2013-12-07 12:37 ` Niklas Schnelle [this message]
2013-12-07 13:59 ` Duncan
2013-12-07 15:01 ` Niklas Schnelle
2013-12-07 15:35 ` Niklas Schnelle
2013-12-07 15:37 ` Niklas Schnelle
2013-12-07 22:30 ` Chris Murphy
[not found] ` <CADdntNuhrD8Dr3qSDXN3JbdJK8SFwmj_r5o0_k30EsfjUOzkGg@mail.gmail.com>
2013-12-09 20:21 ` Chris Murphy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADdntNt_5yvz0KC3StkJ0sOEw55oHWq4fV0qfOLaXymrYWOLUA@mail.gmail.com \
--to=niklas.schnelle@gmail.com \
--cc=1i5t5.duncan@cox.net \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).