All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc MERLIN <marc@merlins.org>
To: Duncan <1i5t5.duncan@cox.net>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Cannot add device "is mounted" for unmounted drive that used to be in raidset that is mounted
Date: Mon, 24 Mar 2014 17:28:35 -0700	[thread overview]
Message-ID: <20140325002835.GE11533@merlins.org> (raw)
In-Reply-To: <pan$22ecd$ee1c4b0f$48d0cc59$d02dd1ad@cox.net>

On Mon, Mar 24, 2014 at 07:19:14PM +0000, Duncan wrote:
> Marc MERLIN posted on Sun, 23 Mar 2014 11:58:16 -0700 as excerpted:
> 
> > On Sun, Mar 23, 2014 at 11:09:07AM -0700, Marc MERLIN wrote:
> >> I found out that a drive that used to be part of a raid system that is
> >> mounted and running without it, btrfs apparently decides that the drive
> >> is part of the mounted raidset and in use.
> >> As a result, I had to eventually dd 0's over it, btrfs device scan, and
> >> finally I was able to use it again.
> > 
> > I filed a bug for this, it's a bit more minor, but worth fixing
> > eventually https://bugzilla.kernel.org/show_bug.cgi?id=72771
> 
> The reason for this is the device-scanning that btrfs does, detecting 
> btrfs superblocks in ordered to assemble filesystems from multiple 
> devices, etc.

Yep, and thanks for reminding me of wipefs.
However this was still a bug to say that a device was mounted when it sure
wasn't :)

I'm ok using -f because I didn't use wipefs, but being told "no you can't
reformat this because it's mounted", spending too long looking what in the
kernel would make it think so, and then realizing the check is wrong, isn't
as user friendly :)

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-25  0:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-23 18:09 Cannot add device "is mounted" for unmounted drive that used to be in raidset that is mounted Marc MERLIN
2014-03-23 18:58 ` Marc MERLIN
2014-03-24 19:19   ` Duncan
2014-03-25  0:28     ` Marc MERLIN [this message]
2014-03-31  4:07 ` Anand Jain

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=20140325002835.GE11533@merlins.org \
    --to=marc@merlins.org \
    --cc=1i5t5.duncan@cox.net \
    --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 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.