1827295 Members
4295 Online
109717 Solutions
New Discussion

vgexport and vgimport

 
SOLVED
Go to solution
Rocky Lavoie
New Member

vgexport and vgimport

Hello all,
What is the correct procedure for exporting volume groups and then importing them back in after a cold install of 11.i? I am replacing the 2 internal disks (vg00) on our 11.0 server, cold installing 11.i, and would like to be able to vgimport the vg01-02-03 existing volume groups.
I did a vgexport -p -v -m vg01.map -f vg01.out vg01. This generated the map and outfile which I saved on tape.
I did this for the existing three vg that I want to import after 11.i and vg00 is installed.
I was reading some of the posts and the problems people had trying to vgimport. Thought I'd double check with the experts.
Thanks for the help,
Rocky
4 REPLIES 4
Slawomir Gora
Honored Contributor

Re: vgexport and vgimport

Hi,

yours procedure is OK.

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgimport ....
vgcfgbackup vg01


Bharat Katkar
Honored Contributor
Solution

Re: vgexport and vgimport

Rocky your are almost right.
Still to summarise:

1. Note the minor number of all the VG's
# ll /dev/vg01/group
# ll /dev/vg02/group
# ll /dev/vg03/group
2. Now create the map (VG should be active)
# vgexport -p -v -m /tmp/vg01.map vg01
# vgexport -p -v -m /tmp/vg02.map vg02
# vgexport -p -v -m /tmp/vg03.map vg03

3. Backup all the Map files.

4. Now restoring Back.
# mkdir /dev/vg01
# mkdir /dev/vg02
# mkdir /dev/vg03
# mknod /dev/vg01/group c 64
# mknod /dev/vg02/group c 64
# mknod /dev/vg03/group c 64

5. Get back your Map files into /tmp
# vgimport -m /tmp/vg01.map vg01
# vgimport -m /tmp/vg02.map vg02
# vgimport -m /tmp/vg03.map vg03

That's it.
All the best.
Regards,

You need to know a lot to actually know how little you know
Rocky Lavoie
New Member

Re: vgexport and vgimport

Thanks for the help. I really appreciate how the HP community is willing to share their collective knowledge. Thanks again,
Rocky
bhavin asokan
Honored Contributor

Re: vgexport and vgimport

dear Rocky,
follow the above procedure.

but if you havn't gone through the work and your system is series800 use vgexport with -s option

#vgexport -s -p -v -m vg01.map /dev/vg01
#vgexport -s -p -v -m vg02.map /dev/vg02
.....
.....

this will include the VGID in the map file.
at the time of importing also use -s option.

#vgimport -v -s -m vg01.map /dev/vg01
#vgimport -v -s -m vg02.map /dev/vg02
......
......

otherwise you should give the specific physical paths to each vg while importing.

see the vgexport and vgimport man pages for more details.

regds,