Skip to contentSkip to conversation

Simple question, maybe

DISCUSSION Jason Shelton 3 participants 8 messages Jun 26, 2002 – Jun 29, 2002 MD RAID

lore
Share & tools
lore
#0 lore raw

Hello, I'm sorry to bother all of you with what may be a trivial question, but I'm stumped. I work for a company that makes backup and recovery software and we have a need to boot a kernel that has Raid support built-in, but would like to tell the kernel not to autodetect the raid devices that may be on the system. Is there a way to do this? perhaps a lilo append string or something?

Thanks for your time.

Jason Shelton
Storix Software

#1 lore raw
Quoted 6 lines · On June 26, [email protected] wrote:

Hello, I'm sorry to bother all of you with what may be a trivial question, but I'm stumped. I work for a company that makes backup and recovery software and we have a need to boot a kernel that has Raid support built-in, but would like to tell the kernel not to autodetect the raid devices that may be on the system. Is there a way to do this? perhaps a lilo append string or something?

append="raid=noautodetect"

NeilBrown

#2 lore raw

That was exactly what I needed, thank you very much. Now, if I may, where did you find that? I've been looking all over the place and kept hitting dead ends.

Thanks again

Jason Shelton
Storix Software

Quoted 4 lines · Neil Brown

append="raid=noautodetect"

NeilBrown

#3 lore raw
Quoted 4 lines · On June 26, [email protected] wrote:

That was exactly what I needed, thank you very much. Now, if I may, where did you find that? I've been looking all over the place and kept hitting dead ends.

Use the source, luke:
linux/drivers/md/md.c:

__setup("raid=", raid_setup);

and

static int __init raid_setup(char *str)

{
	int len, pos;

	len = strlen(str) + 1;
	pos = 0;

	while (pos < len) {
		char *comma = strchr(str+pos, ',');
		int wlen;
		if (comma)
			wlen = (comma-str)-pos;
		else	wlen = (len-1)-pos;

		if (!strncmp(str, "noautodetect", wlen))
			raid_setup_args.noautodetect = 1;
		pos += wlen+1;
	}
	raid_setup_args.set = 1;
	return 1;
}

NeilBrown

#4 lore raw

resync patch & Neil's recent patches

Neil & Raiders,

I am using Debian 2.4.5 linux(for ARM ). The "resync" speed is about 26M/sec.
I have 8*120G HDDs so it takes about 24 hours.

I saw some bug fixes and improvement on this topic from
http://marc.theaimsgroup.com/?l=linux-kernel&m=100876771508736&w=2

Q1: Can I apply this patch to my 2.4.5 linux?
Q2: Which linux2.4.x has this fix?

Q3: Neil released 22 + 3 patches a couple of weeks ago.
Can I apply these pathes to 2.4.5?

Which linux 2.4.x will include these fixes?

Q3: The default MAX resync speed is 200M/sec. I am getting about
10 % of this default speed. Could anyone get it? Could I get this average speed when I apply these patches?

Thanks,

Bo

#5 lore raw

Re: resync patch & Neil's recent patches

Quoted 8 lines · On Wednesday June 26, [email protected] wrote:

Neil & Raiders,

I am using Debian 2.4.5 linux(for ARM ). The "resync" speed is about 26M/sec.
I have 8*120G HDDs so it takes about 24 hours.

I saw some bug fixes and improvement on this topic from
http://marc.theaimsgroup.com/?l=linux-kernel&m=100876771508736&w=2

I don't think any of the patches that you mention are particularly relevant to your problem.

Maybe if you give some more precise details of your setup??

Also, try
echo 100000 > /proc/sys/dev/raid/speed_limit_min
does that help?

NeilBrown

#6 lore raw

Re: resync patch & Neil's recent patches

Neil,

Quoted 3 lines
Quoted 2 lines

I saw some bug fixes and improvement on this topic from
http://marc.theaimsgroup.com/?l=linux-kernel&m=100876771508736&w=2

According to log file(from above infor), it cleaned up many things related with RESYNC, and had
some bug fixes. He mentioned it goes to linux2.5.x.

I think we should have the same changes to Linux 2.4.x, don't you? If so which release should include them? Any problem to apply this patch to my 2.4.5?

How about your patches(23+)? Can I apply them to my lINUX2.4.5?

Quoted 11 lines

I don't think any of the patches that you mention are particularly relevant to your problem.

Maybe if you give some more precise details of your setup??

Also, try
echo 100000 > /proc/sys/dev/raid/speed_limit_min
does that help?

NeilBrown

I already use 100M for speed _limit_min, 300M for speed _limit_max. I could not notice a big difference from changing this values.

Q1: This value go back to the default at boot/reset, Should I modify to change this
default value in "md.c"? By any config parameter?

Q2: >hdparm -tT /dev/hdxx
Timing buffer-cache reads: 52.24 MB/s
Timing buffered disk reads: 24.43 MB/s

The "resync" speed on the raid1 device with hdxx: 25.4MB/s.

Do you think this speed is reasonable enough?

Thanks for your help,

Bo

#7 lore raw

Re: resync patch & Neil's recent patches

Quoted 11 lines · On Friday June 28, [email protected] wrote:

Neil,

Quoted 3 lines
Quoted 2 lines

I saw some bug fixes and improvement on this topic from
http://marc.theaimsgroup.com/?l=linux-kernel&m=100876771508736&w=2

According to log file(from above infor), it cleaned up many things related with RESYNC, and had
some bug fixes. He mentioned it goes to linux2.5.x.

I think we should have the same changes to Linux 2.4.x, don't you?

I don't think they were significant bugs. resync works quite well in 2.4. Well enough that I don't think it should be fiddled with too much.

Quoted 2 lines

If so which release should include them? Any problem to apply this patch to my 2.4.5?

They won't work in 2.4 as they stand. There were some major changes to the block device layer in 2.5 and these patches require (and are required by) these changes.

Quoted 2 lines

How about your patches(23+)? Can I apply them to my lINUX2.4.5?

No. Same reason. I might back-port the more significant ones, but much of it was code-cleanliness rather than bug fixes.

Quoted 7 lines

I already use 100M for speed _limit_min, 300M for speed _limit_max. I could not notice a big difference from changing this values.

Q1: This value go back to the default at boot/reset, Should I modify to change this
default value in "md.c"? By any config parameter?

Don't modify md.c. Just echo a number to the /proc file in a boot script.

Quoted 8 lines

Q2: >hdparm -tT /dev/hdxx
Timing buffer-cache reads: 52.24 MB/s
Timing buffered disk reads: 24.43 MB/s

The "resync" speed on the raid1 device with hdxx: 25.4MB/s.

Do you think this speed is reasonable enough?

You couldn't ask for better. This speed looks fine.

NeilBrown