From: Rich Freeman <rich0@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Hard drive storage questions
Date: Tue, 5 May 2015 08:53:29 -0400 [thread overview]
Message-ID: <CAGfcS_=HW7eRJxrFb0FSR2Ct3dZiiiOigptBd01N9=ZC=YdyZQ@mail.gmail.com> (raw)
In-Reply-To: <20150505132147.744e4f2d@digimed.co.uk>
On Tue, May 5, 2015 at 8:21 AM, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Tue, 5 May 2015 13:05:55 +0100, Mick wrote:
>
>> During a backup of a home directory I noticed loads of Chromium and
>> Firefox crash/recovery files being copied over. However, I don't know
>> if this is a btrfs problem, or the fact that I had to forcefully shut
>> down KDE once or twice recently, because the desktop would not
>> logout/shutdown normally.
>
> Chromium saves its open tabs and reopens them after a reboot, even if it
> is shut down forcibly.
>
>> The fsck which ran when the machine rebooted did not revealed any
>> problems. Is there a different recommended way for checking for fs
>> errors?
>
> btrfs check - it needs the filesystem to be unmounted and has a repair
> option.
I don't think the chromium/firefox issues are in any way a sign of a
filesystem problem. Application crashing and filesystem errors are
completely different matters. If atop dumps core 14 times a day (as
it seems to love to do) btrfs just happily stores them in case I ever
want to look at them.
In general btrfs tends to do most of its fixing online. I'd only run
btrfs check if the filesystem is unmountable. I wouldn't trust it not
to do more harm than good. For a very long time it didn't even exist,
and btrfs is a bit different from most other filesystems in this
regard. btrfs doesn't complain if you mount it unclean - almost all
the recovery code is in the kernel and it will generally tidy up as it
goes. This is in contrast to many other filesystems that force you to
run fsck if they were not cleanly unmounted.
I'm not saying it is broken. I haven't really used it much. However,
for the most part btrfs was designed around doing most of its
operations online and these are probably the more mature code paths.
That said, btrfs check without the --repair option should be
read-only, so you can always try it. However, I wouldn't be surprised
at all if there are no problems with your filesystem (assuming you run
it after a clean shutdown). If there were any problems, btrfs should
have cleaned them up on your last mount. btrfs does not overwrite
data in-place in any case, so it is a bit like ext4 with data=journal
in normal operation. And that is what I like about btrfs (and the
same applies to zfs) - the basic design of the filesystem tends to
prioritize data integrity, and thus even with all my panics and
mounting problems with btrfs, I've always been able to recover, and at
every point I could at least mount the filesystems read-only and read
everything off of them. And a successful read on btrfs/zfs means that
the checksum matched, so the risk of corruption is fairly low.
--
Rich
next prev parent reply other threads:[~2015-05-05 12:53 UTC|newest]
Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-28 8:39 [gentoo-user] Hard drive storage questions Dale
2015-04-28 14:49 ` Francisco Ares
2015-04-28 15:01 ` Alan McKinnon
2015-04-28 15:24 ` Neil Bothwick
2015-04-28 17:38 ` Rich Freeman
2015-04-28 18:11 ` Neil Bothwick
2015-04-28 18:31 ` Rich Freeman
2015-04-28 18:41 ` Neil Bothwick
2015-04-28 22:02 ` [gentoo-user] " walt
2015-04-29 1:24 ` Rich Freeman
2015-04-29 6:20 ` Alan McKinnon
2015-04-29 14:31 ` Grant Edwards
2015-04-29 6:13 ` [gentoo-user] " Alan McKinnon
2015-04-29 7:52 ` Neil Bothwick
2015-05-04 7:39 ` Dale
2015-05-04 7:46 ` Neil Bothwick
2015-05-04 8:13 ` Mick
2015-05-04 8:26 ` Dale
2015-05-04 8:23 ` Dale
2015-05-04 10:31 ` Neil Bothwick
2015-05-04 10:40 ` Dale
2015-05-04 11:26 ` Neil Bothwick
2015-05-09 10:56 ` Dale
2015-05-09 12:59 ` Rich Freeman
2015-05-09 14:46 ` Todd Goodman
2015-05-09 18:16 ` Rich Freeman
2015-05-04 11:35 ` Rich Freeman
2015-05-04 18:42 ` Nuno Magalhães
2015-05-05 6:41 ` Alan McKinnon
2015-05-05 10:56 ` Rich Freeman
2015-05-05 11:33 ` Neil Bothwick
2015-05-05 12:05 ` Mick
2015-05-05 12:21 ` Neil Bothwick
2015-05-05 12:39 ` Mick
2015-05-05 12:53 ` Rich Freeman [this message]
2015-05-05 21:50 ` Neil Bothwick
2015-05-05 22:21 ` Bill Kenworthy
2015-05-05 22:33 ` Bill Kenworthy
2015-05-04 10:57 ` Alan Mackenzie
2015-04-28 15:02 ` Rich Freeman
2015-05-04 7:23 ` Dale
2015-05-05 3:01 ` Walter Dnes
-- strict thread matches above, loose matches on Subject: below --
2018-11-09 1:16 Dale
2018-11-09 1:31 ` Jack
2018-11-09 1:43 ` Dale
2018-11-09 2:04 ` Andrew Lowe
2018-11-09 2:07 ` Bill Kenworthy
2018-11-09 8:39 ` Neil Bothwick
2018-11-09 2:29 ` Rich Freeman
2018-11-09 8:17 ` Bill Kenworthy
2018-11-09 13:25 ` Rich Freeman
2018-11-09 9:02 ` J. Roeleveld
2018-11-11 0:45 ` Dale
2018-11-11 21:41 ` Wol's lists
2018-11-11 22:17 ` Dale
2018-11-09 9:24 ` Wols Lists
2015-04-27 7:41 Dale
2015-04-28 18:25 ` Daniel Frey
2015-04-28 21:23 ` Dale
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='CAGfcS_=HW7eRJxrFb0FSR2Ct3dZiiiOigptBd01N9=ZC=YdyZQ@mail.gmail.com' \
--to=rich0@gentoo.org \
--cc=gentoo-user@lists.gentoo.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