?
Solved

AIX Export volume group and Import volume group

Posted on 2008-06-11
5
Medium Priority
?
6,757 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

765 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