Operating System - HP-UX
1833377 Members
3021 Online
110052 Solutions
New Discussion

migrate disks to new server running 64 bits os

 
SOLVED
Go to solution
M.J. van der Meer
Frequent Advisor

migrate disks to new server running 64 bits os

We currently run a K380 with a HP-UX 11.0 (32 bits) which is attached to an EMC box. We purchased a new server which preferably should run HP-UX 11i (64bits) and we would like to vgexport/vgimport the current file systems from the K series to the N series. Is this supported and is there any experience from the field?
2 REPLIES 2
Carlos Fernandez Riera
Honored Contributor
Solution

Re: migrate disks to new server running 64 bits os

No problem.


Just run vgexport -s -m MAPFILE -p /dev/vgxx for each vg.


On the new system run vgimport -s -m MAPFILE /dev/vgxx.

It will find into the EMC all disks of vgxx for you.

unsupported
pap
Respected Contributor

Re: migrate disks to new server running 64 bits os

Hi please look at the check list below.


Take 2 copies of full system backup

You have to do following things on old machine :

Unmount all the file systems,

vgchange -a n /dev/vg01
vgchange -a n /dev/vg02 and so on....

vgexport -m /tmp/lvmconf_vg01.map -s -v -p /dev/vg01
similarly for all the volume groups.

Make a note that vg00 will not be exported and hence you need to back up any file systems which you want to migrate to new system. Then restore it to new system from backup. MAke sure you have 2 backup copies of filesystems.
you can also create logical volumes under any other volume groups and move the filesystem data in new logical volume, as you are exporting volume groups this will be simpler to do if you have enough disk space availble in other volume groups.

On New machine run following commands :

mkdir /dev/vg01..../dev/vg02....and so on.
mknod /dev/vg01/group c 64 0xNN0000
NN is a volume group number.
repeat for all volume groups.

copy map files from OLD machine to New machine through ftp or rcp.

then run follwing commands

vgimport -m /tmp/lvmconf_vg01.map -s -v -p /dev/vg01 (if runs without error then execute following command.)
vgimport -m /tmp/lvmconf_vg01.map -s -v /dev/vg01

vgchange -a y /dev/vg01
repeat for all VGS....and you are all set....


If you are running NIS on your system the restore following files from backup

/etc/rc.config.d/namesvrs
/etc/nsswitch.conf
/etc/hosts
also the NIS map files

If running DNS
/etc/name*
/etc/named.data directory
/etc/resolv.conf

If NFS is running :

/etc/exports
/etc/rc.config.d/nfsconf

In general you will need following
/etc/netconf
/etc/hosts
/etc/resolv.conf
/etc/hosts.equiv
/etc/nsswitch.conf
/etc/namesvrs
/etc/services

MAke sure you have noted the links for different scripts under /sbin/init.d directory.

If you have not restored follwing, please do so.

/etc/passwd
/etc/group
/etc/profile/etc/shutdown.allow

# Note down softwares installed on new machine matches exactly with the old machine.

# Kernel parameters matching between both servers is very IMP.....I had a problem when I did not compared kernel parameters while migrating the system.


This is enough as per my view.

Thanks,

-Piyush

"Winners don't do different things , they do things differently"