LVM and VxVM

move whole volume group to another server

 
SOLVED
Go to solution
irshad_1
Occasional Advisor

move whole volume group to another server

i want move whole volume group to another server running same operating system.please tel me the procedure ?
server os :HP unix 11.31

#strings /etc/lvmtab
/dev/vg00
/dev/disk/disk3_p2

regards/irshad

8 REPLIES 8
Bill Costigan
Honored Contributor

Re: move whole volume group to another server

What VG do you want to move? vg00 or another? Where are the disks with the VG, internal or on an SAN?

If they are vg00, do you want them to be vg00 on the other server?

If so, shutdown the first server, move the disks to the second server and boot from the same disks. The system and vg00 will now be on the other hardware.

If it is not vg00, You'll want to do a vgexport -s -m vgxx.map vgxx

Move the disks and the vgxx.map file over to the other hardware.

do an ioscan and an insf -e

create the /dev/vgxx and /dev/vgxx/group using the mknod command and then do a vgimport -s -m vgxx.map vgxx
vgchange -a y vgxx

Chandrahasa s
Valued Contributor

Re: move whole volume group to another server

Hi,

You want to move vg00 from one sever to another??

Is your disk are from san? or internal?

If san then you need to deallocate luns from old server and allocate to new server.
Powron server you should able to boot server.

If internal disks then you can move disks from one server to another and boot server.

Chandra

Assigning points motivate each one in this forum.
irshad_1
Occasional Advisor

Re: move whole volume group to another server

I am beginner in HP UX,
tel me what is "vgxx.map"

Regards,
irshad
P Arumugavel
Respected Contributor

Re: move whole volume group to another server

Hi Irshad,

The vgexport command generates a mapfile that can be copied to other systems that are part of a high availability. The mapfile contains description of the volume group and its associated logical volumes. The logical volume information found on the physical volumes is not modified. By default, a file named mapfile is created in the current directory. Use -m option to specify a different name for the file, mapfile. When used with the -s option, the volume group specified in the mapfile can be shared with other systems in the high availability cluster.

see: http://docs.hp.com/en/B2355-60130/vgexport.1M.html

Rgds \ vel
Aneesh Mohan
Honored Contributor
Solution

Re: move whole volume group to another server


I aasume your request is to mount the vg00 filesystems of server A in Server B.

In Server A:-
===========

Identify the VG00 disk

(a)
#strings /etc/lvmtab
/dev/vg00
/dev/disk/disk3_p2

(b)
dd if=/dev/disk/disk3_p2 of=/null bs=1024k


(c) Check the LED status of the disk , the disk which continuos light could be your VG00 disk.

(d) Shutdown the server
shutdown -hy 0

In Server B:-
===========

PLug the Server A hard disk ( I presume hot swappable disk)

#ioscan -fnC disk
#ioscan -fnkC disk -----------------Identify the new disk device file or check in syslog you will the new disk HW path
#mkdir /dev/vg10
#mknod /dev/vg10/group c 64 0x0a0000
#vgimport vg10 /dev/disk/diskxx
#vgchange -a y vg10
# Mount the filesystems


Aneesh
irshad_1
Occasional Advisor

Re: move whole volume group to another server

Dear Aneesh,
Please tel me each step description


#mknod /dev/vg10/group c 64 0x0a0000
#vgimport vg10 /dev/disk/diskxx
#vgchange -a y vg10
also "vgexport" cammand not required for removing VG00 from serverA.
Mr.Bill Costigan written "You'll want to do a vgexport -s -m vgxx.map vgxx"
Please reply .
Regards/irshad
P Arumugavel
Respected Contributor

Re: move whole volume group to another server

Hi,

> #mknod /dev/vg10/group c 64 0x0a0000

Creates character device file for VG10


> #vgimport vg10 /dev/disk/diskxx

Imports the description of volume group and LV informations from the specified PV path dev/disk/diskxx into system.


> #vgchange -a y vg10

Activate the volume group vg10


> also "vgexport" cammand not required for > removing VG00 from serverA.
> Mr.Bill Costigan written "You'll want to > do a vgexport -s -m vgxx.map vgxx"

If it is not vg00, You'll want to do a vgexport -s -m vgxx.map vgxx

Aneesh Mohan
Honored Contributor

Re: move whole volume group to another server

Hi Irshad,

In your case you are doing root volume group "vg00" right ? ,vgexport things will not work/required for root vg00.

Aneesh