I want to use LVM to have a partition that spans over multiple drives. I know that there is a down side in that if one drive fails all the data in the array is lost. Is it possible to have LVM not stripe the data and in case a drive fails then only data that has parts of it on the fail drive will be lost? So theoretically i lose only the data which is on the failed drive
|
|
based on this QA you are SOL with LVM and any current/stable file system http://serverfault.com/q/208155/6625 I looked into btrfs but no luck there yet either!!! Since you want a "logical volume" spanning 2 or more disks... for the volume to be larger then a single physical disk.. then you have an alternative to using LVM to achive this. read up on the linux "mdadm" tool which is also know as the Linux Software/Kernel Raid sub-system. If you have at least 3 drives, then you have the option of using the Linux Software Raid system (mdadm; Multi-Disk ADMin) to create a 3 disk RAID-5 (striping with parity) "disk-array" volume so that if one drive fails, then the array will continue work in a degraded performance level until you can "replace" the physical failed drive with a new one, re-partition with the same size as last, and use mdadm tool to add the new volume to the array and rebuild.. all while working with the system. RAID-5 "disk-arrays" reduce your 3 disk capacity to the same as a 2 disk volume though. so, for example.. 3 x 1TB drives in RAID-5 can give you a big (and fast) 2TB volume that spans all 3 drives with striping for performance as well as the stripping of the "parity" data that allows the volume to still work read&write even when one disk fails completely. None of the above requires LVM either... However.. nothing stops you from using LVM on top of mdadm "disk-arrays".. |
|||||
|