RAID5 + LVM stillborn
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi. I have a quick RAID 5 question. Sort of a repost, but I can't get an answer.
May I assume that LVM does not support RAID 5 due to the serialization problems? Theoretically, 2.6 will have a fix but this has already been a problem for over two years. And if 2.6 develops like 2.4 did, then we should not use it for production for many months after its release.
Thus it looks like people will not be able to deploy these types of Linux file servers for some time hence -- a terrible thought.
For example, testing with LVM2 and DM from CVS, I made one snapshot under light network load and it brought my machine to a complete stop, then oopsed it. I'm glad to help if any developers are interested.
Thanks.
- --
Jason Smith
Open Enterprise Systems
Bangkok, Thailand
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+W0qnm5qEoSbpT3kRAt7NAJ0W+h0Mjy1hblBj6c9XcLKxv97QUQCcDkEP vvSxFIrFLctlnj9gZ7tnYWQ=
=EaAI
-----END PGP SIGNATURE-----
Quoted 10 lines · Jason Smith
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Hi. I have a quick RAID 5 question. Sort of a repost, but I can't get an answer.
May I assume that LVM does not support RAID 5 due to the serialization problems? Theoretically, 2.6 will have a fix but this has already been a problem for over two years. And if 2.6 develops like 2.4 did, then we should not use it for production for many months after its release.
As far as I'm aware the only reason LVM doesn't have raid5 is that nobody has written it. What is the serialisation problem ?
Quoted 3 lines
For example, testing with LVM2 and DM from CVS, I made one snapshot under light network load and it brought my machine to a complete stop, then oopsed it. I'm glad to help if any developers are interested.
This is not good, could you repeat you tests with the latest patchset please ?
http://people.sistina.com/~thornber/patches/2.4-stable/2.4.20/2.4.20-dm-9.tar.bz2
If that still fails could you give us some more information about your system (eg, send us the latest metadata backup).
- Joe
Quoted 2 lines · Joe Thornber
As far as I'm aware the only reason LVM doesn't have raid5 is that nobody has written it. What is the serialisation problem ?
Software RAID in 2.4 maintains a stripe cache that must be the same size as the incoming reads and writes. Usually this is 4k for standard filesystem io. But e.g. if you do a mkfs, then it can change. When md gets a request for a different sized read or write, it flushes the cache and rebuilds for the new size.
That's a bad feature in LVM's case, because once you make a snapshot, you get a barrage of requests coming in at different sizes: filesystem (4096), snapshots (512) and I think syncs (0), so in effect there is no cache since it's syncing several times per second.
Like I said, the perfomance is very bad. I oopsed a machine today by snapshotting an incoming FTP directory. Sorry, I sort of threw up my hands earlier. But tomorrow morning I'm going to see how repeatable it is and post to -dev.
Thanks.
Signature · 3 lines
Jason Smith Open Enterprise Systems Bangkok, Thailand
Quoted 2 lines · Jason Smith
Software RAID in 2.4 maintains a stripe cache that must be the same size as the incoming reads and writes.
Yuck. There's not a lot I can do about it if there is a restriction/bug in MD. The snapshot target will do io in 'chunk size' sizes. Which is 32k by default in LVM2. So md should be able to cope with this. I'd be really interested to see the stack trace for this oops.
- Joe
Quoted 2 lines · Jason Smith
May I assume that LVM does not support RAID 5 due to the serialization problems?
I'm running LVM on top of RAID5 (MD) since years, without any trouble. The only problem was that a disk failure brought the machin to a halt, as the whole IDE subsystem locked up ... costs of going cheap I think. But after I removed the broken disk everything was fine again. No data lost.
Signature · 4 lines
Goetz Bock (c) 2003 as blacknet.de - Munich - Germany /"\
IT Consultant GNU FDL 1.1 secure mobile Linux everNETting \ /
X
ASCII Ribbon Campaign against HTML email & microsoft attachments / \