Operating System - HP-UX
1752580 Members
4966 Online
108788 Solutions
New Discussion

Re: how to find VGID and PVID

 
hpux_sun
Occasional Advisor

how to find VGID and PVID

hi All,

can you please tell me how find VGID and PVID? is there any command for that?

6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: how to find VGID and PVID

Hi:

 

One way is to actually read the physical disk.  See this thread for example:

 

http://h30499.www3.hp.com/t5/LVM-and-VxVM/Decode-vol-grp-from-ctd-device/m-p/5027640/highlight/true#M43806

 

Regards!

 

...JRF...

hpux_sun
Occasional Advisor

Re: how to find VGID and PVID

other than the given script, is there nay other way to find VGID and PVID?

James R. Ferguson
Acclaimed Contributor

Re: how to find VGID and PVID


@hpux_sun wrote:

other than the given script, is there nay other way to find VGID and PVID?


Hi (again):

 

And what's wrong with the simple, non-intrusive script?

 

Regards!

 

...JRF...

hpux_sun
Occasional Advisor

Re: how to find VGID and PVID

nothing prob, i was looking a simple command..

James R. Ferguson
Acclaimed Contributor

Re: how to find VGID and PVID


@hpux_sun wrote:

nothing prob, i was looking a simple command..


So, put the script somewhere with a name you like and it becomes a command :-)

 

Regards!

 

...JRF...

joseph51
Regular Advisor

Re: how to find VGID and PVID

TO find PVID : xd -An -j8200 -N16 -tx   <RAW_DISK>  | awk '{print $1 $2}'

 

To FInd VGID : xd -An -j8200 -N16 -tx   <RAW_DISK>   | awk '{print $3 $4}'