All of lore.kernel.org
 help / color / mirror / Atom feed
* --assemble --scan --no-degrades assembles+run degraded RAID1?
@ 2013-07-19 22:47 Christoph Anton Mitterer
  2013-07-20  1:51 ` NeilBrown
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Anton Mitterer @ 2013-07-19 22:47 UTC (permalink / raw)
  To: linux-raid

[-- Attachment #1: Type: text/plain, Size: 398 bytes --]

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?


Cheers,
Chris.

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 5113 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: --assemble --scan --no-degrades assembles+run degraded RAID1?
  2013-07-19 22:47 --assemble --scan --no-degrades assembles+run degraded RAID1? Christoph Anton Mitterer
@ 2013-07-20  1:51 ` NeilBrown
  0 siblings, 0 replies; 2+ messages in thread
From: NeilBrown @ 2013-07-20  1:51 UTC (permalink / raw)
  To: Christoph Anton Mitterer; +Cc: linux-raid

[-- Attachment #1: Type: text/plain, Size: 974 bytes --]

On Sat, 20 Jul 2013 00:47:51 +0200 Christoph Anton Mitterer
<calestyo@scientia.net> 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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-20  1:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-19 22:47 --assemble --scan --no-degrades assembles+run degraded RAID1? Christoph Anton Mitterer
2013-07-20  1:51 ` NeilBrown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.