Re: --assemble --scan --no-degrades assembles+run degraded RAID1?

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

 



On Sat, 20 Jul 2013 00:47:51 +0200 Christoph Anton Mitterer
<calestyo@xxxxxxxxxxxx> wrote:

> Hi.
> 
> This is just some minor thing I've noticed:
> 
> I intentionally degraded a 2-device RAID1,... and try to auto assemble
> it via:
> --assemble --scan --no-degrade
> 
> It seems this not only assembles the array but also runs it, at least I
> can write to the /dev/md/foo file.
> 
> I'd have expected that this does not work... but it does...
> 
> 
> Did I get anything wrong here?

"--no-degraded" is a slight misnomer.  It should be
 "--no-degraded-unless-known-to-be-degraded".

The case that it stops is when you shut down the array with the array working
perfectly, remove a drive, the try to start the array up again.
In this case the array doesn't know that it is degraded, so "--no-degraded"
will stop it from being assembled.

This is useful when device discovery is slow or unreliable.

NeilBrown


> 
> 
> Cheers,
> Chris.

Attachment: signature.asc
Description: PGP signature


[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