raid and lvm
maybe I am misunderstanding. I was looking to do software raid (off of a non-raid SCSI controller.)
The main reason I wanted raid5 was as a failsafe measure since it would appear that things can get tricky if a harddrive fails in lvm. Is there another way to create a failsafe through lvm without needing to implement software raid?
Christophe Saout ([email protected]) wrote*:
Quoted 30 lines
Am Die, 2003-01-28 um 18.34 schrieb SI Reasoning:
Quoted 2 lines
I was following an old list and at that time they felt that it would be more efficient to merge either lvm into raid or vice-versa.
Yes. I've looked into the DM code in the kernel and I have to say it's a very clean architecture. Since LVM2 needs some kind of Raid 0 (a transparent mirror in the background) to implement pvmove it would be a code duplication.
Also since DM has a nice plugin architecture and already has generic bio splitting code, it would even save some memory when the raid drivers would be reimplemented as DM plugins. (so the bloat argument doesn't count)
Also you don't need the extra meta data the raid code actually has (ok, raid autodetection won't work anymore but as far I understand the kernel developers, that's depracted anyway). I've had problems with the raid metadata code that could have been solved with things like vgexport and vgimport.
But I think that's going to be adressed via the new in-kernel initramdisk anyway.
And I think that the performance is better when raid is implemented in DM than to run one device mapper over another one.
Quoted 6 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--
SI Reasoning
[email protected]
gpg public key ftp://ftp.p-p-i.com/pub/si-mindspring-pubkey.asc
The significant problems we face cannot be solved by the same level of thinking that created them. -Albert Einstein
Am Die, 2003-01-28 um 20.00 schrieb SI Reasoning:
Quoted 5 lines
maybe I am misunderstanding. I was looking to do software raid (off of a non-raid SCSI controller.)
The main reason I wanted raid5 was as a failsafe measure since it would appear that things can get tricky if a harddrive fails in lvm. Is there another way to create a failsafe through lvm without needing to implement software raid?
Sorry, this post wasn't an answer to your problem, it was a comment on the discussion whether raid should be implemented in LVM or not.
At the moment neither LVM1 nor DM (LVM2) can provide redundancy. But you can use LVM on top of the software raid5 driver in linux. I don't think there is another way at the moment.
Signature · 1 line
Christophe Saout <[email protected]>
[linux-lvm] RAID5 bug? [was: Re: raid and lvm]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 3 lines · Christophe Saout
At the moment neither LVM1 nor DM (LVM2) can provide redundancy. But you can use LVM on top of the software raid5 driver in linux. I don't think there is another way at the moment.
Hi. What is the best current answer to the canonical LVM plus software RAID5 issue? FYI, I'm talking about how the kernel's cache needs to correspond to the width of i/o requests. When LVM controls a RAID5 PV, it will cause many differently-sized i/o requests to hit the array in parallel, basically forcing the kernel to flush the cache and rebuild continuously. So, basically my array performs horribly once I create a snapshot volume.
I'm using LVM2.1.95.10 + 2.4.20-dm-7.
Some older LKML traffic explains the problem, but I haven't found an answer yet.
Thanks much.
- --
Jason Smith
Open Enterprise Systems
Bangkok, Thailand
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+Qizym5qEoSbpT3kRAhKwAKCubNE0VqXCqtdnlRDowuUlLWeWGQCcDjan ZxpF2yaJud/9JM2fnTg23kQ=
=YCls
-----END PGP SIGNATURE-----