Get the VG name residing on a hdisk (perviously exported VG)

If a VG has been exported from the system using exportvg and you don’t know the name of a VG, it is possible to get the name of the VG from the specified hdisk by importing the VG without activating it using the command importvg with the -n flag.

# lspv 
hdisk0          00c0e90dce6c290a                    rootvg          active              
hdisk1          00cf405ea5c630a9                    rootvg          active              
hdisk2          00cf405ea25a9e70                    None                                
hdisk3          00cf405ea25a9f84                    None                    

Now we import the vg from hdisk2.

             Does not varry on the VG 
            |
# importvg -n hdisk2
vg00

# lspv
hdisk0          00c0e90dce6c290a                    rootvg          active              
hdisk1          00cf405ea5c630a9                    rootvg          active              
hdisk2          00cf405ea25a9e70                    vg00                                
hdisk3          00cf405ea25a9f84                    vg00

The VG vg00 is now imported but not activated.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: