1748015 Members
4363 Online
108757 Solutions
New Discussion юеВ

vg's

 
manu_5
Frequent Advisor

vg's

Hi,
I need to reinstall my 11.o and 11i systems with 11i Enterprise env.But i do not want to lose the data .So i am planning to do vgexport and vgimport.

Here is my plan


Unmount filesystens then deactivate the VGs
# vgchange -a n /dev/vg1
# vgexport -v -s -m /tmp/vg1.map /dev/vg1

-now reinstall the box

After box is backup and online with new os , use vgimport

# mkdir /dev/vg1
# mknod /dev/vg1/group c 64 0x0?0000
(group minor number will be unique)
# vgimport -v -s -m /tmp/vg1.map /dev/vg1
# vgchange -a y /dev/vg1
# mount -a

any suggesstions ????

Plus do i have to -s option or not ???

I will do this for all the vgs except vg00.
7 REPLIES 7
Armin Feller
Honored Contributor

Re: vg's

Hi, all looks very good! You can use the "-s" option by vgexport to make the vgimport easier (see man vgexport).
IMPORTANT: You have to save the mapfile before newinstallation!!!
Stanimir
Trusted Contributor

Re: vg's

Hi!
I thing you are right with your plan, and -s -option is important. If your backup and recover plan is good, I would not have
any troubles.
Rgrds.
manu_5
Frequent Advisor

Re: vg's

Hi,
I read the man of "vgexport" it says -s option is for clustered systems but mine is a standalone machine 11.0 and other one 11i -oe so do i need to use that ???
Jochen Heuer
Respected Contributor

Re: vg's

Hi,

don't forget to add the filesystems to /etc/fstab lateron. And copy the mapfile to another system!

Regards,

Jochen
Well, yeah ... I suppose there's no point in getting greedy, is there?
Armin Feller
Honored Contributor

Re: vg's

Hi Manu,

if you create the mapfile without option "-s" you have to specify the disk yourself by vgimport. If you uses the "-s" option it makes it all more easier. So, if "-s" option works - use it.

Also listen to Jochen, save the etc/fstab to remind the mount points, ... later.

Regards ...
Armin
Armin Feller
Honored Contributor

Re: vg's

If "-s" option does not work, you can use the "-f" option:

# vgexport -v -f /tmp/vg1.disk -m /tmp/vg1.map /dev/vg1

and use it also by vgimport:

# vgimport -v -f /tmp/vg1.disk -m /tmp/vg1.map /dev/vg1

Save the .map and .disk file!!!
Armin Feller
Honored Contributor

Re: vg's

Remember the "-s" option will scan the PVIDs from all disks containing to the volume group and will add this PVIDs into the map file. This makes it possible to use the same map file on the other node in a cluster even if the device names are different. If your vg01 contains only 1,2 or 3 disks you can also work without "-s" or "-f" option and add the disk device names by vgimporting:

# vgexport -v -m /tmp/vg1.map /dev/vg1

# vgimport -v -m /tmp/vg1.map /dev/vg1 /dev/dsk/c... /dev/dsk/c... ...