Re: Ok, dumb question time ...

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

 



On Fri, 08 Oct 2010 00:20:35 -0400
Joe Landman <landman@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

> Not having much luck with this.  Let me explain ...
> 
> Imagine we have a RAID1 with 3 elements.  It was originally a RAID1 with 
> 2 elements, and we added a 3rd using
> 
> 	mdadm /dev/md0 --add /dev/loop1
> 
> What I want to do is conceptually very simple.  I want to permanently 
> remove loop1, without having the array become dirty, or degraded.  That 
> is, I would like
> 
> 	mdadm /dev/md0 --fail /dev/loop1 --remove /dev/loop1
> 
> to result in a clean array with two members.
> 
> It doesn't.  The array is marked as being in the "clean, degraded" 
> state.  Which, as it is the root file system array, has the unfortunate 
> side effect of not allowing the RAID1 to properly assemble at boot (that 
> degraded state).
> 
> So ... can I force the array to either remove the extra unneeded loop1 
> device, and update its metadata properly ... or force it into a clean, 
> active state without the loop1 device, or force the assembly on boot to 
> occur regardless of what it thinks it should have?
> 
> This is quite disconcerting ... I thought it would be simple.

It is.

You want the array to think that it only has two devices?

  mdadm --grow /dev/md0 --raid-devices=2

Done.

NeilBrown
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux