linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Josef Bacik <josef@redhat.com>
To: David Woodhouse <dwmw2@infradead.org>
Cc: Chris Mason <chris.mason@oracle.com>, linux-btrfs@vger.kernel.org
Subject: Re: Updating RAID[56] support
Date: Fri, 30 Apr 2010 14:39:05 -0400	[thread overview]
Message-ID: <20100430183904.GC2223@localhost.localdomain> (raw)
In-Reply-To: <1272564366.3367.4143.camel@macbook.infradead.org>

On Thu, Apr 29, 2010 at 07:06:06PM +0100, David Woodhouse wrote:
> I've been looking again at the RAID5/RAID6 support, and updated the tree
> at git://git.infradead.org/users/dwmw2/btrfs-raid56.git#merged
> 
> At the moment, we limit writes to a single disk's worth at a time, which
> means we _always_ do the read-calculateparity-write cycle and suffer the
> traditional RAID 'write hole' problem.
> 
> We need to fix the upper layers so that it'll _always_ write a full
> stripe, which Chris has promised to do. When that's done, we can rip out
> the whole raid56_parity_write_partial() and raid_read_end_io() and
> raid_hack_mutex crap.
> 
> But first I needed to actually make the RAID code _cope_ with a full
> stripe at a time, which for some reason I hadn't already done. That's
> what this patch attempts to do.
> 
> (It also sets the stripe size to 4KiB/disk so that we can use it on a
> 4-disk RAID6 and be sure we'll only ever be asked to write either
> precisely one disk's worth as before, or the whole stripe -- I've not
> attempted to make it cope with anything in-between. That's a simple hack
> for short-term testing purposes, which needs to be done in mkfs.btrfs
> too.)
> 
> It seems to work, and recovery is successful when I mount the file
> system with -oro,degraded. But in read-write mode it'll oops (even
> without the below patch) because it's trying to _write_ to the degraded
> RAID6. Last time I was testing this, it wouldn't continue to write to
> that block group; it would allocate a new one which didn't include the
> missing disk. What changed?
> 

Maybe that block group isn't getting marked read only?  I'd need to see the oops
to know what was going on.  Thanks,

Josef

  reply	other threads:[~2010-04-30 18:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-29 18:06 Updating RAID[56] support David Woodhouse
2010-04-30 18:39 ` Josef Bacik [this message]
2010-04-30 20:00   ` David Woodhouse
2010-04-30 19:23 ` Roy Sigurd Karlsbakk
2010-05-04 14:55   ` Andrew Dunn

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=20100430183904.GC2223@localhost.localdomain \
    --to=josef@redhat.com \
    --cc=chris.mason@oracle.com \
    --cc=dwmw2@infradead.org \
    --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).