linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* raid0: "clean" state on drive failure/removal
@ 2015-02-27 20:54 Sushma Gurram
  2015-02-27 21:56 ` NeilBrown
  0 siblings, 1 reply; 2+ messages in thread
From: Sushma Gurram @ 2015-02-27 20:54 UTC (permalink / raw)
  To: linux-raid@vger.kernel.org

Hi,

A basic question on raid0 behavior.

When a drive fails/removed in a raid0 array, “mdadm –detail” reports the array
state as clean instead of failed.

It appears that the drive is whacked out of the array, but that array slot
continues to show “active sync” state.

I/O to the failed drive errors out. However, it appears that I/O to other drives
in the raid0 array would succeed. How would the user know about the array state
and potential data loss? Should the array information be cached, drive
failure/removals be monitored and checked against the cached information?

Could anyone please explain the reason for this behavior of not reporting a
raid0 array as failed?

Thanks,
Sushma

________________________________

PLEASE NOTE: The information contained in this electronic mail message is intended only for the use of the designated recipient(s) named above. If the reader of this message is not the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender by telephone or e-mail (as shown above) immediately and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).

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

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

* Re: raid0: "clean" state on drive failure/removal
  2015-02-27 20:54 raid0: "clean" state on drive failure/removal Sushma Gurram
@ 2015-02-27 21:56 ` NeilBrown
  0 siblings, 0 replies; 2+ messages in thread
From: NeilBrown @ 2015-02-27 21:56 UTC (permalink / raw)
  To: Sushma Gurram; +Cc: linux-raid@vger.kernel.org

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

On Fri, 27 Feb 2015 20:54:32 +0000 Sushma Gurram <Sushma.Gurram@sandisk.com>
wrote:

> Hi,
> 
> A basic question on raid0 behavior.
> 
> When a drive fails/removed in a raid0 array, “mdadm –detail” reports the array
> state as clean instead of failed.
> 
> It appears that the drive is whacked out of the array, but that array slot
> continues to show “active sync” state.
> 
> I/O to the failed drive errors out. However, it appears that I/O to other drives
> in the raid0 array would succeed. How would the user know about the array state
> and potential data loss? Should the array information be cached, drive
> failure/removals be monitored and checked against the cached information?

The user would know about potential data loss in *exactly* they same way as
if half the sectors on a single hard-drive stopped working.

i.e. the filesystem would complain.

> 
> Could anyone please explain the reason for this behavior of not reporting a
> raid0 array as failed?

RAID0 is not really RAID - there is no redundancy.
So it isn't treated like RAID.

RAID0 is simply a mapping off linear addresses onto multiple devices.
There is no sense in which the array as a whole "fails", or any value in
marking a device as "failed".

If there is something wrong, then IO requests will fail.  Not necessarily all
IO requests, but some.  Just like a normal drive that has partially failed.

NeilBrown

> 
> Thanks,
> Sushma
> 
> ________________________________
> 
> PLEASE NOTE: The information contained in this electronic mail message is intended only for the use of the designated recipient(s) named above. If the reader of this message is not the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify the sender by telephone or e-mail (as shown above) immediately and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 811 bytes --]

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

end of thread, other threads:[~2015-02-27 21:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-27 20:54 raid0: "clean" state on drive failure/removal Sushma Gurram
2015-02-27 21:56 ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).