Re: Cannot add device "is mounted" for unmounted drive that used to be in raidset that is mounted

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/  
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux