[PATCH 005 of 5] md: Improve partition detection in md array.

2007-05-07 Thread NeilBrown
md currently uses ->media_changed to make sure rescan_partitions is call on md array after they are assembled. However that doesn't happen until the array is opened, which is later than some people would like. So use blkdev_ioctl to do the rescan immediately that the array has been assembled. T

[PATCH 002 of 5] md: Stop using csum_partial for checksum calculation in md.

2007-05-07 Thread NeilBrown
If CONFIG_NET is not selected, csum_partial is not exported, so md.ko cannot use it. We shouldn't really be using csum_partial anyway as it is an internal-to-networking interface. So replace it with C code to do the same thing. Speed is not crucial here, so something simple and correct is best.

[PATCH 004 of 5] md: Allow reshape_position for md arrays to be set via sysfs.

2007-05-07 Thread NeilBrown
"reshape_position" records how much progress has been made on a "reshape" (adding drives, changing layout or chunksize). When it is set, the number of drives, layout and chunksize can have two possible values, an old an a new. So allow these different values to be visible, and allow both old and

[PATCH 001 of 5] md: Move test for whether level supports bitmap to correct place.

2007-05-07 Thread NeilBrown
We need to check for internal-consistency of superblock in load_super. validate_super is for inter-device consistency. With the test in the wrong place, a badly created array will confuse md rather an produce sensible errors. Signed-off-by: Neil Brown <[EMAIL PROTECTED]> ### Diffstat output .

[PATCH 003 of 5] md: Remove the slash from the name of a kmem_cache used by raid5.

2007-05-07 Thread NeilBrown
SLUB doesn't like slashes as it wants to use the cache name as the name of a directory (or symlink) in sysfs. Signed-off-by: Neil Brown <[EMAIL PROTECTED]> ### Diffstat output ./drivers/md/raid5.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff .prev/drivers/md/raid5.c ./driv

[PATCH 000 of 5] md: assorted bug fixes and minor features

2007-05-07 Thread NeilBrown
Following are 5 patches for md suitable for 2.6.22. None are needed for -stable. Thanks NeilBrown [PATCH 001 of 5] md: Move test for whether level supports bitmap to correct place. [PATCH 002 of 5] md: Stop using csum_partial for checksum calculation in md. [PATCH 003 of 5] md: Remove the s

Re: Raid1 replaced with raid10?

2007-05-07 Thread Peter Rabbitson
Bill Davidsen wrote: > Not worth a repost, since I was way over answering his question... Erm... and now you made me curios :) Please share your thoughts if it is not too much trouble. Thank you for your time. Peter - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the bo

Re: Raid1 replaced with raid10?

2007-05-07 Thread Bill Davidsen
Neil Brown wrote: On Friday May 4, [EMAIL PROTECTED] wrote: Peter Rabbitson wrote: Hi, I asked this question back in march but received no answers, so here it goes again. Is it safe to replace raid1 with raid10 where the amount of disks is equal to the amount of far/near/offset copies?

RAID defns

2007-05-07 Thread raider
Sorry for the rookie question, but I'm looking for clarity with regard to some software RAID terms that different sites and people seem to confuse with each other. I'm wondering if I've been using the wrong terms all along? Are these correct? Stripe width = number of devices in the RAID array (o

Re: mdadm array not found on reboot

2007-05-07 Thread Richard Scobie
Jeffrey B. Layton wrote: CentOS 4.2. I've been reading something about raidautorun. Would help in this case? Try adding: DEVICE partitions to the top of your mdadm.conf and: auto=part to the end of your /dev/md1 definition. eg. ARRAY /dev/md1 level=raid1 num-devices=2 UUID=e235ee6c:415

Re: mdadm array not found on reboot

2007-05-07 Thread Justin Piszcz
On Mon, 7 May 2007, Jeffrey B. Layton wrote: Justin Piszcz wrote: On Mon, 7 May 2007, Jeffrey B. Layton wrote: Justin Piszcz wrote: On Mon, 7 May 2007, Jeffrey B. Layton wrote: Hello, I apologize if this is a FAQ question or a typical newbie question, but by google efforts have yiel

Re: mdadm array not found on reboot

2007-05-07 Thread Jeffrey B. Layton
Justin Piszcz wrote: On Mon, 7 May 2007, Jeffrey B. Layton wrote: Justin Piszcz wrote: On Mon, 7 May 2007, Jeffrey B. Layton wrote: Hello, I apologize if this is a FAQ question or a typical newbie question, but by google efforts have yielded anything yet. I built a RAID-1 using mdadm (

Re: mdadm array not found on reboot

2007-05-07 Thread Justin Piszcz
On Mon, 7 May 2007, Jeffrey B. Layton wrote: Justin Piszcz wrote: On Mon, 7 May 2007, Jeffrey B. Layton wrote: Hello, I apologize if this is a FAQ question or a typical newbie question, but by google efforts have yielded anything yet. I built a RAID-1 using mdadm (Centos 4.2 with 2.6.16

Re: mdadm array not found on reboot

2007-05-07 Thread Jeffrey B. Layton
Justin Piszcz wrote: On Mon, 7 May 2007, Jeffrey B. Layton wrote: Hello, I apologize if this is a FAQ question or a typical newbie question, but by google efforts have yielded anything yet. I built a RAID-1 using mdadm (Centos 4.2 with 2.6.16.19 kernel and mdadm 1.6.0-2). It's just two SATA

Re: mdadm array not found on reboot

2007-05-07 Thread Justin Piszcz
On Mon, 7 May 2007, Jeffrey B. Layton wrote: Hello, I apologize if this is a FAQ question or a typical newbie question, but by google efforts have yielded anything yet. I built a RAID-1 using mdadm (Centos 4.2 with 2.6.16.19 kernel and mdadm 1.6.0-2). It's just two SATA drives that I created

mdadm array not found on reboot

2007-05-07 Thread Jeffrey B. Layton
Hello, I apologize if this is a FAQ question or a typical newbie question, but by google efforts have yielded anything yet. I built a RAID-1 using mdadm (Centos 4.2 with 2.6.16.19 kernel and mdadm 1.6.0-2). It's just two SATA drives that I created using: mdadm --create --verbose /dev/md1 --leve

Fwd: attempt to access beyond end of device on RAID0 with mdadm

2007-05-07 Thread Sławomir Nowakowski
Hello, Thank you for the answer. Now I am sure that data corruption is related to dm-crypt. I have a few questions: Could you please let me know if bug fix in kernel 2.6.19 to dm-crypt over RAID5 is also related to RAID0? Generally from which kernel version it is safe to use dm-crypt over RAID?

Re: Partitioned arrays initially missing from /proc/partitions

2007-05-07 Thread Neil Brown
On Monday May 7, [EMAIL PROTECTED] wrote: > Hi Neil > > Just wondering what the status is here - do you need any more from me or is it > on your stack? > > The patch helped but didn't cure. > After a clean boot it mounted correctly first try. > Then I unmounted, stopped and re-assembled the array

Re: Partitioned arrays initially missing from /proc/partitions

2007-05-07 Thread David Greaves
Hi Neil Just wondering what the status is here - do you need any more from me or is it on your stack? The patch helped but didn't cure. After a clean boot it mounted correctly first try. Then I unmounted, stopped and re-assembled the array. The next mount failed. The subsequent mount succeeded.

Re: Raid1 replaced with raid10?

2007-05-07 Thread Peter Rabbitson
Neil Brown wrote: > On Monday May 7, [EMAIL PROTECTED] wrote: >> Neil Brown wrote: >>> On Friday May 4, [EMAIL PROTECTED] wrote: Peter Rabbitson wrote: > Hi, > > I asked this question back in march but received no answers, so here it > goes again. Is it safe to replace raid1 wi

Re: Raid1 replaced with raid10?

2007-05-07 Thread Neil Brown
On Monday May 7, [EMAIL PROTECTED] wrote: > Neil Brown wrote: > > On Friday May 4, [EMAIL PROTECTED] wrote: > >> Peter Rabbitson wrote: > >>> Hi, > >>> > >>> I asked this question back in march but received no answers, so here it > >>> goes again. Is it safe to replace raid1 with raid10 where the a