Slashdot Mirror


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?"

62 comments

  1. LVM on AIX rocks. by Fished · · Score: 3, Informative

    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
    1. Re:LVM on AIX rocks. by Josh+Booth · · Score: 1

      Maybe some of that AIX code filtered down into Linux while IBM was working on it. Just my 2 cents.

  2. Linux LVM by claydean · · Score: 0

    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.

    1. Re:Linux LVM by Linux_ho · · Score: 2, Informative

      I think that was EVMS, not LVM. EVMS was a potential IBM replacement for LVM, but was rejected by Linus.

      --
      include $sig;
      1;
    2. Re:Linux LVM by bobbozzo · · Score: 5, Funny
      And IBM's EVMS interface can run on top of LVM (http://evms.sourceforge.net/)

      So the poster will be able to replace his costly IBM hardware with free IBM software. If that's not ironic, I don't know what is.

      --
      Nothing to see here; Move along.
    3. Re:Linux LVM by XO · · Score: 1

      That is rather amusing. I wish I had mod points.

      Well, I suppose it is proof positive that IBM is in two business: Support, and Hardware.

      --
      "Champagne for my real friends - and real pain for my sham friends!" http://ericblade.postalboard.com/
  3. Why the pricey replacement drive? by Glonoinha · · Score: 2, Interesting

    -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
    1. Re:Why the pricey replacement drive? by crow · · Score: 3, Informative

      Don't be surprised if that doesn't work. I'm not sure about IBM, but in some cases the storage vendor installs custom firmware on the drives. If you install a different drive in the system, it might not behave correctly.

    2. Re:Why the pricey replacement drive? by darkang31 · · Score: 3, Informative

      (cough) Have you ever priced an IBM SSA drive? Scsi it's not. We're running many many terabytes of Shark storage here, most of which is attached to either the Mainframes or the SP complexes, and the cost of a 36GB or 72GB SSA drive are STAGGERING.

    3. Re:Why the pricey replacement drive? by Deagol · · Score: 1
      The drives are encased in special mounting hardware (providing status lights, etc.), which are then mounted into 2104-DL1 enclosures. We have 5 of these enclosures, fully populated (10 drives each), and the max size HD they support is 36GB. These HDs list at about $1800 from IBM, and I can get 3rd party refurb units for about half that.

      In any case, I wouldn't risk replacing the actual disk within the mounting hardware, even if it were fairly simple. The attached hardware is just too expensive to risk frying.

    4. Re:Why the pricey replacement drive? by Mr.+Piddle · · Score: 1

      I'm not sure about IBM, but in some cases the storage vendor installs custom firmware on the drives. If you install a different drive in the system, it might not behave correctly.

      As far as I can tell, Sun doesn't do this, at least. I installed a Seagate U320 SCSI drive into a Sun Ultra workstation--it works beautifully (only at 40MB/sec, now). Most of the Sun-branded drives are really just certified model numbers of Seagate, IBM, Fujitsu, or, historically, Conner drives.

      --
      Vote in November. You won't regret it.
    5. Re:Why the pricey replacement drive? by Bake · · Score: 1

      A case of ID ten T?

      Using disks from the same batch, from the same manufacturer (which is what comes to my mind when you say an "exact match") for a RAID setup, pretty much goes against every decent thing I've read about and learned through the years.
      The general reason being that once a disk in a batch goes down, so shall the other disks in the same batch go down pretty soon too, thus increasing the risk of having more than one disk down (thus potentially losing data).

      Use disks from different batches. Hell, use disks from different manufacturer! It'll reduce your risk of you losing data.

    6. Re:Why the pricey replacement drive? by Glonoinha · · Score: 1

      I meant model number, not same batch. My theory was that by going with a new drive of the same model you have reduced the amount of reconfiguration necessary during the swap out ...

      However, if the drives he has are 3+ years old and have been running for three years straight, only now starting to see failures - that sounds like a pretty good batch to me.

      Unless they are on the far-side of the bathtub shaped curve (drive mortality is very high at the very beginning, and at the end of the expected life cycle), which three years is not, no, all the drives from that batch are not going to follow suit and up and die in the immediate future. The drive setup he has from IBM sounds like a high-availability setup and they aren't using home-user spec' IDE drives ... more like industrial / server rated drives.

      Generally in RAID setups, nice ones, you try to match the performance specs on all the drives (once again I am not talking about software / OS level data striping on your home NT box) in a particular drive array.

      --
      Glonoinha the MebiByte Slayer
    7. Re:Why the pricey replacement drive? by hbackert · · Score: 1

      EMC changes the firmware in their drives which look a lot like Seagate ones. But honestly, would you even think about putting an off-the-shelf-drive into an expensive EMC box?

      Sun has firmware updates for their disks in T3 storage arrays. I would not expect any problem, but i don't want to find out that the T3 completely crashed after a firmware update of the drives, just because one of the drives had a small bug in the firmware which prevented it from being updated correctly.

      Quite often, while it's technically ok, you will lose all support. And the reason why companies stick with expensive Sun/IBM/HP hardware is, because unlike no-name-Taiwan-made-stuff there is support (which they pay for, usually a lot). I would not worry for any computer worth less then US$5000 to replace disks to generic ones, but management will not even think about replacing a US$800 disk with the same model generic US$200 disk in a US$50000 storage box.

  4. LVM and Redhat 7.3 by cvande · · Score: 5, Informative

    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.......

    1. Re:LVM and Redhat 7.3 by colonwq · · Score: 1

      That is the same setup I have on my work bench now except the drive are the 146Gb instead of the 73Gb. It will be a nice upgrade from the old multipacks the department is using now.

      About a year and a half ago we setup a 6450 with fiberchannel and lvm. It is still running good.


      :wq

      --
      -- Phase 1: Collect under pants Phase 2: ? Phase 3: Profit
    2. Re:LVM and Redhat 7.3 by Deagol · · Score: 1

      While load testing, did you use any of the dynamic LVM features? It's good to know that it'll stand up during a heavy load. But what about growing a filesystem under load? What filesystem did you test with? Reiser or ext3?

  5. non-production use by Tesseract · · Score: 1

    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...
    1. Re:non-production use by Wolfrider · · Score: 1

      --I'm using Knoppix/Debian's LVM on both IDE and SCSI drives on both of my home servers (different logical volumes tho.)

      --As far as LVM being "ready for prime time" - well, it works - altho I haven't had to deal with a drive failure yet. It doesn't have a decent free frontend (ncurses) interface unless you use something like SuSE's LiveCD (yast) to set things up.

      --BTW, I recommend using Reiserfs over LVM. Just my experience.

      --
      .
      == WolfriderV6 == I'm willing to admit that *I just might* be wrong... Are you??
    2. Re:non-production use by Tesseract · · Score: 1

      I don't use alot of reiser fs's, but what do you mean by using reiser -instead- of LVM?

      --
      Show me what you want, and I'll show you how to get along without it...
    3. Re:non-production use by Wolfrider · · Score: 1

      --Sorry, that means use Reiserfs *along with* LVM.

      --
      .
      == WolfriderV6 == I'm willing to admit that *I just might* be wrong... Are you??
  6. Yeah, sort of. by Lukey+Boy · · Score: 2, Interesting
    I'm running a huge ReiserFS slab of space over an LVM IDE cluster using cheap drives and Promise cards, and it's perfect - totally stable and the box has lots of traffic with uptime approaching 6 months.

    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.

    1. Re:Yeah, sort of. by Anonymous Coward · · Score: 0

      lvm is in 2.5.x - lvm2 actually. Backwards compatible ofcourse.

    2. Re:Yeah, sort of. by Deagol · · Score: 1
      That's another thing I wanted to ask. Which file system do folks recommend? Ext3 seems solid ( as it's based on the tried-and-true ext2), Reiserfs, on the other hand, is a fairly new player (though it looks pretty slick on paper).

      The server will serving home file systems, so there will be no "norm" for usage patterns. I like that reiser lets you grow filesystems on the fly. But is it as solid as ext2/ext3?

    3. Re:Yeah, sort of. by Chronoforge · · Score: 1

      I quite like XFS. Nice and fast. SGI provides patches against all major kernel versions as well as official releases that are heavily tested. In the official releases, there are kernels derived from both the stock Linus kernel as well as RedHat's.

      There are four gotchas with XFS, though:

      First, while you can grow an XFS filesystem, you can't shrink it. You have to backup and mkfs.

      Second, if you lose power between writing metadata and data, you can end up with a partially empty file. Since I know you'll have it on a UPS, this is less of a concern.

      Third, if the system finds an inconsistency in a running filesystem, it'll unmount that fs and make you run xfs_repair. This is good for preventing further corruption, but bad for root filesystems, because you can't ssh in and fix things. (I know you'd hate to have to drive in to fix it.) There's currently a thread on the XFS mailing list about this behavior, and talk of making the failure behavior configurable.

      Fourth, it's not included in RedHat. However, SGI has kindly provided modified installation CDs for RedHat 7.2 (or earlier) through 9.0. You can also copy the files into a stock RedHat tree for NFS/FTP/HTTP installs.

      Official XFS website:
      http://oss.sgi.com/projects/xfs

      Dave

    4. Re:Yeah, sort of. by Hast · · Score: 1

      I've had a bad experience with LVM+XFS. The first drive on my LVM volume died and took the rest of them with it. Not that it has anyting in particular to do with XFS though, but I couldn't find a way to copy the meta data files so I had redundant versions of those. It would have been nice if I could have restored the data on the other drives in the volume.

      Well, you live and you learn, I guess RAID really is the way to go for storage. (Even at home.)

    5. Re:Yeah, sort of. by Chronoforge · · Score: 1

      I'll admit I've never played with LVM (just not enough need to do so), so I don't know how well it plays with different filesystems.

    6. Re:Yeah, sort of. by TheMeld · · Score: 1

      I've had some problems with ext2/3 on raid systems and under load. The ext* filesystems seem to like buffering up as much as they can, and then suddenly deciding to flush everything to disk, blocking i/o processes across the whole system while they do. Reiser has been, and continues to be (for me at least), much better behaved about scheduling its writes so that it keeps the i/o load on the disks match to the i/o load from user space processes, isntead of batching it up and then having to wait while it flushes buffers.

      Case in point: I was doing some high bitrate multimedia capture a while back. In my system at that time, I had both 10krpm u2w scsi disks, and some 5400rpm ide disks. In order to not get frame drops due to long flushes to disk with ext2/3, I had to jump through all sorts of hoops and basically have a process calling sync() every couple seconds, even when writing to the scsi disk. When I switched over to Reiser, I could take out the sync() calls and write to the slow arse ide disk with zero frame drops.

      Also, formatting 2TB with ext3 took 24 hours, but only about 30 seconds with Reiser.

      The only problem I've encountered with Reiser is that occaisonally, on a hard crash, some file that was being written to will end up with a whole bunch of garbage at the end of it, usually a block (4kb) or so of null bytes. I know from reading the Reiser mailing lists that I'm not the only one to have seen this. I've never seen it with ext3, but I haven't used ext3 as much, so YMMV.

      --
      -Cheetah
  7. Funny? Flaimbait? -- YOU DECIDE! by Asprin · · Score: 4, Funny


    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
    1. Re:Funny? Flaimbait? -- YOU DECIDE! by dhfoo · · Score: 1

      Nope. LVM was done by Sistina, I've been running it on my lightly loaded home server for ~3 years with no major problems. Minor problem with my mp3 collection which is on Reiserfs over LVM which has been extended a couple of times (as you do). Some of the files are corrupted, starts off as Thin Lizzy then jumps to a Cure track and then Dire Straits. I don't know if it was the resize_reiserfs that did it or the lvextend (or my PC objecting to Dire Straits). I have extended another logical volume which is ext3 over LVM without any problems but I don't think you can draw any conclusions from that. Just my .5 Euro worth.

  8. if you liked the aix volume manger, try evms by Void · · Score: 0, Redundant

    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.

  9. Linux LVM just works for me by linkages · · Score: 4, Informative

    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.

  10. The only thing that scares me about Linux LVM by devphil · · Score: 4, Interesting


    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)
    1. Re:The only thing that scares me about Linux LVM by Anonymous Coward · · Score: 0

      I wouldn't worry much. If you think about what it does, it seems LVM should be awefully easy to implement and debug. It's really a very simple thing, and changing it just isn't that risky.

  11. Could someone explain to me? by Anonymous Coward · · Score: 0

    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?

    1. Re:Could someone explain to me? by Wesley+Felter · · Score: 1

      There's only so much storage you can attach to a single RAID controller; LVM allows you to combine multiple RAID controllers.

      LVM also allows you to dynamically add and remove storage to a single filesystem.

    2. Re:Could someone explain to me? by Deagol · · Score: 4, Informative
      LVM gives you a nice layer of abstraction over the disk "device" layer. You can glob all of your "disks" (called "physical volumes") together into a moldable goo of storage called a "volume group". Physical volumes can be real hard drives, files, MD devices, and even regular disk partitions. A volume group, is sliced up into chunks (known as "physical extents" under linux, and as "physical partitions" under AIX). These chunks are the building blocks you then use to create usable file space with. Within a volume group, you can lump a collection of these chunks into a "logical volume" -- which can be though of like a partition, except it isn't tied to the physical space (hence the descriptor "logical"). Logical volumes can then be used like normal partitions and formatted with the filesystem of your choosing.

      The underlying hardware of the replacement box is 16 180GB IDE drives, split between 2 8-port 3Ware cards. Each card is doing RAID-5 with 7 drives, the 8th being a hot spare. I let the hardware manage the redundancy for me.

      Linux actually sees 2 1080GB (~1TB) SCSI drives. Using standard methods, I can partition these 2 drives any way you normally can under linux. But that kind of binds my feet.

      For example, what if the 500GB filesystem for Group A is full and they're clamoring for more space? Using standard partitioning, I'd have to create another larger filesystem, copy the data over, re-export the space, then finally re-claim the old filesystem. In addition to being a pain in the ass, this would require a down time for the users. However, using LVM, I can simply append more of those "chunks" I mentioned above, without creating a new filesystem, Better yet, I can do this on a live system -- my users won't notice a thing (other than the sudden appearance of new file space).

      It's really cool stuff.

      I'm still uneasy about the reliability, though. I have no hesitation about resizing on-the-fly with hundreds of people running batch jobs on the filesystem under AIX. I haven't seen enough of the Linux LVM in action yet to be that confident of its abilities. If anyone can comment on how Linux NFS and Samba handle having the underlying filesystem resized on-the-fly, I'd love to hear about it.

  12. LVM? by n-baxley · · Score: 0

    I'm sorry. What is LVM?

    1. Re:LVM? by Bombcar · · Score: 1

      Logical Volume Manager, it is a layer between the filesystem and the disk (device if a raid), and can be used to expand or contract the size of the device (add new disks, etc.)

      Also able to do snapshots, etc.

    2. Re:LVM? by Sloppy · · Score: 1

      It's a virtual block device that, in turn, calls other block devices, sorta like how software RAID works. The extra level of indirection between your filesystem and block devices can be used for assorted Neat Tricks.

      --
      As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
  13. Good experience with EVMS by Wesley+Felter · · Score: 1

    We use EVMS on a 2.6TB file server and it works fine.

  14. Linux LVM is ok, but some caveats by Spacelord · · Score: 3, Informative

    As far as stability and reliability goes, I haven't experienced any problems yet.

    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 /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.

    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 ... etc.) but if you're used to AIX LVM, you'll be up to speed with this in no time.

    1. Re:Linux LVM is ok, but some caveats by radoni · · Score: 1

      what, no initrd on AIX?

      --
      SIGERR: laziness exceeds quota
  15. I'm using it in several places by tzanger · · Score: 2, Interesting

    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. :-)

  16. Hot Swapping? by oh · · Score: 2, Insightful

    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.
    1. Re:Hot Swapping? by TheMeld · · Score: 1

      I think hot swap has more to do with the raid controller than the drives themselves. Of course, the physics of it have some to do with the enclosure as well, but push comes to shove, one can open up a running machine and unscrew a hard drive, it's just not as much fun as just releasing a latch and pulling on a lever.

      I have one of the (lower end) 3ware ide-raid cards, and they claim to support hot swap. You have to use their admin tool to tell the controller to deactivate the drive, but supposedly you can do that and then unplug the ide drive, plug in a replacement, and tell the controller to activate the new drive.

      --
      -Cheetah
    2. Re:Hot Swapping? by oh · · Score: 1
      I think hot swap has more to do with the raid controller than the drives themselves. Of course, the physics of it have some to do with the enclosure as well, but push comes to shove, one can open up a running machine and unscrew a hard drive, it's just not as much fun as just releasing a latch and pulling on a lever.


      Sure opening the case and using a screwdriver isn't as much fun, but its also risky. With a proper enclosure there is much less change you are going to stuff something up. Thats why servers that support hot-swap PCI have little doors in the case, so there is less chace you will drop a sccrewdriver onto the CPU :-)

      --
      Democracy isn't about no one telling you what to do. It's about everyone telling you what to do.
  17. Filesystem growing is missing by menscher · · Score: 1

    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.

    1. Re:Filesystem growing is missing by dhfoo · · Score: 1

      Yes you can.

    2. Re:Filesystem growing is missing by menscher · · Score: 1
      Yes you can.

      Prove it. Give a command that can do it, or something. I certainly don't know of a way, unless something changed in the past couple months.

    3. Re:Filesystem growing is missing by Dionysus · · Score: 2, Informative

      Been around pretty long.

      lvextend to increase the volume.
      resize_reiserfs to increase the filesystem.

      Only works if you want to increase the filesystem, not shrink it.

      --
      Je ne parle pas francais.
  18. I should hope so by Enry · · Score: 1

    I've got 8 servers managing about 20TB total with all of it being managed by LVM.

    The 30 RH desktops I've installed have /boot with 100M and the rest of the drive is LVM.

  19. Journaling file system vs. LVM by geophile · · Score: 1

    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?

    1. Re:Journaling file system vs. LVM by holden_t · · Score: 1

      Under AIX, yes. I have to *assume* this is true for Linux as well.

    2. Re:Journaling file system vs. LVM by Deagol · · Score: 1
      If you're familiar with the Linux MD (software raid) subsystem, LVM is just over that layer, more or less. During the install (using Disk Druid) you designate drives to be MD devices, then you partition them. LVM works in much the same way.

      In any event, the filesystem layer is last layer you apply -- it is totally separate from either MD or LVM.

      So, no, LVM and MD don't have anything to do with journaling. That's the filesystem's job. In RH9, the only journaling filesystems are ext3 (available in the install) and reiserfs (after the install). LVM offers striping and concatenation (just like MD), but offers no redundancy.

      So the real benefit of LVM is the flexibility in which you can allocate space without re-doing your filesystems. You want to use either hardware or software RAID underneath it to manage redundancy, and then ext3 or reiserfs on top of it to ensure data consistency.

  20. Ahh. by Anonymous Coward · · Score: 0

    You mean like Microsoft's Dynamic Disks and Novell's NSS?

  21. I used it on redhat 7.3 by floydman · · Score: 1

    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
  22. Improving ext2/3 data streaming to disk by commanderfoxtrot · · Score: 1

    Case in point: I was doing some high bitrate multimedia capture a while back. In my system at that time, I had both 10krpm u2w scsi disks, and some 5400rpm ide disks. In order to not get frame drops due to long flushes to disk with ext2/3, I had to jump through all sorts of hoops and basically have a process calling sync() every couple seconds, even when writing to the scsi disk.

    I had similar problems with IDE disks and ext2/3. You need to alter the bdflush settings in /proc/sys/vm.

    Try:
    echo "5 150 0 50 100 3000 400 20 0" > /proc/sys/vm/bdflush
    (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/
  23. LVM by Jellybob · · Score: 1

    Well I was using LVM for about an hour or so, but I decided to go for RAID-0 instead ;)

    Mmmm... tasty striping.

  24. Different approach by bicatu · · Score: 1

    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)