Software Raid 1 data corruptions..
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 13 lines
-----Original Message-----
From: David Anderson [mailto:[email protected]]
Sent: 15 November 2003 17:13
To: James R Bamford
Subject: Re: Software Raid 1 data corruptions..Quoted 1 line
Can anyone give me any advice on this.. should i buy a hardware
raid card
Quoted 1 line
(which is effectively software as its cheap), or a true
hardware raid card
Quoted 2 lines
thats quite expensive... should i install a different OS, are there any patches i can try.. should i abandon linux for raid and try
Quoted 8 lines
using windows...
You forget essential information:
- Your kernel version
- The tools you used to create the array (raidtools or mdadm)David Anderson
Sorry.. I'm only just starting with linux again (setting up at least i use it all the time at work in a dumb mode :)
Kernel Version is 2.4.22-1.2115.nptl (default fedora core 1 install)
I followed the HOWTO so used the methods outlined in that for setting up.. raidtools i believe.. I started looking into mdadm when i had problems with the raid autodetection happening at boot.. i believe this got fixed without mdadm as soon as i added the raid array into my fstab i think it tries a 2nd time later on during boot and manages to setup then
My raid tab looks like
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4 persistent-superblock 1
device /dev/hde1
raid-disk 0
device /dev/hdh1
raid-disk 1
my mdadm.conf has the following lines uncommented
DEVICE /dev/hde1 /dev/hdh1
ARRAY /dev/md0 UUID=f11b9f95:c0ef31ac:b1ff7661:8a9ac48f
mdadm -D /dev/md0 reveals this
[root@backup root]# mdadm -D /dev/md0/dev/md0:
Version : 00.90.00
Creation Time : Thu Nov 13 21:37:35 2003
Raid Level : raid1
Array Size : 156288256 (149.05 GiB 160.04 GB)
Device Size : 156288256 (149.05 GiB 160.04 GB) Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Sat Nov 15 17:21:43 2003
State : dirty, no-errors
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Number Major Minor RaidDevice State
0 33 1 0 active sync /dev/hde1
1 34 65 1 active sync /dev/hdh1
UUID : f11b9f95:c0ef31ac:b1ff7661:8a9ac48f
Events : 0.13
/proc/mdstat is
[root@backup root]# cat /proc/mdstat
Personalities : [raid1]read_ahead 1024 sectors
md0 : active raid1 hdh1[1] hde1[0]
156288256 blocks [2/2] [UU]
unused devices: <none>
Is that about right? .. I will go ahead and memtest it.. I guess the point is simultaneous read from the device is what could be making it susceptible to problems that aren't visible in normal drive usage? as in why md5 works reading of individual drives (even those a component of the array.. ohh is it ok to mount the array component drives like this.. in read only to just verify its contents etc?)
Thanks
Jim
Quoted 10 lines · On Saturday November 15, [email protected] wrote:
raiddev
/dev/md0raid-level 1 nr-raid-disks 2 nr-spare-disks 0 chunk-size 4persistent-superblock 1
device/dev/hde1
raid-disk 0
device/dev/hdh1
raid-disk 1
Would I be right in guessing that hde1 is a master, but hdh1 is a slave (though on different busses)? That's kind of an odd configuration.
You could try turning of DMA on the drives (hdparm ...) and see if you still get corruption. If you don't, the finger point very much at the IDE controller...
NeilBrown
Quoted 22 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Neil Brown
Sent: 17 November 2003 03:19
To: James R Bamford
Cc: [email protected]; [email protected]
Subject: RE: Software Raid 1 data corruptions..Quoted 10 lines · On Saturday November 15, [email protected] wrote:
raiddev
/dev/md0raid-level 1 nr-raid-disks 2 nr-spare-disks 0 chunk-size 4persistent-superblock 1
device/dev/hde1
raid-disk 0
device/dev/hdh1
raid-disk 1
Quoted 7 lines
Would I be right in guessing that hde1 is a master, but hdh1 is a slave (though on different busses)? That's kind of an odd configuration.
You could try turning of DMA on the drives (hdparm ...) and see if you still get corruption. If you don't, the finger point very much at the IDE controller...
Ok i managed to get corruptions (always only on the 2nd disk) according to md5sum on the same file, when they were mounted seperately and i performed the test on both drives simultaneously.. that at least made sense..
I will try the hdparm if it happens again but i just nuked the array, repartitioned to 15gig, rebuilt the array (sorry i followed the howto again as i tried dmadm to rebuild but it asked for a personality.. where do i specify this i couldn't see it in the conf file... anyways this just completed
Performed the test and its fine.. the md5sum results are constant on the file... hopefully this has fixed it.. its unlikely this was a localised problem on the disk (as in using a higher point on the disk that currently isn't available) but i will rebuild the full array tomorrow and retest again..
it stood up with md5sum occuring on the raid array as well as on my / drive on the MB's standard ide controller... good signs indeed.. perhaps i wont need to buy that hardware raid card just yet :)
I will look up on how to use mdadm to create the array but if you have any advice on this then that'd be good..
Finally i've been hearing these conversations on how to rebuild the array as well.. i guess this is the final test... i will simulate it with these mini partitions as it'll be quicker... i am right that the sync time will take as long when adding new devices as it did when adding it in the first place.. 3 hours or more for these 160gig drives..
Thanks.. hopefully i'm getting a break and this will all work from now on :)
Cheers
Jim
Quoted 6 lines
NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 11 lines
Quoted 11 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Neil Brown
Sent: 17 November 2003 03:19
To: James R Bamford
Cc: [email protected]; [email protected]
Subject: RE: Software Raid 1 data corruptions..On Saturday November 15, [email protected] wrote:
<snip>
Just so you don't feel bad, I have the following situation that is very similar -- used your test procedure to find the problem.
Three systems with supermicro mbrds and DPT RA4050 controllers (raid not used). An assortment of Segate and IBM 18 gig drives. Setup is raid 1 with small boot & swap partitions + one large data partition.
Symptoms -- raid 1 would build, but data corruption would occur either during initial data transfer or upon doing the first disk thrashing i.e. build a kernel or something like that.
broke the raid down and tested by simply transfering a 30 meg file from an installed IDE drive to the scsi drive, dismounting, remounting and doing md5sum of the file. Consistently, the Segate drives come up with differing cksums. The IBM drives all seem to work as does the IDE drive. I have 9 Segate drives and they work in other machines so I have to assume it is some combination of the power supply, mbrd, controller, etc... that is causing the problem though I have 3 of these systems and it seems pretty consistent on all of them. Big mystery, you are not alone -- it may be your hardware.
Michael
[email protected]
Thanks for the update that i'm not alone Michael..
Have you read my updates tonight.. I think i'm on the case of fixing it (secondary drive on a controller on its own appears to have been the problem.. touch wood) ... I will give it some more hard testing and will consider getting a 3ware card if it doesn't stay fixed... i have quite a good PSU i think and am only using 3 drives, and an old PC.. the PSU shouldn't be too stressed...
Good luck..
Jim
Quoted 48 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Michael
Sent: 18 November 2003 00:21
To: [email protected]
Subject: RE: Software Raid 1 data corruptions..Quoted 11 lines
Quoted 11 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Neil Brown
Sent: 17 November 2003 03:19
To: James R Bamford
Cc: [email protected]; [email protected]
Subject: RE: Software Raid 1 data corruptions..On Saturday November 15, [email protected] wrote:
<snip>
Just so you don't feel bad, I have the following situation that is very similar -- used your test procedure to find the problem.Three systems with supermicro mbrds and DPT RA4050 controllers (raid not used). An assortment of Segate and IBM 18 gig drives. Setup is raid 1 with small boot & swap partitions + one large data partition.
Symptoms -- raid 1 would build, but data corruption would occur either during initial data transfer or upon doing the first disk thrashing i.e. build a kernel or something like that.
broke the raid down and tested by simply transfering a 30 meg file from an installed IDE drive to the scsi drive, dismounting, remounting and doing md5sum of the file. Consistently, the Segate drives come up with differing cksums. The IBM drives all seem to work as does the IDE drive. I have 9 Segate drives and they work in other machines so I have to assume it is some combination of the power supply, mbrd, controller, etc... that is causing the problem though I have 3 of these systems and it seems pretty consistent on all of them. Big mystery, you are not alone -- it may be your hardware.
Michael
[email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html