Operating System - HP-UX
1834936 Members
2194 Online
110071 Solutions
New Discussion

Re: Need vgdisplay -v output for multiple volume groups

 
SOLVED
Go to solution
Nikhil_1
Advisor

Need vgdisplay -v output for multiple volume groups

Hi,

Sorry for the silly request. But can someone please mail me output
of vgdisplay -v for more than 1 volume groups?
(I am writing parsing code for this and it is almost complete,
but need to know the separators for more volume group info).
My hotmail address is nikhilim@hotmail.com

With regards,
Nikhil
6 REPLIES 6
Clemens van Everdingen
Honored Contributor

Re: Need vgdisplay -v output for multiple volume groups

Hi,

How about vgdisplay -v /dev/vg* ?

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Nikhil_1
Advisor

Re: Need vgdisplay -v output for multiple volume groups

Actually, I do not have access to a system where more than one volume group is present.
So I wanted to look at some sample output that contains info about more than one volume group (so that I can know where to stop parsing for one vg and start parsing for next vg).

With regards,
Nikhil
Marek Bednarczyk
Occasional Advisor
Solution

Re: Need vgdisplay -v output for multiple volume groups

Here you are.

Marek
Pete Randall
Outstanding Contributor

Re: Need vgdisplay -v output for multiple volume groups

Nikhil,

Check your mail!

Pete

Pete
Nikhil_1
Advisor

Re: Need vgdisplay -v output for multiple volume groups

Thank you very much!

- Nikhil
Ralph Grothe
Honored Contributor

Re: Need vgdisplay -v output for multiple volume groups

Hi Nikhil,

I've written a vgdisplay parser myself in Perl, but I think yours will be better.
Thus I had a similar need when I wanted to write it at home where I don't have access to an HP-UX box.
Luckily there was the wonderful work of Heinz Mauelshagen
(see
http://www.osdl.org/osdlpress/2001_aug_29_san_francisco.html
)
who wrote an LVM for Linux that has (almost) exactly the same interface as the HP-UX LVM (i.e. commands), and whose (pv|vg|lv)display produces (almost) exactly the same output.

You can set up a Linux box on any old PC and create LVs to your heart's content.
If you use a current Linux kernel (viz 2.4.X) it is already in the kernel sources
(run "make maenuconfig" and select LVM support).
Older kernels require more cumbersome semi-manual patching.
Then you only need to install the LVM tools from separat rpm file or source tarball.

You can find out more herin:
http://ldp.kernelnotes.de/HOWTO/LVM-HOWTO/

Btw, someone has already come up with an HPUX::LVM Perl module and published it at CPAN:

http://www.cpan.org/modules/by-module/HPUX/

Madness, thy name is system administration