How to find VG name if the DG is not imported in AIX

I have an issue wiht aix 6.1.  I can VG needs to be imported, but I am  not sure what are the disks are on that VG.  How do I find out what what the disks belongs to that VG?

Also, if I have pvid number, can I find the VG name eventhough if we didn't import.
mokkanAsked:
Who is Participating?
 
woolmilkporcCommented:
<< How do we find what are the didks are belong to that VG before we import? <<

I already told you that you can see the PVids of the disks belonging to the VG in the output of "lqueryvg -Atp hdiskX" next to "Physical:"

>> it suppose to provide the volume name  as well?  <<

Which volume name? "lqueryvg -Atp" expects a volume name as parameter, but will not show any physical volume names or VG names in its output, only IDs.
On the other hand, it will show logical volume names, in the "Logical:" part of the output (rightmost column).
0
 
woolmilkporcCommented:
Hi again,

once a VG is exported its name is lost, because all info about that VG is purged from the ODM.

The VGDA remains on the respective disks, but it contains only ids (VG id, PVid), not names.

If you have PVids you should also have PV names (hdiskX). Query the VGDA on such a disk with

lqueryvg -Atp hdiskX

Next to "Physical"  you will see the IDs of all hdisks belonging to that VG

Under "Logical" you can see the Logical Volume names contained on the disk. Perhaps this info can help you identify the VG.

Once you identified one disk of the VG you can import it. You don't have to know which other disks belong to it. Please note that all disks belonging to the VG must be accessible to make "importvg" succeed.
"importvg" has a parameter "-y vgname" where you can set the name of the VG during import.
0
 
mokkanAuthor Commented:
Thank you very much for the explanation. The problem is  we suppose to import the Disks into VG, but not sure what are the disk belongs to that disk. How do we find what are the didks are belong to that VG before we import?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
mokkanAuthor Commented:
One more thing,  even  if  the VG is not imported,  when you do

lqueryvg  -Atp  hdisk79   ,  it suppose to provide the volume name  as well?
0
 
mokkanAuthor Commented:
Yes, thank you. I found the pvid number, after that how do I found the VG name from PVID ?
0
 
woolmilkporcCommented:
>> how do I found the VG name from PVID <<

I told you too that the name of a VG is lost forever once this group has been exported from AIX.

importvg accepts "-y vgname" to give a name to the imported VG. Without this parameter the VG will be named "vg00", or "vg01" etc. (as returned by "getvgname"), depending on what you already have.
0
 
mokkanAuthor Commented:
Thanks a lot for  your help
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.