Linux Btrfs filesystem development
 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: Can't mount degraded. How to remove/add drives OFFLINE?
Date: Sat, 15 Aug 2015 07:49:40 +0800	[thread overview]
Message-ID: <55CE7E94.7090102@oracle.com> (raw)
In-Reply-To: <CAK7bmU8hWWVn0KxyKLPsmar2EzSKO_V5fYm5gDor=QycqzrfPQ@mail.gmail.com>



On 08/15/2015 02:12 AM, Timothy Normand Miller wrote:
> Sorry about that empty email.  I hit a wrong key, and gmail decided to send.
>
> Anyhow, my replacement drive is going to arrive this evening, and I
> need to know how to add it to my btrfs array.  Here's the situation:
>
> - I had a drive fail, so I removed it and mounted degraded.

that bit dangerous to do without the below patch. patch has more details 
why.

> - I hooked up a replacement drive, did an "add" on that one, and did a
> "delete missing".
> - During the rebalance, the replacement drive failed, there were OOPSes, etc.
> - Now, although all of my data is there, I can't mount degraded,
> because btrfs is complaining that too many devices are missing (3 are
> there, but it sees 2 missing).


This is addressed in the patch

   [PATCH 23/23] Btrfs: allow -o rw,degraded for single group profile


Thanks, Anand


> So I could use some help with cleaning up this mess.  All the data is
> there, so I need to know how to either force it to mount degraded, or
> add and remove devices offline.  Where do I begin?
>
> Also, doesn't it seem a bit arbitrary that there are "too many
> missing," when all of the data is there?  If I understand correctly,
> all four drives in my RAID1 should all have copies of the metadata,
> and of the remaining three good drives, there should be one or two
> copies of every data block.  So it's all there, but btrfs has decided,
> based on the NUMBER of missing devices, that it won't mount.
> Shouldn't it refuse to mount if it knows there is data missing?  For
> that matter, why should it even refuse in that case?  So some data
> might missing, so it should throw some errors if you try to access
> that missing data.  Right?
>
> Thanks!
>

  parent reply	other threads:[~2015-08-14 23:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-14 18:12 Can't mount degraded. How to remove/add drives OFFLINE? Timothy Normand Miller
2015-08-14 18:44 ` Chris Murphy
2015-08-14 19:03   ` Timothy Normand Miller
2015-08-14 19:49     ` Chris Murphy
2015-08-14 23:49 ` Anand Jain [this message]
2015-08-15  0:12   ` Timothy Normand Miller
2015-08-15  0:28     ` Anand Jain
2015-08-15  1:39       ` Chris Murphy
2015-08-15  2:32       ` Timothy Normand Miller
  -- strict thread matches above, loose matches on Subject: below --
2015-08-14 18:06 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=55CE7E94.7090102@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox