1752794 Members
6201 Online
108789 Solutions
New Discussion юеВ

Help moving VGxx

 
SOLVED
Go to solution
Jose A. Lara
Occasional Contributor

Help moving VGxx

I neeed to move an SC10 from server1 to server2 (this is not a cluster) this enclosure have 2 controllers
and within SC10 in server1 we have created:
VG01
VG02

In server2 have
VG00 VG01 VG02 in the internal HD.

what happen if VG01 exist in server2 (different data) when I do a vgexport/vgimport? can I change the VG name??

What you recommend to do!!

Thanks for your help

6 REPLIES 6
John Palmer
Honored Contributor
Solution

Re: Help moving VGxx

Hi,

1. vgexport the volume groups on server1, specify that you want a map file with the -m flag. Note which disk paths are in each volume group.
2. Copy the map files to server2.
3. Move the SC10 to server2.
4. If you've rebooted then the disks should have been recognised on server2, if not run ioscan and insf to locate them and create the device files.
4. Create the volume group files (example vg03 and vg04)
mkdir /dev/vg03
mknod /dev/vg03/group c 64 0x030000
mkdir /dev/vg04
mknod /dev/vg04/group c 64 0x040000
(you'll have to check that the minor numbers 0x030000 and 0x040000 are unique on server2)
5. Run vgimport for each VG specifying the relevant map file from server1 (which identifies the logical volume names) and specify the names of every disk (using the new pathnames) that you noted in step 1.
6. Activate each VG with vgchange -a y and it's good practice to run vgcfgbackup

Note that it's also possible to use the -s flag for the vgexport and vgimport in which case you don't have to supply the disk names to vgimport, see the relevant man pages for more information.

Regards,
John
Kellogg Unix Team
Trusted Contributor

Re: Help moving VGxx

Yes, you can do vgimport by different name. Here is a quick cook-book to do that -

On server1:
----------
umount FSs (of vg01 vg02)
vgchange -a n vg_name
ls -l /dev/vg_name/group (to get major/minor numbers)
vgexport -s -m /tmp/vg_name.map vg_name

On server2:
----------
mkdir /dev/new_vg
mknod /dev/new_vg/group c
vgimport -s -m /tmp/vg_name.map new_vg
make new /etc/fstab entries accordingly
vgchange -a y new_vg
mount new_mount_point
work is fun ! (my manager is standing behind me!!)
steven Burgess_2
Honored Contributor

Re: Help moving VGxx

Hi

Here you go , step by step guide

http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062683930

HTH

Steve
take your time and think things through
Elif Gius
Valued Contributor

Re: Help moving VGxx

At first keep a backup of your system ;-)
then ...
- create a new mapfile
vgexport -p -m /tmp/vg.map /dev/vg02
- umount the filesystem
- deactivate the vg
vgchange -a n /dev/vg02
- then edit your mapfile (replace the vgname)
- create "new" /dev/vgnewname
- do mknod and so on
- now vgimport:
vgimport -m /tmp/vg.map /dev/vgnewname /dev/dsk/cxtyd0

- if you have many disks you can use an insertfile where you entry all your disks

vgimport -m /tmp/vg.map -f infile /dev/vgnewname

- then mount your filesystems
- start your database

Have a lot of fun !!!
T G Manikandan
Honored Contributor

Re: Help moving VGxx

Jose A. Lara
Occasional Contributor

Re: Help moving VGxx

Thanks to all for your help!