1846159 Members
4760 Online
110254 Solutions
New Discussion

vgexport & vgimport

 
SOLVED
Go to solution
ASIFKHAN
Frequent Advisor

vgexport & vgimport

Q-1why & when we export volume group?

Q-2 how we export and import particular volume group?

another questions related to this topic are:

Q-3 when we export volume group is it necessary to create map file ?if we don"t create map file then what will be consequences?

Q-4 If we create map file then where it resides ,whether in system or in that disk itself?
2 REPLIES 2
Sandy Chen
Honored Contributor
Solution

Re: vgexport & vgimport

Hi,

1. We export volume group if you don't need the volume group anymore, or you want to mount the volume group on another servers permanently

2.
- To export (remove the vg configuration from the servers): vgexport /dev/vgxx
- To export and create a mapfile: vgexport -s -p -v -m /tmp/vgxx.mapfile /dev/vgxx
- To Import, if you know which disks belong to the volume group: vgimport -v /dev/vgxx /dev/dsk/c?t?d? /dev/dsk/c?t?d?
- to import with mapfile: vgimport -s -p -v -m /tmp/vgxx.mapfile /dev/vgxx

3. Mapfile is necessary if you want to import the vg on another machine. If you don't create the mapfile, the consequences is you can't import the vg if you don't know which disks belongs to the vg

4. it's better you put the mapfile outside the disks, so that if you unmount and deactivate the vg, you still have the mapfile

regards,
Sandy
I never think of the future. It comes soon enough.
Mobeen_1
Esteemed Contributor

Re: vgexport & vgimport

I guess no need to give any additional information, Sandy has addressed each of your questions.