linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to prefer some devices over others in raid
@ 2013-12-31 14:42 Tomas M
  2013-12-31 15:17 ` Stan Hoeppner
  0 siblings, 1 reply; 8+ messages in thread
From: Tomas M @ 2013-12-31 14:42 UTC (permalink / raw)
  To: linux-raid

I'm using software raid 5 (stripe with one parity drive).

Is there a way to force the raid array to MOSTLY ignore one of the drives?

Let me explain. If a drive is failing (is very slow, has errors, etc),
then I still prefer to keep it in the array and simply COPY all data
from the array somewhere else, instead of risking that the array gets
degraded if I remove the failing drive and another one dies at the
same time.

Example:
- 4 drives in raid5
- one drive is slow, lets call the drive DISK1
- copying all data from the array is very slow because it still uses
DISK1 to read data from it, even if it could IGNORE it and COMPUTE the
data from the other three drives

The filesystem on the array needs to be still mounted rw, though,
since there may be some changes.

Is there any mdadm parameter or option which would make the array
IGNORE any given disk on reads (since those can be computed from other
drives), while still NOT IGNORING the disk in writes?

Because if I set it to ignore that failing slow drive, I will copy out
the data 100 times faster while still keeping the array in sync.
Because for me if ANOTHER drive dies, it will still be better to have
the data 100 times slower than nothing. I hope you understand me :)

Thanks!


Tomas M

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

end of thread, other threads:[~2014-01-02 14:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-31 14:42 How to prefer some devices over others in raid Tomas M
2013-12-31 15:17 ` Stan Hoeppner
2014-01-01  6:50   ` Tomas M
2014-01-01  7:05     ` NeilBrown
2014-01-01 16:49     ` Stan Hoeppner
2014-01-01 18:00       ` Tomas M
2014-01-01 20:21         ` Phil Turmel
2014-01-02 14:30         ` Stan Hoeppner

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).