1837758 Members
3453 Online
110119 Solutions
New Discussion

vgexport and vgimport

 
SOLVED
Go to solution
Carlos Alvarado F
Occasional Advisor

vgexport and vgimport

Hi all,

Is possible to do a vgexport -m mapfile /dev/vg03 and after in the new server to do vgimport -v -m mapfile /dev/vg05 /dev/dsk/c0t5d0

I want to change the : vg03 to vg05

Thanks, Carlos

2 REPLIES 2
Patrick Wallek
Honored Contributor

Re: vgexport and vgimport

Yes, that will work without a problem.
S.K. Chan
Honored Contributor
Solution

Re: vgexport and vgimport

Yes it should work fine .. the full process may be like so ..

o Umount all FS associated with vg03
# vgchange -a n /dev/vg03
==> Deactivate vg03.
# vgexport -m /tmp/mapfile /dev/vg03
==> Make sure /tmp/mapfile gets transfered to the new server.

On the new server..
# mkdir /dev/vg05
# mknod /dev/vg05/group c 64 0x050000
==> Assuming minor number 0x050000 is unique.
# vgimport -m /tmp/mapfile /dev/vg05 /dev/dsk/c0t5d0
# vgchange -a y /dev/vg05
==> Activate vg05.
# vgcfgbackup /dev/vg05
==> Backup VG configuration.
Final step is edit /etc/fstab file appropriately to include the mount points for vg05 and mount the FS.