public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Marc MERLIN <marc@merlins.org>
To: Josef Bacik <jbacik@fb.com>
Cc: "Jakub Klinkovský" <j.l.k@gmx.com>, linux-btrfs@vger.kernel.org
Subject: Re: btrfs scrub process prevents system suspend
Date: Thu, 20 Mar 2014 13:19:43 -0700	[thread overview]
Message-ID: <20140320201943.GD18959@merlins.org> (raw)
In-Reply-To: <532B0999.3060605@fb.com>

On Thu, Mar 20, 2014 at 11:30:33AM -0400, Josef Bacik wrote:
> Yeah there's a way to make suspend run commands while it goes down, 
> you'll want to make it do btrfs scrub cancel on your btrfs fses.  If you 
> search the archives you'll see we've covered this recently and the guy 
> posted the script he was using.  Thanks,

I've started putting some of the recent stuff I've written and found out in
blog posts so that google can index them more easily.

This one has my btrfs scrub script and sec.conf to catch errors that btrfs
reports to syslog that that most would miss:
http://marc.merlins.org/perso/btrfs/post_2014-03-19_Btrfs-Tips_-Btrfs-Scrub-and-Btrfs-Filesystem-Repair.html
(also explains the different data recovery strategy and why you don't really
need fsck)

Then this one deals specifically with cancelling btrfs scrubs before going
to sleep:
http://marc.merlins.org/perso/btrfs/post_2014-03-20_Btrfs-Tips_-ACPI-S3-Sleep-aka-Suspend-And-Btrfs-Scrub.html
My guess is that pause/resume might be enough, I just haven't spent the time
on doing that yet.

Cheers,
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  

  reply	other threads:[~2014-03-20 20:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-20 15:21 btrfs scrub process prevents system suspend Jakub Klinkovský
2014-03-20 15:30 ` Josef Bacik
2014-03-20 20:19   ` Marc MERLIN [this message]
2014-03-20 15:31 ` George Eleftheriou
2014-03-20 16:37   ` Jakub Klinkovský

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=20140320201943.GD18959@merlins.org \
    --to=marc@merlins.org \
    --cc=j.l.k@gmx.com \
    --cc=jbacik@fb.com \
    --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