Re: mdadm: can only add devices to linear arrays

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

 



On 02/17/2017 09:33 PM, Boylan, Ross wrote:
> I got "mdadm: can only add devices to linear arrays" when I did not
> expect it.  Can anyone explain what's  going on, and what the right
> way to handle the situation is?
> 
> In brief, I had a raid1 set for 2 devices, but with only 1.  I tried
> adding a 2nd.

I think you simply misunderstood the use of --grow.  All you needed was
--add to place a new device in the empty slot.

Use --grow to change the layout or number of devices of a non-degraded
array.  Use --add, --fail, and --remove to manage the devices in an
array without changing its structure.

Often, you see --grow with an --add because a spare is needed for the
structural changes one is commanding, and it is fine to combine the
operations (adding a spare then growing onto it).

Phil
--
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