All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anand Jain <anand.jain@oracle.com>
To: Timothy Normand Miller <theosib@gmail.com>,
	Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: "delete missing" with two missing devices doesn't delete both missing, only does a partial reconstruction
Date: Sat, 15 Aug 2015 12:59:25 +0800	[thread overview]
Message-ID: <55CEC72D.4060503@oracle.com> (raw)
In-Reply-To: <CAK7bmU-a6W1UaPf31WargEGzQdWH7-GDN9Vd1h_1GnQwv-_FsQ@mail.gmail.com>


 > BTW, when this is all over with, how do I make sure there are really
 > two copies of everything?  Will a scrub verify this?  Should I run a
 > balance operation?

pls use 'btrfs bal profile and convert' to migrate single chunk (if any 
created when there were lesser number of RW-able devices) back to your 
desired raid1. Do this when all the devices are back online. Kindly note 
there is a bug in the btrfs VM that you won't be able to bring a device 
online with out unmount -> mount (I am working to fix). btrfs-progs will 
be wrong in this case don't depend too much on that.
So to understand inside of btrfs kernel volume I generally use:
     https://patchwork.kernel.org/patch/5816011/

In there if bdev is null it indicates device is scanned but not part of 
VM yet. Then unmount -> mount will bring device back to be part of VM.

 >> After applying Anand's patch, I was able to mount my 4-drive RAID1
 >> and bring a new fourth drive online.

 >> However, something weird happened
 >> where the first "delete missing" only deleted one missing drive and
 >> only did a partial duplication.  I've posted a bug report here:

that seems to be normal to me. unless I am missing something else / clarity.


Thanks, Anand

  reply	other threads:[~2015-08-15  4:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-15  3:29 "delete missing" with two missing devices doesn't delete both missing, only does a partial reconstruction Timothy Normand Miller
2015-08-15  3:41 ` Timothy Normand Miller
2015-08-15  4:59   ` Anand Jain [this message]
2015-08-15 12:51     ` Timothy Normand Miller
2015-08-15 13:13       ` Timothy Normand Miller
2015-08-15 13:15         ` Timothy Normand Miller
2015-08-15 13:24         ` Timothy Normand Miller

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=55CEC72D.4060503@oracle.com \
    --to=anand.jain@oracle.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=theosib@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.