You are not logged in.
Pages: 1
I've been installing Linux for years and have always done just basic ext3/4 partition tables and never tried LVM. I've researched what it is and how it works but I'm wondering if there are any issues with formatting with LVM. Does anyone have any feedback if LVM has some down falls or issues?
Thanks.
./
Offline
If one hard drive in the logical volume fails, the entire logical volume goes down with it, unless you're mirroring it. Still worth it, IMO.
If you can do hardware RAID though, might as well just go for that.
Offline
So you're saying LVM is good if I DON'T use software RAID but hardware RAID is good with LVM?
./
Offline
I don't like how with LVM/linux the block layer, device mapper and filesystem are all separate layers.
With ZFS it's one thing, so the block-level code can do optimisations based on application level patterns (zfs will automatically adapt it's data distribution based on load patterns)
I think btrfs has (or will have) things like that as well (to some extent, I don't know what will happen with the block layer code in Linux)
on the topic of raid: btrfs can do "raid"-like setups.
I wouldn't use hardware raid anymore (unless you need high performance parity calculations which you don't want to affect your CPU, but still I would consider it). with hardware raid you're bound to a vendor and to a specific metadata layout on your disks. with softraid, you can use whichever disks and controllers, and the performance bottleneck is usually your disks, not your controller.
Last edited by Dieter@be (2010-12-16 18:48:50)
< Daenyth> and he works prolifically
4 8 15 16 23 42
Offline
Personally I use LVM on all my 150 linux servers and never had a problem with it... Its rely perfect ... But I'm rely waiting to see how the new ZFS on linux works. I'm using it on solaris. And I got to say that it's rely rely nice working with it.
Where there is a shell, there is a way
Offline
oh yeah, another sucky thing about lvm: if you make n COW snapshots, all writes to make up for changes will be done n times. btrfs handles that better (writes are done once, independent of number of snapshots), although i've personally never made more then 1 snapshot at the same time.
< Daenyth> and he works prolifically
4 8 15 16 23 42
Offline
Even if you only have one Harddrive LVM has its advantages. MUCH more flexible partition management.
If you like to split your linux install into separate partitions for /boot / /home /var and such, LVM is a godsend. What I usually do is to create the partitions I want, and give them as little space as necessary, and only grow them when the need arises.
The beauty of LVM means that you can expand your partitions on the fly, while in use. No need to unmount or reboot.
Plus, you can add an extra HD and grow your storage temporarily and then remove that HD again if you have enough space for LVM to move the data.
If your nervous to try it out in a live setup. Just experiment with an external HD. Creating Partitions, resizing them, etc.
Once you get used to the flexibility of LVM, it's kind of hard to go back to the standard rigid partition setup.
Offline
The only "issues" I've had are when doing recovery/migration work, it a bit trickier to mount the LVM on another machine (compared to "normal" partitions), particularly when working from images rather than actual block devices. But 'kpartx' has solved this problem
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
I read that if you have an SSD drive, avoid LVM (and even software RAID and encryption) if you want to take advantage of the drive's "Trim" feature. Trim commands cannot be sent past a layer of LVM, software RAID, or encryption/LUKS, even if an ext4 file system sits on top of it all.
Maybe it is different now?
Offline
The beauty of LVM means that you can expand your partitions on the fly, while in use. No need to unmount or reboot.
But can you also expand the filesystem on the fly?
Offline
But can you also expand the filesystem on the fly?
Depends on the filesystem... ext4 and JFS can, IIRC I think etx3 can.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Pages: 1