Linux LVM - Is It Ready for Prime Time?
Deagol asks: "I'd like to replace our aging IBM server with a commodity solution (Linux, 3Ware cards, and lots of IDE drives). The main reason is price (the cost of 5 36GB SCSI disks for this sucker -- one of which died today -- could pay for the replacement server with 2TB of usable space after RAID-5. Being a huge fan of AIX's LVM,I've recently been playing with the Linux version of LVM. It's got all the right features (and even the ability to shrink logical volumes, a feature which AIX 4.3.3 doesn't have!), though the commands aren't as polished as the AIX counterparts. The big question for me is, will it stand up and be stable under heavy load, like the IBM does? Is anyone running Linux LVM on a 1TB+, 24/7 production machine?"
For those who haven't used it, the LVM support on AIX is probably the best in the industry. It allows you to do just about anything, in a very clean, structured (if somewhat hard to figure out at first) way. I personally have not used it on Linux, so can't comment on the poster's main question, but the kernel-raid stuff is not up to part with IBM's LBM.
"He who would learn astronomy, and other recondite arts, let him go elsewhere. " -- John Calvin, commenting on Genesis 1
There are rumors that the Linux LVM code is part of the Legal issues between SCO and IBM. Just something to be aware of it planning on implementing this solution.
-The main reason is price (the cost of 5 36GB SCSI disks for this sucker -- one of which died today --
Odds are the drives are OEM versions of a very popular drive vendor, perhaps pop it out, figure what kind of drive it is, buy a new one that is an exact match (or better yet, buy five new ones of exactly the same type) and replace them yourself for +/- $2,000 total) and restore from your backup. Maybe this is a little oversimplified but if it is a RS/6000 box odds are it uses regular ol' SCSI drives.
Glonoinha the MebiByte Slayer
I built LVM into a RH 7.3 kernel and used it for a DB2 database box. Worked great with the dell 2650 and a 1 tb powervault 220s (raid5 ...aaarrrg...) with the perc3 raid controller. It passed our rather aggressive load testing cyle, ~7 days constant load w/ a variety of different tests, (broken queries, massive table joins, etc, stuff you WOULDN'T want to see in production) and passed with flying colors. It remained in production for a little under a year until we migrated to a Oracle on Linux solution w/o LVM (RedHat AS2.1). I'd do it again in a minute if the implementation called for it.....
just my 2 cents.......
I've used LVM on my home server for a year or two now without any issues whatsover. I've been using it about as long on my development server at work as well...same story. Rock solid, no problems.
YMMV, however, as neither one of these boxes is heavily loaded and I've never required the functionality on any of my production servers..
Show me what you want, and I'll show you how to get along without it...
But, it's looking as if the LVM code isn't actually included in the 2.5/2.6 series of kernel (I could be wrong). If you plan on upgrading to this eventually, stay away from LVM. If you don't care just dive in.
Well, according to SCO, the LVM support in Linux was added by IBM, so it's probably pretty good.
(/me ducks)
"Lawyers are for sucks."
- Doug McKenzie
If you like the aix system, and want something made by IBM that's even to a certain degree "compatible" with the system AIX uses, then have a look at evms.
I have been using LVM on my workstation and just about every machine that I have built in the past 2 years. I also use AIX everyday and agree that the LVM is very robust but I prefer the simplicity of the linux LVM.I recently built a box with software raid 0 and made the whole thing on physical volume and have had zero problems. I have also user the LVM to migrate date from one dist to another without any problems. Oh and did I mention that the LVM howto is really really easy to understand even if you have no previous LVM experiance.
is that they keep replacing it and reimplementing it in the kernel.
The one linked to in the article (Sistina's) is in 2.4. I'm using it at home, and I like it. We're considering using it at work, but I hear rumours that 2.6 will contain Something Completely Different (Again), which annoys me.
You cannot apply a technological solution to a sociological problem. (Edwards' Law)
I've not used LVM and I am trying to get a grasp of what it offers. After reading up on it and checking out the Sistina site, I have come to the conclusion that LVM is a method using software as a RAID controller. Is this correct?
If this is correct, I can certainly see advatages in terms of ease of use and cost, versus a hardware RAID solution. But, then I see comments about using LVM on top of hardware RAID. So I wonder, what is the point?
Using good hardware RAID, I can span multiple physical disks creating a single or multiple volumes/partitions as RAID 0,1,5. I can resize/expand the volumes (in some cases dynamically) through the hardware. With difficulty and the right hardware I might even be able to reduce the size of a volume. So, if this is all true, what does LVM offer over hardware RAID, besides cost?
I'm sorry. What is LVM?
THIS SPACE FOR RENT
We use EVMS on a 2.6TB file server and it works fine.
As far as stability and reliability goes, I haven't experienced any problems yet.
/boot has to be a non-LVM partition. I'd recommend making a root filesystem of a few hundred megs, outside of LVM. It's less of a hassle than making a separate /boot filesystem outside of LVM.
... etc.) but if you're used to AIX LVM, you'll be up to speed with this in no time.
There are some features though that are still missing from Linux LVM, compared to AIX LVM. One of them is mirroring on the logical volume level (no mklvcopy command). You can sort of get around this by creating a software raid device, and then make it a physical disk. Or even better: just go for a hardware RAID(1/5) solution.
Another thing to keep in mind is that, unlike in AIX, you can't put *all* filesystems in LVM. Either the root filesystem or
Also if you want to be able to resize live filesystems, you have to be careful about your choice of filesystem. Reiserfs for example supports online resizing, while ext3 doesn't (yet?)
All things considered Linux LVM is a great addition to Linux, but it's not as nicely integrated yet as AIX's LVM.
One final thing to note is that the Linux LVM commands seem to be modeled after HP-UX LVM rather than AIX LVM. (e.g. lvcreate instead of mklv, vgdisplay instead of lsvg
The mail spool for a 15k-user ISP in southwestern Ontario is running on Slack9 + LVM (Reiserfs). It exports the spool via NFS and the edge servers (SMTP+IMAP4+POP3, virus+spamscan) mount the spool directly over ipsec. No issues. I can grow the filesystem, take snapshots and it all just works. The PostgreSQL database is also on an LVM volume, but I haven't had to do much with it related to LVM yet, as pg_dump works live.
I have a number of other mail spools for businesses around the area (probably a half dozen to 10 or so) -- around 100-300 users each. Same story, backups are very nice when you can just take a snapshot.
I'm currently evaluating Appgen Custom Suite as a replacement for our current Accpac and Misys accounting and inventory/manufacturing infrastructure. LVM is very nice here for growing the db partition and snapshotting means the system is only down for seconds instead of the time it'd take to dump the entire db to tape.
All in all, I am very pleased with LVM. I do all my LVM on software RAID1 or hardware RAID5, but there's been no interaction or badness show up so far. I realize it's possible to do RAID1 with LVM but there's no documentation on how to "un-fail" the volume after a drive fails or how to manage it, so until then md or the hardware tools will have to do. :-)
I'm not going to buy into the IBM LVM vs Linux Software Raid debate, but no one has mentioned something thatâ(TM)s just as important. One of the big advantaged with a good SCSI enclosure is the ability to pull and pop drives in and out without powering down.
With good hardware, you can walk up to a running machine and replace the failed drive then and there. Hopefully your 144Gb raid-5 array has been fully rebuilt by the time you come back from lunch. If you don't have hot-swap hardware, you have to schedule downtime, come back later that night, shut it down, pull the drive and pop in a new one. And hope everything powers up OK, cos if the power supply stuffs up at that time of night and you don't have a (good) support contract you are going to have a lot of fun getting everything going again before the rest of the office shows up for work.
I know you can get hot-swap IDE hardware these days, but I've never used them. I suspect hot-swap IDE drives are not that much cheaper then SCSI, but I could be wrong.
One last little bit of advice, try including a hot spare in your array. Its nice to come in in the morning and read an email saying that a hard drive failed last night, and the array was automatically re-built using the spare before start of business. If you are going to go with non hot-swap hardware, Iâ(TM)d say this is a must. Running raid-5 in degraded mode is no fun.
Democracy isn't about no one telling you what to do. It's about everyone telling you what to do.
One thing you can do under AIX/IRIX/etc that you can't do under linux is to grow a filesystem on the fly. You have to umount first, which is rather silly in a production environment. Of course, if you're running XFS on your linux box, this wouldn't be an issue.
I've got 8 servers managing about 20TB total with all of it being managed by LVM.
/boot with 100M and the rest of the drive is LVM.
The 30 RH desktops I've installed have
Dumb question: I just installed RH9 last night, and I had a choice of files systems, including ext3 and LVM. Does LVM do its own journaling, (i.e., fast, clean recovery following a crash)? Does it build on top of ext3 or something similar?
You mean like Microsoft's Dynamic Disks and Novell's NSS?
On a compaq proliant server with a 500 Gig RAID 3 configuiration. The firmware did all the mirriroring. The performance was not bad at all, in fact i didnt realize any downsides. One more thing i tested is adding physical volumes to the array, and as posted above (it was transparent to the users, they didnt even feel the difference), which is good.
The lunatic is in my head
I had similar problems with IDE disks and ext2/3. You need to alter the bdflush settings in
Try:
echo "5 150 0 50 100 3000 400 20 0" >
(The first two numbers are most important in this context)
This makes the disks write almost continuously if there is data in the buffers. The kernel docs give more information.
http://blog.grcm.net/
Well I was using LVM for about an hour or so, but I decided to go for RAID-0 instead ;)
Mmmm... tasty striping.
Hi,
I was wondering if we could switch the approach slightly.
All underlying fs seems good on paper and all seem to have strong/weak points depending on the view/desired usage.
Since there's no solution that fits it all (speed, reliability, price etc) under all possibile scenarios lets try to focus in a particular one.
I have a server for which I can have small downtime If I need to replace a defective drive, but can not tolerate to loose data or extensive fsck if for some reason it locks up.
So, since hard disks die from time to time, and hard disk space usage tends to increase which is the "best" solution (considering only linux and not high-end solutions) ?
Use a RAID controller and disks (either SCSI or IDE) to have the "high-availability" and LVM to have the dynamic increase ?
If so which configuration would you recommend for a 100 Gb solution ?
I am assuming a software RAID0 for the OS (/boot or the entire OS) using ext3 or reiser for the partitions.
RAID5 hardware and LVM for the SCSI or IDE (not both)