Skip to contentSkip to conversation

Sharing disks amoung multiple software RAIDs

DISCUSSION George Spelvin 3 participants 3 messages May 2, 2008 MD RAID

lore
Share & tools
lore
#0 lore raw

Can you explain what you mean, exactly?

Do you just mean having two partitions on the same drive used as part of other RAID arrays? That works fine.

Having two heavilty used partitions on the same drive causes some performance issues, but no correctness ones. And there's nothing special about RAID for this consideration; it would apply with non-RAID partitions as well.

But I have mirrored swap striped across all drives; I don't use swap a lot and it's not worth getting dedicated drives.

Likewise, /boot is a 6-way RAID-1 emergency rescue partition. I can boot off any drive, and I have a basic text-mode install with all the disaster recovery tools. Again, not heavily used.

If you're doing serious database work, it's common to split the system, log, and database across different spindles. But that's independent of whether RAID is used for any of them.

But there are other possible interpretations of "sharing among multiple RAIDs", like hot spares and the like. Could you be more specific? Obviously, having the same partition active in multiple different arrays would be an unmitigated disaster, but I don't think you mean that. (And I don't think mdadm lets you do it, either.)

One thing that's very nice about Linux software RAID is that you *don't* have to RAID whole drives. It took me a while to understand Intel's "Matrix RAID" feature because it had never occurred to me that a RAID array *couldn't* be set up that way.

#1 lore raw
Quoted 6 lines · George Spelvin

From: George Spelvin <[email protected]>
Subject: Re: Sharing disks amoung multiple software RAIDs
To: [email protected]
Cc: [email protected], [email protected]
Date: Friday, May 2, 2008, 4:36 AM
Can you explain what you mean, exactly?

As an example, you have disks /dev/sd[abc]. /dev/md0 would be made
from /dev/sda1, /dev/sdb1, and /dev/sdc1; /dev/md1 would be made from /dev/sda2, /dev/sdb2, and /dev/sdc2.

Quoted 6 lines

Do you just mean having two partitions on the same drive used as part
of other RAID arrays? That works fine.
Having two heavilty used partitions on the same drive causes some
performance issues,

In this case they are heavily used.

Quoted 35 lines

but no correctness ones. And
there's nothing
special about RAID for this consideration; it would apply with
non-RAID partitions as well.

But I have mirrored swap striped across all drives; I don't
use swap a lot and it's not worth getting dedicated drives.

Likewise, /boot is a 6-way RAID-1 emergency rescue partition.
I can boot off any drive, and I have a basic text-mode install
with all the disaster recovery tools. Again, not heavily used.

If you're doing serious database work, it's common to split the
system, log, and database across different spindles. But that's
independent of whether RAID is used for any of them.

But there are other possible interpretations of "sharing among multiple
RAIDs", like hot spares and the like. Could you be more specific?
Obviously, having the same partition active in multiple different
arrays would be an unmitigated disaster, but I don't think you mean that.
(And I don't think mdadm lets you do it, either.)

Quoted 7 lines

One thing that's very nice about Linux software RAID is that you *don't*
have to RAID whole drives. It took me a while to understand Intel's
"Matrix RAID" feature because it had never occurred to me that a RAID
array *couldn't* be set up that way.

      ____________________________________________________________________________________

Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

#2 lore raw
Quoted 3 lines
Quoted 1 line

Can you explain what you mean, exactly?

As an example, you have disks /dev/sd[abc]. /dev/md0 would be made
from /dev/sda1, /dev/sdb1, and /dev/sdc1; /dev/md1 would be made from /dev/sda2, /dev/sdb2, and /dev/sdc2.

I've been watching this thread with interest, because I wanted clarification on what the OP meant.

If by "sharing disks", the OP meant the above, I'm surprised (and concerned) there's any question at all. How is this anything other than the definition of "mirror"? What would a mirror be, if not this; perhaps the entire disk in one partition (which is still partition-based, albeit one), or an entire raw disk?

I've been doing this for years (with hardware RAID, and with other operating system software RAID implementations as well, e.g. on Solaris). (I even just split the mirror on my own system and ran off half, then wiped the second disk for emergency scratch space for a few hours, then put the second disk back in and resynced. No problems.)

In fact, I currently have a system with a three-way mirror. The third disk is removed for offsite storage and returned to the pool on a schedule for resync (to implement a crude offsite policy where other means of data transfer are not effective, and the entire system can be recovered with a slight data loss window).

I'm now wondering, what is OP's concern? Just performance?

Regards,
Richard