[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

AIX Export volume group and Import volume group

Posted on 2008-06-11
5
Medium Priority
?
6,909 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

649 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