Skip to contentSkip to conversation

LVM Questions

linux-lvm Darren Young 8 participants 13 messages May 3, 2001 – May 8, 2001

lore
Share & tools
lore
#0 lore raw

I have only recently discovered and played with LVM. If anyone can answer some general questions, it would be most appreciated.

What I would like to have is a system where I can add space via new disks and expand file systems at will. I have used volume managers on HP and Solaris for precisely these purposes (HP and Veritas). Too many times I have been called by a customer or a customer of a friend with the "I underestimated the space needed for my Oracle databases and I need space, now!". Adding disks and placing db's on alternate filesystems gets the job done, but an LVM would be a great method to move them to.

First, does LVM do RAID or do I need to employ the md driver to accomplish this? It seems to me (as a sysadmin) that LVM is great for adding space when needed, but having RAID capabilities in conjunction with this would be required to produce a highly available system.

What ext2 resize utility is the ideal choice for LVM to use. parted seems to be quite functional, but having to down the machine to single is a but annoying. Has anyone successfully used the ext2online utility on RedHat? It seems as though the version of e2fsprogs that includes this code is part of RH 7.1 anyways. At least from what I can tell. The online resizing would definitely be required for a highly available system as well.

I started with RedHat 7.1 with the 2.4.2 kernel and patched it. What kernel is ideal to use with LVM? This one seems to work, but I read a reference in the list archive that certain components are in 2.4. Is this the case?

The howto mentions to add a couple of commands to the RH start script, but a scan of them reveals that RH 7.1 already has them. If they are correct, perhaps the howto needs to reflect this. Does anyone know if they are correct?

I picked up on an older thread about the mailing list rejecting certain email and just had to dump in my .02 worth. I don't want to start a war, but the list should be completely open. I remember the FreeSWAN list having wars over open vs closed and open won. The maintainers are of the opinion (from what I read) that filtering spam is up to the user and cleaning of any type of a list is censoring. I had to get that out since I will most likely be using this product somewhere down the road.

I also read an older thread on an X11 GUI as well as some replies to it. The GUI that comes with Veritas is completely useless and the command line tools are completely over-engineered. While it would be nice for a small company trying to save money not to call in a specialist to create VG's, it certainly wouldn't be a requirement. Get everything stable, reliable and consistent than someone will probably have the time to create the GUI. I'd dedicate time to that type of project, but why bother when the code isn't quite there yet. There's no reason.

Guess that's a total of .04 cents...

Thanks in advance,

Darren Young
Senior UNIX Administrator
GSX.com

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

#1 lore raw

Note: Comments interspersed in email.

Quoted 4 lines · Darren Young

I have only recently discovered and played with LVM. If anyone can answer some general questions, it would be most appreciated.

Quoted 10 lines

What I would like to have is a system where I can add space via new disks and expand file systems at will. I have used volume managers on HP and Solaris for precisely these purposes (HP and Veritas). Too many times I have been called by a customer or a customer of a friend with the "I underestimated the space needed for my Oracle databases and I need space, now!". Adding disks and placing db's on alternate filesystems gets the job done, but an LVM would be a great method to move them to.

Well, I just added a partition off of a 40GB drive I just acquired to my existing LVM without a hitch.
And using reiserfs I can resize the filesystem(s) to acquire the new space and place it where it needs to be.

Quoted 6 lines

First, does LVM do RAID or do I need to employ the md driver to accomplish this? It seems to me (as a sysadmin) that LVM is great for adding space when needed, but having RAID capabilities in conjunction with this would be required to produce a highly available system.

As far as I can tell I have gotten maybe a 10% increase by adding the other hard drive (which sits on its own Promise controller) so I am not sure at this point whether I created a pseudo-RAID 0 or not (I think not).

That would be a great feature to have though! But with Linux already having software raid, I don't see it becoming a priority of the programmers to re-invent the wheel before they finish building on what they have right now...my .02 worth.

Quoted 9 lines

What ext2 resize utility is the ideal choice for LVM to use. parted seems to be quite functional, but having to down the machine to single is a but annoying. Has anyone successfully used the ext2online utility on RedHat? It seems as though the version of e2fsprogs that includes this code is part of RH 7.1 anyways. At least from what I can tell. The online resizing would definitely be required for a highly available system as well.

I use parted myself. FDisk is broken on my machine for some strange reason known only to God. It keeps picking up some darned 4.2BSD partitioning schema. sfdisk and cfdisk work fine, and so does parted.

Quoted 5 lines

I started with RedHat 7.1 with the 2.4.2 kernel and patched it. What kernel is ideal to use with LVM? This one seems to work, but I read a reference in the list archive that certain components are in 2.4. Is this the case?

I am using 2.4.4 but I think I will regress back to 2.4.3 in light of some technical difficulties I am having...but will have to wait till my next scheduled reboot for that. I work with this stuff on a development machine used by other people :)

By the way *they* like the changes too.....I can dynamically resize their home partitions to accomodate their needs *without* rebooting.

Quoted 5 lines

The howto mentions to add a couple of commands to the RH start script, but a scan of them reveals that RH 7.1 already has them. If they are correct, perhaps the howto needs to reflect this. Does anyone know if they are correct?

The vgscan and vgchange lines are installed by default on RedHat 7.1? Interesting.

Quoted 10 lines

I picked up on an older thread about the mailing list rejecting certain email and just had to dump in my .02 worth. I don't want to start a war, but the list should be completely open. I remember the FreeSWAN list having wars over open vs closed and open won. The maintainers are of the opinion (from what I read) that filtering spam is up to the user and cleaning of any type of a list is censoring. I had to get that out since I will most likely be using this product somewhere down the road.

I agree. Censorship is bad when we don't do it for ourselves.

Quoted 11 lines

I also read an older thread on an X11 GUI as well as some replies to it. The GUI that comes with Veritas is completely useless and the command line tools are completely over-engineered. While it would be nice for a small company trying to save money not to call in a specialist to create VG's, it certainly wouldn't be a requirement. Get everything stable, reliable and consistent than someone will probably have the time to create the GUI. I'd dedicate time to that type of project, but why bother when the code isn't quite there yet. There's no reason.

I agree again. Good point. Although, I would like to interject my opinion that it seems pretty darned stable right now. I can't wait to see what these guys are going to do next!

Quoted 16 lines

Guess that's a total of .04 cents...

Thanks in advance,

Darren Young
Senior UNIX Administrator
GSX.com

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

#2 lore raw
In reply to Darren Young
Quoted 6 lines · Darren Young

First, does LVM do RAID or do I need to employ the md driver to accomplish this? It seems to me (as a sysadmin) that LVM is great for adding space when needed, but having RAID capabilities in conjunction with this would be required to produce a highly available system.

LVM doesn't do RAID right now - you can use either a hardware RAID or the kernel's built-in RAID support (raid 0, 1, and 5).

Quoted 9 lines

What ext2 resize utility is the ideal choice for LVM to use. parted seems to be quite functional, but having to down the machine to single is a but annoying. Has anyone successfully used the ext2online utility on RedHat? It seems as though the version of e2fsprogs that includes this code is part of RH 7.1 anyways. At least from what I can tell. The online resizing would definitely be required for a highly available system as well.

I don't have much experience with ext2 resizing, but the reiserfs can easily be extended. I'm not sure if it is supported or not, but I've actually extended filesystems while mounted with no ill effects.

Reiserfs support is built in to kernel 2.4.X.

Quoted 5 lines

I started with RedHat 7.1 with the 2.4.2 kernel and patched it. What kernel is ideal to use with LVM? This one seems to work, but I read a reference in the list archive that certain components are in 2.4. Is this the case?

The 2.4.X kernel contains base LVM support, but you'll need to supplement that with patches at the same level as the LVM user-level tools. Current release is 0.9.1b7.

Quoted 11 lines

I also read an older thread on an X11 GUI as well as some replies to it. The GUI that comes with Veritas is completely useless and the command line tools are completely over-engineered. While it would be nice for a small company trying to save money not to call in a specialist to create VG's, it certainly wouldn't be a requirement. Get everything stable, reliable and consistent than someone will probably have the time to create the GUI. I'd dedicate time to that type of project, but why bother when the code isn't quite there yet. There's no reason.

LVM is so simple that, IMHO, a GUI shouldn't be an overriding concern. Then again, I've been working with LVM on HP-UX for many years, and I find the CLI utilities to be much more efficient than waiting for SAM (the HP-UX sysadmin GUI) to poll everything, build displays, etc. The current CLI tools are lean and aligned with the LVM model in a way that is both logical and easy to understand.

#3 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Evan" == Evan Day <[email protected]> writes:

<snip>

Quoted 8 lines
Quoted 8 lines

What ext2 resize utility is the ideal choice for LVM to use. parted seems to be quite functional, but having to down the machine to single is a but annoying. Has anyone successfully used the ext2online utility on RedHat? It seems as though the version of e2fsprogs that includes this code is part of RH 7.1 anyways. At least from what I can tell. The online resizing would definitely be required for a highly available system as well.

Evan> I don't have much experience with ext2 resizing, but the

I haven't either.

Evan> reiserfs can easily be extended. I'm not sure if it is Evan> supported or not, but I've actually extended filesystems Evan> while mounted with no ill effects.

I believe it is officially supported, ie. if it breaks then its a bug, and have done it now several times, at least on lightly loaded filesystems. Its not quite as convienient as AIX's LVM, in that one resizes the filesystem and the logical volume is automatically resized, but if I'm bothered I'll write a wrapper script around lvextend/lvreduce for that.

A question for the developers if they notice. Why lvextend and lvreduce, as they do the same things. Is it just for clarity ? A lvresize with + or - or a fixed size to could the same ?

<snip>

Quoted 10 lines
Quoted 10 lines

I also read an older thread on an X11 GUI as well as some replies to it. The GUI that comes with Veritas is completely useless and the command line tools are completely over-engineered. While it would be nice for a small company trying to save money not to call in a specialist to create VG's, it certainly wouldn't be a requirement. Get everything stable, reliable and consistent than someone will probably have the time to create the GUI. I'd dedicate time to that type of project, but why bother when the code isn't quite there yet. There's no reason.

Evan> LVM is so simple that, IMHO, a GUI shouldn't be an Evan> overriding concern. Then again, I've been working with LVM Evan> on HP-UX for many years, and I find the CLI utilities to be Evan> much more efficient than waiting for SAM (the HP-UX sysadmin Evan> GUI) to poll everything, build displays, etc. The current Evan> CLI tools are lean and aligned with the LVM model in a way Evan> that is both logical and easy to understand.

On the web page there is a BETA lva, written in perl-tk which works nicely although somewhat limited currently. I like the pie chart look, not for me personally, CLI type myself, but for some of the others at work who must have a GUI for everything, yukk :-)

Sincerely,

Adrian Phillips

Signature · 3 lines
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now?  [OK]
#4 lore raw
Quoted 28 lines · Adrian Phillips
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Evan" == Evan Day <[email protected]> writes:

<snip>

Quoted 8 lines
Quoted 8 lines

What ext2 resize utility is the ideal choice for LVM to use. parted seems to be quite functional, but having to down the machine to single is a but annoying. Has anyone successfully used the ext2online utility on RedHat? It seems as though the version of e2fsprogs that includes this code is part of RH 7.1 anyways. At least from what I can tell. The online resizing would definitely be required for a highly available system as well.

Evan> I don't have much experience with ext2 resizing, but the

I haven't either.

Evan> reiserfs can easily be extended. I'm not sure if it is Evan> supported or not, but I've actually extended filesystems Evan> while mounted with no ill effects.

I believe it is officially supported, ie. if it breaks then its a bug, and have done it now several times, at least on lightly loaded filesystems. Its not quite as convienient as AIX's LVM, in that one resizes the filesystem and the logical volume is automatically resized, but if I'm bothered I'll write a wrapper script around lvextend/lvreduce for that.

Quoted 3 lines

A question for the developers if they notice. Why lvextend and lvreduce, as they do the same things. Is it just for clarity ? A lvresize with + or - or a fixed size to could the same ?

The Linux LVM CLI is as close as possible to the HP/UX one which has those commands (and vgextend/vgreduce as well) seperate. This makes at least me as a long term HP/UX LVM user happy ;-)

lvresize can easily be made as a convenence wrapper though...

Quoted 39 lines

<snip>

Quoted 10 lines
Quoted 10 lines

I also read an older thread on an X11 GUI as well as some replies to it. The GUI that comes with Veritas is completely useless and the command line tools are completely over-engineered. While it would be nice for a small company trying to save money not to call in a specialist to create VG's, it certainly wouldn't be a requirement. Get everything stable, reliable and consistent than someone will probably have the time to create the GUI. I'd dedicate time to that type of project, but why bother when the code isn't quite there yet. There's no reason.

Evan> LVM is so simple that, IMHO, a GUI shouldn't be an Evan> overriding concern. Then again, I've been working with LVM Evan> on HP-UX for many years, and I find the CLI utilities to be Evan> much more efficient than waiting for SAM (the HP-UX sysadmin Evan> GUI) to poll everything, build displays, etc. The current Evan> CLI tools are lean and aligned with the LVM model in a way Evan> that is both logical and easy to understand.

On the web page there is a BETA lva, written in perl-tk which works nicely although somewhat limited currently. I like the pie chart look, not for me personally, CLI type myself, but for some of the others at work who must have a GUI for everything, yukk :-)

Sincerely,

Adrian Phillips

Signature · 7 lines
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now?  [OK]
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
Signature · 15 lines
Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
[email protected]                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#5 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Heinz" == Heinz J Mauelshagen <[email protected]> writes:

<snip>

Quoted 10 lines
Quoted 10 lines

I believe it is officially supported, ie. if it breaks then
its a bug, and have done it now several times, at least on lightly loaded filesystems. Its not quite as convienient as AIX's LVM, in that one resizes the filesystem and the logical volume is automatically resized, but if I'm bothered I'll write a wrapper script around lvextend/lvreduce for that.

A question for the developers if they notice. Why lvextend and lvreduce, as they do the same things. Is it just for clarity ? A lvresize with + or - or a fixed size to could the same ?

Heinz> The Linux LVM CLI is as close as possible to the HP/UX one Heinz> which has those commands (and vgextend/vgreduce as well) Heinz> seperate. This makes at least me as a long term HP/UX LVM Heinz> user happy ;-)

HP/UX, how unfortunate :-) Thanks for the info. though.

Heinz> lvresize can easily be made as a convenence wrapper Heinz> though...

Patches accepted I presume :-)

Sincerely,

Adrian Phillips

Signature · 3 lines
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now?  [OK]
#6 lore raw
Quoted 9 lines · Adrian Phillips
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Heinz" == Heinz J Mauelshagen <[email protected]> writes:

<snip>

Quoted 6 lines
Quoted 6 lines

I believe it is officially supported, ie. if it breaks then
its a bug, and have done it now several times, at least on lightly loaded filesystems. Its not quite as convienient as AIX's LVM, in that one resizes the filesystem and the logical volume is automatically resized, but if I'm bothered I'll write a wrapper script around lvextend/lvreduce for that.

True.

JAIOOTL (Just Another Item On Our Todo List ;-)

Quoted 11 lines
Quoted 4 lines
Quoted 4 lines

A question for the developers if they notice. Why lvextend and lvreduce, as they do the same things. Is it just for clarity ? A lvresize with + or - or a fixed size to could the same ?

Heinz> The Linux LVM CLI is as close as possible to the HP/UX one Heinz> which has those commands (and vgextend/vgreduce as well) Heinz> seperate. This makes at least me as a long term HP/UX LVM Heinz> user happy ;-)

HP/UX, how unfortunate :-) Thanks for the info. though.

;-)

Actually the HP/UX LVM and its CLI has some major advantages over others:

- it has a very simple layering (the PV, VG, LV thingies) and therefore is very easy to understand

- the CLI follows the layers transparently

- CLI is "self explaining" in regard of having native language postfixes in the command names like create, extend, reduce, change etc.

In production this boils down to shorter learning cycles for admin newbies and easier handling in regular production -> less money spend!

BTW: what's unfortunate IYO with the HP/UX LVM? :-)

Quoted 5 lines

Heinz> lvresize can easily be made as a convenence wrapper Heinz> though...

Patches accepted I presume :-)

You can read between lines.
I like that ;-)

Quoted 13 lines

Sincerely,

Adrian Phillips

Signature · 7 lines
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now?  [OK]
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
Signature · 15 lines
Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
[email protected]                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#7 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Heinz" == Heinz J Mauelshagen <[email protected]> writes:

<snip>

Quoted 1 line
Quoted 1 line

HP/UX, how unfortunate :-) Thanks for the info. though.

Heinz> ;-)

Heinz> Actually the HP/UX LVM and its CLI has some major Heinz> advantages over others:

Heinz> - it has a very simple layering (the PV, VG, LV thingies) Heinz> and therefore is very easy to understand

Heinz> - the CLI follows the layers transparently

Heinz> - CLI is "self explaining" in regard of having native Heinz> language postfixes in the command names like create, Heinz> extend, reduce, change etc.

Heinz> In production this boils down to shorter learning cycles Heinz> for admin newbies and easier handling in regular production Heinz> -> less money spend!

Actually I thought that LVM had been modelled upon AIX's LVM when I first started using it; the commands are very similar.

Actually, it gives me an idea for AIX compatiblity wrappers (possibly something else for the TODO list if it hasn't filled up the LV already, then again you can always lvextend it:-)

Heinz> BTW: what's unfortunate IYO with the HP/UX LVM? :-)

Sorry, I meant HP/UX OS itself (not from personal experience but the years of reading of non-standard HP/UX command, libraries, etc., then again AIX has had it share of those).

<snip>

Anyway, thats to you and others who had a hand in LVM. It makes using Linux as easy (on the FS side) as its been to use AIX for the years I've admining it (almost 10 now).

Regards,

Adrian

Signature · 3 lines
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now?  [OK]
#8 lore raw
Quoted 20 lines · Adrian Phillips
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Heinz" == Heinz J Mauelshagen <[email protected]> writes:

<snip>

Quoted 1 line
Quoted 1 line

HP/UX, how unfortunate :-) Thanks for the info. though.

Heinz> ;-)

Heinz> Actually the HP/UX LVM and its CLI has some major Heinz> advantages over others:

Heinz> - it has a very simple layering (the PV, VG, LV thingies) Heinz> and therefore is very easy to understand

Heinz> - the CLI follows the layers transparently

Heinz> - CLI is "self explaining" in regard of having native Heinz> language postfixes in the command names like create, Heinz> extend, reduce, change etc.

Quoted 6 lines

Heinz> In production this boils down to shorter learning cycles Heinz> for admin newbies and easier handling in regular production Heinz> -> less money spend!

Actually I thought that LVM had been modelled upon AIX's LVM when I first started using it; the commands are very similar.

That's possible easy because both have common roots :-)

Quoted 10 lines

Actually, it gives me an idea for AIX compatiblity wrappers (possibly something else for the TODO list if it hasn't filled up the LV already, then again you can always lvextend it:-)

Heinz> BTW: what's unfortunate IYO with the HP/UX LVM? :-)

Sorry, I meant HP/UX OS itself (not from personal experience but the years of reading of non-standard HP/UX command, libraries, etc., then again AIX has had it share of those).

No problem.
Thanks for the clarification.

Quoted 19 lines

<snip>

Anyway, thats to you and others who had a hand in LVM. It makes using Linux as easy (on the FS side) as its been to use AIX for the years I've admining it (almost 10 now).

Regards,

Adrian

Signature · 7 lines
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now?  [OK]
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
Signature · 15 lines
Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
[email protected]                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#10 lore raw
In reply to Evan Day
Quoted 10 lines · Evan Day
Quoted 6 lines · Darren Young

First, does LVM do RAID or do I need to employ the md driver to accomplish this? It seems to me (as a sysadmin) that LVM is great for adding space when needed, but having RAID capabilities in conjunction with this would be required to produce a highly available system.

LVM doesn't do RAID right now - you can use either a hardware RAID or the kernel's built-in RAID support (raid 0, 1, and 5).

Evan is right for RAID > 0.

RAID 0 is supported in Linux LVM natively.

You could for eg. address your availability needs with MD or hardware RAID *and* your performance needs at the same time by setting up RAID 0 logical volumes striped over a bunch of RAID subsystem based physical volumes.

Quoted 11 lines
Quoted 10 lines

What ext2 resize utility is the ideal choice for LVM to use. parted seems to be quite functional, but having to down the machine to single is a but annoying. Has anyone successfully used the ext2online utility on RedHat? It seems as though the version of e2fsprogs that includes this code is part of RH 7.1 anyways. At least from what I can tell. The online resizing would definitely be required for a highly available system as well.

Quoted 6 lines

I don't have much experience with ext2 resizing, but the reiserfs can easily be extended. I'm not sure if it is supported or not, but I've actually extended filesystems while mounted with no ill effects.

Reiserfs support is built in to kernel 2.4.X.

WRT ext2 you could give Andreas Dilger's ext2resize GNU software a try.

Please look for it at http://ext2resize.sourceforge.net/.

Quoted 10 lines
Quoted 6 lines

I started with RedHat 7.1 with the 2.4.2 kernel and patched it. What kernel is ideal to use with LVM? This one seems to work, but I read a reference in the list archive that certain components are in 2.4. Is this the case?

The 2.4.X kernel contains base LVM support, but you'll need to supplement that with patches at the same level as the LVM user-level tools. Current release is 0.9.1b7.

FYI: You can get the actual GNU LVM code at www.sistina.com/lvm.

Quoted 13 lines
Quoted 12 lines

I also read an older thread on an X11 GUI as well as some replies to it. The GUI that comes with Veritas is completely useless and the command line tools are completely over-engineered. While it would be nice for a small company trying to save money not to call in a specialist to create VG's, it certainly wouldn't be a requirement. Get everything stable, reliable and consistent than someone will probably have the time to create the GUI. I'd dedicate time to that type of project, but why bother when the code isn't quite there yet. There's no reason.

Quoted 7 lines

LVM is so simple that, IMHO, a GUI shouldn't be an overriding concern. Then again, I've been working with LVM on HP-UX for many years, and I find the CLI utilities to be much more efficient than waiting for SAM (the HP-UX sysadmin GUI) to poll everything, build displays, etc. The current CLI tools are lean and aligned with the LVM model in a way that is both logical and easy to understand.

Thanks for the flowers :-)

Actually there are GUI contributions out there.
For eg. http://www.xs4all.nl/~mmj/lvm/ is worth trying in order to have the day by day LVM work items covered.

BTW: Evan is touching another major point here, which people tend to forget easily IMHO; in critical operating situations where you are limited to the command line (single user) you *need* to be familiar with the CLI in order to get back to regular operation as fast as possible!

Quoted 4 lines

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

Signature · 15 lines
Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
[email protected]                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#11 lore raw
In reply to Darren Young

<SNIP>

Quoted 6 lines

First, does LVM do RAID or do I need to employ the md driver to accomplish this? It seems to me (as a sysadmin) that LVM is great for adding space when needed, but having RAID capabilities in conjunction with this would be required to produce a highly available system.

for sure using RAID1 or RAID5 would make any system a highly available one, but i am not sure if i understand what your point is on LVM not doing RAID?

just to clarify me and hopefully all that are getting nervous with that aseveration

you can make pseudo LINEAR or RAID0 arrays using LVM pvcreating all the needed disks and making a VG over them.

when more space is needed on any LV all what is needed is to :

1) pvcreate the new disk/partition
2) vgextend the VG where you are short on space over the new PV
3) lvextend the LV inside the VG where you need the space
4) extend the filesystem that is on the extended LV

so, if you have (as i just happened to have)

[root@sajino /root]# pvscan
pvscan -- reading all physical volumes (this may take a while...)

pvscan -- ACTIVE   PV "/dev/hda9" of VG "vga" [10.08 GB / 0 free]
pvscan -- ACTIVE   PV "/dev/hdb"  of VG "vga" [27.96 GB / 0 free]
pvscan -- ACTIVE   PV "/dev/hdc"  of VG "vga" [19.01 GB / 5.67 GB free]

pvscan -- total: 3 [57.05 GB] / in use: 3 [57.05 GB] / in no VG: 0 [0]

[root@sajino /root]# lvscan

lvscan -- ACTIVE            "/dev/vga/vga1" [5 GB]
lvscan -- ACTIVE            "/dev/vga/vga2" [1 GB]
lvscan -- ACTIVE            "/dev/vga/vga3" [1 GB]
lvscan -- ACTIVE            "/dev/vga/vga4" [256 MB]
lvscan -- ACTIVE            "/dev/vga/vga5" [44 GB]
lvscan -- ACTIVE            "/dev/vga/vga6" [128 MB]

lvscan -- 6 logical volumes with 51.38 GB total in 1 volume group lvscan -- 6 active logical volumes

and just on VG that is named vga.

and i need more space on vga5 (ext2) all what is needed (adding a new disk as hdd with 30G)

pvcreate /dev/hdd
vgextend /dev/vga /dev/hdd
umount /dev/vga/vga5
e2fsadm -L+30G /dev/vga/vga5
mount /dev/vga/vga5

or am i missing something?

Quoted 9 lines

What ext2 resize utility is the ideal choice for LVM to use. parted seems to be quite functional, but having to down the machine to single is a but annoying. Has anyone successfully used the ext2online utility on RedHat? It seems as though the version of e2fsprogs that includes this code is part of RH 7.1 anyways. At least from what I can tell. The online resizing would definitely be required for a highly available system as well.

on my RH7.1 server it works.

[root@sajino /root]# rpm -q e2fsprogs
e2fsprogs-1.19-4

and if using ext2 you can use (over not mounted filesystems)

[root@sajino /root]# which resize2fs
/sbin/resize2fs

<SNIP>

Quoted 5 lines

The howto mentions to add a couple of commands to the RH start script, but a scan of them reveals that RH 7.1 already has them. If they are correct, perhaps the howto needs to reflect this. Does anyone know if they are correct?

well, i didn't change those lines on /etc/rc.d/rc.sysinit and my system is doing well.

what is recommended is this patch on /etc/rc.d/init.d/halt to add the vgscan -n call, but is not really needed AFAIK

rc.d/init.d/halt renamed from rc.d/init.d/halt.lvm +3 -0
@@ -163,6 +163,9 @@
 
 [ -f /proc/bus/usb/devices ] && umount /proc/bus/usb
 
+# LVM shutdown
++[ -e /proc/lvm -a -x /sbin/vgchange -a -f /etc/lvmtab ] && /sbin/vgchange -a n
+
 # Remount read only anything that's left mounted.
 #echo $"Remounting remaining filesystems (if any) readonly"
 mount | awk '/ext2/ { print $3 }' | while read line; do

regards,

Carlo

#12 lore raw
Quoted 2 lines · Carlo Marcelo Arenas Belon

what is recommended is this patch on /etc/rc.d/init.d/halt to add the vgscan -n call, but is not really needed AFAIK

How important is "/sbin/vgchange" -a n at shutdown? It seems a bad idea if / is on an LV ...

Mark.