Operating System - HP-UX
1833780 Members
2333 Online
110063 Solutions
New Discussion

Re: LVM config migration to 11i v3

 
SOLVED
Go to solution
Ivan Rogovskiy
Advisor

LVM config migration to 11i v3

Hello everybody!
What should i do to save lvm configuration and data on my existing logical volumes during updating hpux from v2 to v3 version ?

Thanks !
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: LVM config migration to 11i v3

vgexport the existing LVs, migrate the map files to the new installation and vgimport them.


Pete

Pete
SoorajCleris
Honored Contributor

Re: LVM config migration to 11i v3

Hi Ivan,

Use vgexport and import, Please dont forget to use the option,

# vgimport â s â v â m /etc/lvmconf/vg01.map vg01

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
sujit kumar singh
Honored Contributor

Re: LVM config migration to 11i v3

Hi,


while migrating VGs from 11iv2 to 11iv3, make sure that you have the latest LVM pathces also and have a look at (only) few limitaions of 11iv2 Vgs being migrated to 11iv3.


refer to compatibilty notes on page 14 of
http://h20000.www2.hp.com/bc/docs/support/SupportManual/c01919369/c01919369.pdf (BSC link updated by admin)

also it is to be understood that the New generation Mass storage stack on 11iv3 has inbuilt Dynamic multipathing in it.


Also that though the legacy device files are well supported on 11iv3, you can choose to have the persistent DSFs that is agile view reflecting in your VGs.

so once you have imported those VGs from the 11iv2 system to the 11iv3 system, once again re-export and import that VG in the following way.
after you have imported the vgs to the 11iv3 system, say vg01
then re-export
vgexport -p -v -s -N -m /tmp/vg01.map /dev/vg01

vgexport /dev/vg01

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x0Y0000

make sure that 0x0y0000 is unique on the system.

vgimport -v -s -N -m /tmp/vg01.map /dev/vg01

regards
sujit
Ivan Rogovskiy
Advisor

Re: LVM config migration to 11i v3

Thanks for your answers!
Should i use -f option to create outfile with current set of pv_paths? Is this usefull?
likid0
Honored Contributor

Re: LVM config migration to 11i v3

vgexport -p -v -s -N -m /tmp/vg01.map /dev/vg01

If you use vxexport with the -s option there is no need to use the -f option, because you are addinf the VGID to the vg map file, and it will identify the disks that belong to that VG automatically.
Windows?, no thanks
sujit kumar singh
Honored Contributor
Solution

Re: LVM config migration to 11i v3

hi

-f and -s options are mutually exclusive for the commands vgimport and vgexport.

vgexport -p -v -s -N -m /tmp/vg01.map /dev/vg01

this shall create the map file with the VGID of the VG in this.

after this


vgimport -v -s -N -m /tmp/vg01.map /dev/vg01

this shall scan all the disks on the system to match the VGID as in the specified map file and shall import those disks in the specified VG.



-f option of vgexport creates a file that keeps the device files in an file file.out

when this file.out is used with a vgimport command this shall scan the disks and those matching the device files in file.out shall be imported in the VG.


note that the Device Files as in 11iv2 can be different to that while the OS is 11iv3, in that case -f option can be erroneous if that can not match the device files in the target OS.

so it is better to use the -s option.


regards