?
Solved

AIX Export volume group and Import volume group

Posted on 2008-06-11
5
Medium Priority
?
7,027 Views
Last Modified: 2013-11-17
i still dont understand the significant of export volume group and import volume group.

Can someone tell me the scenario. i have read the ibm study guide it saying because you want move to another system but i dont understand .. is it san storage or what?

From the IBM study guide i read to import the volume group you need the the export it first.

the step will be

1.exportvg thevgyoudontlike
2.importvg -y thevgyoudontlike hdisk2


in this case it is imported to hdisk2

but how if the volume group that you want to import has 4-5 hard disk inside the volume group you want to import .. how to import it ..how the command looks like??


0
Comment
Question by:nakbijak895
  • 3
  • 2
5 Comments
 
LVL 14

Expert Comment

by:sjm_ee
ID: 21764585
You said: From the IBM study guide i read to import the volume group you need the the export it first.

No, that is not correct. The command "exportvg" should be understood to mean "forget vg". If a system knows about a VG then "exportvg" will remove the knowledge of that VG from the system. There are scenarios when it is important that more than one system "know" a VG. In particular, a HACMP cluster where the VG is a resource to be recovered in the event of failure.

You asked: .. is it san storage or what?

Could be storage on a SAN, could be a SCSI disk connected to two or more servers,  could be ANY disk connected to two or more servers.
0
 

Author Comment

by:nakbijak895
ID: 21766008
hi expert.

how about case of

the volume group that you want to import has 4-5 hard disk inside the volume group you want to import .. how to import it ..how the command looks like??

it the study guide shows #importvg -y thevgyoudontlike hdisk2

is it correct if the volume group has 4-5 hard disks to import .. is it like this the command???

#importvg -y thevgyoudontlike hdisk2 hdisk3 hdisk4 hdisk5 hdisk6
0
 
LVL 14

Expert Comment

by:sjm_ee
ID: 21767640
The study guide is correct  The thing to understand about an AIX LVM VG is that each PV in a VG has a copy of the VGDA (Volume Group Descriptor Area). The VGDA contains much information, including the VGID (Volume Group IDentifier) of the VG and the PVID (Physical Volume IDentifier). These are all long, human unfriendly identifiers such as "004149aa0306004d0000000000000000" which is an example of a PVID from one of my systems. To make these easy for humans, the AIX ODM on your system keeps a mapping of VGID and PVID to names like "rootvg" and "hdisk0".

So, when you run "importvg -y vgname hdisk2", the "importvg" command reads the VGDA on that disk and from that "importvg" knows all the other PVs that are in the VG. Note that this is the simple case where all the PVs are working when you run the command.

0
 

Author Comment

by:nakbijak895
ID: 21769183

just to clarify with you ..

sourceVG has 5 hard disks .. hdisk1, hdisk2, hdisk3, hdisk4, hdisk5

and full of data in all 5 hard disks.

now i run the command # exportvg sourceVG

means forget sourcevg :-)

there are other available hard disks hdisk6,hdisk7,hdisk8,hdisk9,hdisk10

if i run command #importvg -y sourcevg hdisk6

does it means it will import ALSO to hdisk6 and to hdisk7,hdisk8,hdisk9,hdisk10 ??


0
 
LVL 14

Accepted Solution

by:
sjm_ee earned 375 total points
ID: 21777402
Yes. If you run "lspv" before "importvg", you will see something like the following:

hdisk6          004149aa03005880                    none
hdisk7          004149aa03005d13                    none
hdisk8          004149aa030061b9                    none
hdisk9          004149aa03006669                    none
hdisk10         004149aa03006b10                    none

Note that your PVIDs will be different. After "importvg -y sourcevg hdisk6" you should see the following from "lspv":

hdisk6          004149aa03005880                    sourcevg        active
hdisk7          004149aa03005d13                    sourcevg        active
hdisk8          004149aa030061b9                    sourcevg        active
hdisk9          004149aa03006669                    sourcevg        active
hdisk10         004149aa03006b10                    sourcevg        active
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month16 days, 23 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question