Raid5 sync problem
I'm mailing this to the LVM list as it might also be the cause of this.. I don't know.
Anyway I have 4 6g drives in a RAID5 configuration. On top the md device I have a VG and a couple of LV in it. I'm running 2.4.4 with the beta7 LVM patch and using ext2 on all the LV's.
It now happened that one drive failed (actually just a IDE cable problem but anyway) and the machine became really really slow. Load was up to 200 and almost every command got stuck so all I could do was to boot.
It came up ok, and I hotadded the drive back and it started to sync but after a while the sync was down to 0 kb/sec and the same slow-down started to happen.
So I boot again.. and now when it started to fsck the LV's it slowed-down again. So I booted with init=/bin/bash and let the sync finnish without any other access to the RAID/LV's and after that everything worked fine again.
So the problem seems to be that when accessing the RAID5 while it is syncing locks somewhere. Does anyone know of a fix or know what I should do so that syncing won't kill the machine.
Kaj-Michael Lang
[email protected]
Java? I've heard of it, it is what I drink while hacking PHP!
You are running off of parity. Until you get that drive fixed, it will hurt.
Signature · 5 lines
Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [email protected]
Quoted 31 lines · Kaj-Michael Lang
I'm mailing this to the LVM list as it might also be the cause of this.. I don't know.
Anyway I have 4 6g drives in a RAID5 configuration. On top the md device I have a VG and a couple of LV in it. I'm running 2.4.4 with the beta7 LVM patch and using ext2 on all the LV's.
It now happened that one drive failed (actually just a IDE cable problem but anyway) and the machine became really really slow. Load was up to 200 and almost every command got stuck so all I could do was to boot.
It came up ok, and I hotadded the drive back and it started to sync but after a while the sync was down to 0 kb/sec and the same slow-down started to happen.
So I boot again.. and now when it started to fsck the LV's it slowed-down again. So I booted with init=/bin/bash and let the sync finnish without any other access to the RAID/LV's and after that everything worked fine again.So the problem seems to be that when accessing the RAID5 while it is syncing locks somewhere. Does anyone know of a fix or know what I should do so that syncing won't kill the machine.
Kaj-Michael Lang
[email protected]
Java? I've heard of it, it is what I drink while hacking PHP!_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Quoted 13 lines · Kaj-Michael Lang
Anyway I have 4 6g drives in a RAID5 configuration. On top the md device I have a VG and a couple of LV in it. I'm running 2.4.4 with the beta7 LVM patch and using ext2 on all the LV's.
It now happened that one drive failed (actually just a IDE cable problem but anyway) and the machine became really really slow. Load was up to 200 and almost every command got stuck so all I could do was to boot.
It came up ok, and I hotadded the drive back and it started to sync but after a while the sync was down to 0 kb/sec and the same slow-down started to happen.
So I boot again.. and now when it started to fsck the LV's it slowed-down again. So I booted with init=/bin/bash and let the sync finnish without any other access to the RAID/LV's and after that everything worked fine again.
Quoted 3 lines
So the problem seems to be that when accessing the RAID5 while it is syncing locks somewhere. Does anyone know of a fix or know what I should do so that syncing won't kill the machine.
This is the "RAID5 speed limit" which only kicks in if you have I/O to the volume while you are resyncing. You can change a parameter somewhere in the RAID code which increases the minimum speed at which resync is done on active volumes (at the expense of performance for other apps).
If you have a single huge RAID 5 volume which is always in use while the system is running, then you will always get the resync slowdown. I'm not sure why this would cause your whole system to get so slow, unless it is something like you are swapping to RAID5, and this kills performance.
Cheers, Andreas
Signature · 3 lines
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- DogbertWell, as noted, he's got one drive Not in the raid5 right now so his R5 is running in a degraded state, versus optimal. This will case some pretty sever slowdows with software level raid5, vs hardware dedicated to the job.
Signature · 5 lines
Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [email protected]
Quoted 4 lines · Andreas Dilger
If you have a single huge RAID 5 volume which is always in use while the system is running, then you will always get the resync slowdown. I'm not sure why this would cause your whole system to get so slow, unless it is something like you are swapping to RAID5, and this kills performance.
Quoted 7 lines · Andreas Dilger
Kaj-Michael Lang writes:
[...]
This is the "RAID5 speed limit" which only kicks in if you have I/O to the volume while you are resyncing. You can change a parameter somewhere in the RAID code which increases the minimum speed at which resync is done on active volumes (at the expense of performance for other apps).
Under 2.4.x there are two "tunnables" on /proc, namely:/proc/sys/dev/raid/speed_limit_min /proc/sys/dev/raid/speed_limit_max
Both are expressed in KB/s. The latter sets the maximun array reconstruction speed for RAID-1,4,5 (taking available IO), and the former sets the minimun "guaranteed" reconstruction speed.
At least on my 2.4.4, "minumun speed" is set to 100 KB/s, and "maximun speed" equals 100000 KB/s, but it seems that array reconstruction always operate at the minimun guaranteed speed, 100 KB/s.
So echo "5000" > /proc/sys/dev/raid/speed_limit_min should help determining whether this speed limit is causing the problems described.
Signature · 5 lines
Jos� Luis Domingo L�pez Linux Registered User #189436 Debian GNU/Linux Potato (P166 64 MB RAM) jdomingo EN internautas PUNTO org => � Spam ? Atente a las consecuencias jdomingo AT internautas DOT org => Spam at your own risk
Quoted 3 lines
You are running off of parity. Until you get that drive fixed, it will hurt.
I *think* I've found out what happened (not sure, not tested), fsck was trying to scan all of the LVs on the same raid5 at the same time. And as the raid5 code had to calculate everything and trying to sync in the background... instant high load. But I'm not sure.. and I really don't wan't to test it..
Could that be it ?
Quoted 5 lines · Kai-Michael
I *think* I've found out what happened (not sure, not tested), fsck was trying to scan all of the LVs on the same raid5 at the same time. And as the raid5 code had to calculate everything and trying to sync in the background... instant high load. But I'm not sure.. and I really don't wan't to test it..
Yes, there was a bug in fsck where if it couldn't determine if two devices were on the same disk, it assumed they were NOT and did fsck in parallel. In the MOST recent fsck (i.e. 1 week old, CVS only), this has been fixed so that it will run the two fscks in serial. Whether that was your problem or not, I'm not sure.
Cheers, Andreas
Signature · 3 lines
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert[linux-lvm] lvm_chr_ioctl
I seem to be getting some errors forlvm_chr_ioctl: unknown command 4004fe0a
When I do a vgcreate. I also noticed that if a partition is under heavy strain and I take a snapshot, the snapshot seg. faults, and all subseqent lvscans will also until I lvremove the volume and re-create it.
Should I be worried about the lvm_chr_ioctl???
Thanks in advance, Justin Booth
Re: [linux-lvm] lvm_chr_ioctl
Justin:
I saw this exact same message (either when doing a vgscan or vgchange -a y). Well, I'm not 100% sure about the number reported in the error message, but it looks the same.
In my case it was because i was running the beta2 version of the kernel code and the beta7 version of the user-space software. I had recompiled my kernel and forgotten to re-apply the kernel patch. I fixed the problem by patching the kernel code up to the beta 7 version.
Quoted 16 lines · Justin Booth
I seem to be getting some errors for
lvm_chr_ioctl: unknown command4004fe0aWhen I do a vgcreate. I also noticed that if a partition is under heavy strain and I take a snapshot, the snapshot seg. faults, and all subseqent lvscans will also until I lvremove the volume and re-create it.
Should I be worried about the
lvm_chr_ioctl???Thanks in advance, Justin Booth
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html