Solved

AIX Export volume group and Import volume group

Posted on 2008-06-11
5
6,154 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 125 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now