Collins Richey
2005-May-28 21:28 UTC
[CentOS] Extending LVM2 logical volumes [ was: Demonizing ... ]
[ context from the previous thread ] On Saturday 28 May 2005 14:41, Collins Richey wrote:> On 5/28/05, Lamar Owen <lowen at pari.edu> wrote: > > Sure. LVM.> I'm curious about this. At work we haven't finished our evaluation of > RHEL3/RHEL4 (CentOS is out of the question, since SLA is king here). > Most of our servers and desktops are RH9 legacy, and we use LVM on all > of them. It's my understanding that RHEL4(CentOS4) only offers LVM2, > and it doesn't appear that you can extend an ext3 filesystem using > LVM2 tools. If that is indeed true, why woud LVM be "measurably > better?While I am no LVM expert, it seems that ext2online does what you want. My CentOS4 box here has ext2online included; I have not had a chance to try it out, so I can't comment on how well it works. However, what I have read is that the LVM2 metadata format is more robust and removes many of the limitations of LVM1. In trying to check on this, I looked for specific information on how this was the case, but have not been able to at this point. The ext2/3 filesystem wasn't designed for resizing online, so it's quite nice one can do it at all; but it appears the LVM2 approach is to rely on the e2fsprogs to do the work, so, taking you question literally, no, there is no LVM2 tool to resize; you would do a two-step, resizing the logical volume then resizing the filesystem with e2fsprogs. But, having never had opportunity to do this, I have no direct experience with it. --- So, has anyone found an equivalent (even multiple commands that I could put in a script) for the e2fsadm utility to extend a logical volume? Anyone who has experience with ext2online? -- Collins Head teachers of the world unite: you have nothing to lose but the Start button.
Ignacio Vazquez-Abrams
2005-May-28 23:21 UTC
[CentOS] Extending LVM2 logical volumes [ was: Demonizing ... ]
On Sat, 2005-05-28 at 15:28 -0600, Collins Richey wrote:> So, has anyone found an equivalent (even multiple commands that I > could put in a script) for the e2fsadm utility to extend a logical > volume? Anyone who has experience with ext2online?The LVM How-To covers it fairly well. Once the LV has been enlarged just run ext2online against the filesystem to expand it to take up all space in the LV, no rebooting required. -- Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> http://centos.ivazquez.net/ gpg --keyserver hkp://subkeys.pgp.net --recv-key 38028b72 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20050528/bb7568eb/attachment-0004.sig>
Collins Richey
2005-May-29 04:37 UTC
[CentOS] Re: Extending LVM2 logical volumes [ was: Demonizing ... ]
On 5/28/05, Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> wrote:> On Sat, 2005-05-28 at 15:28 -0600, Collins Richey wrote: > > So, has anyone found an equivalent (even multiple commands that I > > could put in a script) for the e2fsadm utility to extend a logical > > volume? Anyone who has experience with ext2online? > > The LVM How-To covers it fairly well. Once the LV has been enlarged just > run ext2online against the filesystem to expand it to take up all space > in the LV, no rebooting required. >Thanks, I will check it out. -- Collins Head teachers of the world unite: you have nothing to lose but the Start button.