some general md raid questions

some general md raid questions

am 12.10.2011 16:47:05 von morreale

Hi all,

I have a couple of md RAID questions related to larger numbers of disks.
Some may seem a little naive, but please bear with me. Thanks in
advance for any information...

First off, are there any architectural docs describing the current
software implementation? I can find lots on *using*... I am starting
to dive into the code, just wondering whether there is a 5000ft view I
can start from...

Assuming I have two or more jbods attached to the machine, how can I
determine which disks are associated with which paths? (Yes, sorry, I
realize this is a general discovery question and not specific to
raid :-)

Will 'data' and 'parity' datum span more than one disk within the
layout? Assume I have 8 disks for a raid6, with the default
left-symmetric-6 layout. Do I get a layout of data1-1, data1-2, p1-1,
p1-2, data2-1, data2-2, p2-1, p2-2? Or data1-1, data1-2, data2-1,
data2-2, p1-1, p1-2, p2-2, p2-2? (or maybe I misinterpreted
left-symmetric-6)?

Rebuilding appears to performed by a workqueue. Is that right? Can I
set affinity/class/priority on workqueues? (sorry, general kernel
question, I know. But thanks anyway) Would there be objection to an md
'feature' to segregate rebuilding tasks to specific CPUs for smp boxen?
if this doesn't exist in some form already?

Is there an upper limit on speed_limit_{max,min}? This is merely a
bandwidth, throttling control, correct? This 'speed limit' is related
to the write speed of the disks, right? If so, what happens in the case
of mis-matched disks? (say SSDs, and 7200rpm and 5400rpm disks) I'm
not suggesting this, I just want to make sure I understand the effects
here...

Is it possible to change (and have them recognized) the speed limits
*during* the rebuild process?

Assuming a 8 disk, raid6 array again... When one of the disks is in a
raid6 group is rebuilding, will incoming stripes be routed to the
consistent raid6 group? or will they continue to access the raid6 group
with the rebuilding disk until that group is 'full'?

I'm trying to plan for a raid system where a disk failure is a normal
(and likely) course of events, so layout and control of the rebuild
process is fairly important. If there are other thoughts regarding
same, please share with me.

Greatly appreciate your time.

Best Regards,
-PWM






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

Re: some general md raid questions

am 12.10.2011 19:55:04 von Keith Keller

On 2011-10-12, Peter W. Morreale wrote:
>
> Assuming I have two or more jbods attached to the machine, how can I
> determine which disks are associated with which paths? (Yes, sorry, I
> realize this is a general discovery question and not specific to
> raid :-)

Not positive this is what you want, but you can look at the udevinfo
tool:

# udevinfo -q all -n sdc1
P: /block/sdc/sdc1
N: sdc1
S: disk/by-id/scsi-1AMCC_A367495389E5F400123E-part1
S: disk/by-path/pci-0000:01:03.0-scsi-0:0:1:0-part1
E: ID_VENDOR=AMCC
E: ID_MODEL=9550SX-16M_DISK
E: ID_REVISION=3.02
E: ID_SERIAL=1AMCC_A367495389E5F400123E
E: ID_TYPE=disk
E: ID_BUS=scsi
E: ID_PATH=pci-0000:01:03.0-scsi-0:0:1:0

I hope someone else can answer your other questions; I've just started
using mdraid myself. I have played with the speed_limit parameters, but
haven't noticed a huge difference (likely because they aren't good
disks, not a fault with md).

--keith

--
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information


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

Re: some general md raid questions

am 12.10.2011 21:33:34 von morreale

On Wed, 2011-10-12 at 10:55 -0700, Keith Keller wrote:
> On 2011-10-12, Peter W. Morreale wrote:
> >
> > Assuming I have two or more jbods attached to the machine, how can I
> > determine which disks are associated with which paths? (Yes, sorry, I
> > realize this is a general discovery question and not specific to
> > raid :-)
>
> Not positive this is what you want, but you can look at the udevinfo
> tool:

DOH! Of course, I can look at the PCI addressing.

Thanks,
-PWM


>
> # udevinfo -q all -n sdc1
> P: /block/sdc/sdc1
> N: sdc1
> S: disk/by-id/scsi-1AMCC_A367495389E5F400123E-part1
> S: disk/by-path/pci-0000:01:03.0-scsi-0:0:1:0-part1
> E: ID_VENDOR=AMCC
> E: ID_MODEL=9550SX-16M_DISK
> E: ID_REVISION=3.02
> E: ID_SERIAL=1AMCC_A367495389E5F400123E
> E: ID_TYPE=disk
> E: ID_BUS=scsi
> E: ID_PATH=pci-0000:01:03.0-scsi-0:0:1:0
>
> I hope someone else can answer your other questions; I've just started
> using mdraid myself. I have played with the speed_limit parameters, but
> haven't noticed a huge difference (likely because they aren't good
> disks, not a fault with md).
>
> --keith
>


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