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.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
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?
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?
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

<< 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).

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mokkanAuthor Commented:
Yes, thank you. I found the pvid number, after that how do I found the VG name from PVID ?
>> 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.
mokkanAuthor Commented:
Thanks a lot for  your help
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.