Re: --assemble --scan --no-degrades assembles+run degraded RAID1?
From: NeilBrown <hidden>
Date: 2013-07-20 01:51:17
Attachments
- signature.asc [application/pgp-signature] 828 bytes
From: NeilBrown <hidden>
Date: 2013-07-20 01:51:17
On Sat, 20 Jul 2013 00:47:51 +0200 Christoph Anton Mitterer [off-list ref] 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.