Replace drive in RAID5 without losing redundancy?

2007-03-05 Thread Ralf Müller
Hi The day before I grew a 4 times 300GB disk RAID5. I replaced the 300GB drives by 750GB ones. As far as I can see the proposed way to do that is to kick a drive from RAID and let a spare drive take over - for sensible data this is scary - at least for me, because I lose redundancy for the

detecting/correcting _slightly_ flaky disks

2007-03-05 Thread Michael Stumpf
I'm trying to assemble an array (raid 5) of 8 older, but not yet old age ATA 120 gig disks, but there is intermittent flakiness in one or more of the drives. Symptoms: * Won't boot sometimes. Even after moving to 2 power supplies and monitoring the amp spikes, sometimes I get clicking from

Re: detecting/correcting _slightly_ flaky disks

2007-03-05 Thread Justin Piszcz
On Mon, 5 Mar 2007, Michael Stumpf wrote: I'm trying to assemble an array (raid 5) of 8 older, but not yet old age ATA 120 gig disks, but there is intermittent flakiness in one or more of the drives. Symptoms: * Won't boot sometimes. Even after moving to 2 power supplies and monitoring

Re: Raid on USB flash disk

2007-03-05 Thread Rob Bray
Hi, I just tried to setup a one-device raid onto an USB flash drive. Creating, setting up ext3 and filling with data was no problem. But when I tried to work with it afterwards the metadevice was unresponsive. I tried both linear and raid0 levels, but that made no difference. For my

Re: detecting/correcting _slightly_ flaky disks

2007-03-05 Thread Justin Piszcz
Besides being run for a long time, I don't see anything strange with this drive. Justin. On Mon, 5 Mar 2007, Michael Stumpf wrote: This is the drive I think is most suspect. What isn't obvious, because it isn't listed in the self test log, is between #1 and #2 there was an aborted, hung

Re: Replace drive in RAID5 without losing redundancy?

2007-03-05 Thread Neil Brown
On Monday March 5, [EMAIL PROTECTED] wrote: Is it possible to mark a disk as to be replaced by an existing spare, then migrate to the spare disk and kick the old disk _after_ migration has been done? Or not even kick - but mark as new spare. No, this is not possible yet. You can get nearly

no journaling and loops on softraid?

2007-03-05 Thread Dexter Filmore
http://gentoo-wiki.com/HOWTO_Gentoo_Install_on_Software_RAID#Data_Scrubbing Warning: Be aware that the combination of RAID5 and loop-devices will most likely cause severe filesystem damage, especially when using ext3 and ReiserFS. Some users suggest that XFS is not affected by this, but this

Re: RAID1, hot-swap and boot integrity

2007-03-05 Thread Mike Accetta
Gabor Gombas wrote: On Fri, Mar 02, 2007 at 09:04:40AM -0500, Mike Accetta wrote: Thoughts or other suggestions anyone? This is a case where a very small /boot partition is still a very good idea... 50-100MB is a good choice (some initramfs generators require quite a bit of space under /boot

Re: no journaling and loops on softraid?

2007-03-05 Thread Neil Brown
On Monday March 5, [EMAIL PROTECTED] wrote: http://gentoo-wiki.com/HOWTO_Gentoo_Install_on_Software_RAID#Data_Scrubbing Warning: Be aware that the combination of RAID5 and loop-devices will most likely cause severe filesystem damage, especially when using ext3 and ReiserFS. Some users

Re: RAID1, hot-swap and boot integrity

2007-03-05 Thread Mike Accetta
Bill Davidsen wrote: Gabor Gombas wrote: On Fri, Mar 02, 2007 at 09:04:40AM -0500, Mike Accetta wrote: Thoughts or other suggestions anyone? This is a case where a very small /boot partition is still a very good idea... 50-100MB is a good choice (some initramfs generators require

Re: mismatch_cnt questions

2007-03-05 Thread Neil Brown
On Monday March 5, [EMAIL PROTECTED] wrote: Neil Brown wrote: [trim Q re how resync fixes data] For raid1 we 'fix' and inconsistency by arbitrarily choosing one copy and writing it over all other copies. For raid5 we assume the data is correct and update the parity. Can raid6 identify

Re: RAID1, hot-swap and boot integrity

2007-03-05 Thread Mike Accetta
H. Peter Anvin wrote: Mike Accetta wrote: I've been considering trying something like having the re-sync algorithm on a whole disk array defer the copy for sector 0 to the very end of the re-sync operation. Assuming the BIOS makes at least a minimal consistency check on sector 0 before

Re: RAID1, hot-swap and boot integrity

2007-03-05 Thread H. Peter Anvin
Mike Accetta wrote: I wonder if having the MBR typically outside of the array and the relative newness of partitioned arrays are related? When I was considering how to architect the RAID1 layout it seemed like a partitioned array on the entire disk worked most naturally. It's one way to do

Re: high mismatch count after scrub

2007-03-05 Thread Neil Brown
On Tuesday March 6, [EMAIL PROTECTED] wrote: So I practiced what I learned today and scrubbed the array. Getting this: xerxes:/sys/block/md0/md# cat mismatch_cnt 147248 4x 250GB Samsung sATA, smartctl says all fine. Need to worry? If you have a swap file on this array, then that

Re: mismatch_cnt questions

2007-03-05 Thread Paul Davidson
Hi Neil, I've been following this thread with interest and I have a few questions. Neil Brown wrote: On Monday March 5, [EMAIL PROTECTED] wrote: Neil Brown wrote: When a disk fails we know what to rewrite, but when we discover a mismatch we do not have this knowledge. It may corrupt the

Re: Replace drive in RAID5 without losing redundancy?

2007-03-05 Thread dean gaudet
On Tue, 6 Mar 2007, Neil Brown wrote: On Monday March 5, [EMAIL PROTECTED] wrote: Is it possible to mark a disk as to be replaced by an existing spare, then migrate to the spare disk and kick the old disk _after_ migration has been done? Or not even kick - but mark as new spare.

How to copy a page to another page completely?

2007-03-05 Thread Yu-Chen Wu
Hi all, I tried memcpy,__copy_to_user,and __copy_to_user_inatomic,etc. The destination is BIO's bio_vec-page (the page should be in userspace), the source is a page of my modules; I get the addresses of the both pages from kmap() or kmap_atomic() then pass to memcpy or __copy_to_user or