Sunday, October 9, 2011

How to export and import a Volume Group

From the source Server do the these steps

unmount the filesystem(s) of the VG you want to export
umount /test (Ex. /test is the mount point)
vgchange -a n vg-test
vgexport -p -m vg-test.map vgtest (To preview and create the mapfile. To export omit -p)

on the New Server

ioscan –fnC disk (To find new disk entries)
insf –d sdisk (To install the disk device files)
ll /dev/*/group (To see what minor numbers have already been used)
mkdir /dev/vg-test (To create the directory)
mknod /dev/vgx/group c 64 0x00000 (To create the device file)
vgimport -m /dev/dsk/cxtxdx /dev/dsk/cxtxdx (To import the volume group)
vgchange -a y (to activate the volume group)
mkdir /test
and mount /dev/vg-test/lvxx /test

No comments:

Post a Comment