Operating System - HP-UX
1753900 Members
7459 Online
108809 Solutions
New Discussion юеВ

Recover mirrored disks when installing HP-UX11i

 
SOLVED
Go to solution
David Junyent
Occasional Advisor

Recover mirrored disks when installing HP-UX11i

I have a HP-UX10.20 server with some pairs of mirrored disks.
I'm going to do a cold install of HP-UX11i.
What is the correct procedure to be able of recover my mirrored lvols once the installation is done?
I'm not sure if I have to vgcfgbackup&vgcfgrestore or vgexport&vgimport. Can somebody recall me the proper steps ?
Save the whales (and also Willy)
3 REPLIES 3
Mark Grant
Honored Contributor

Re: Recover mirrored disks when installing HP-UX11i

If these disks are in there own volume group that aren't going to be touched by the new installation, you can just "vgexport -m mapfile -s vgwhatever" and then after the install, create /dev/vgwhatever/group and then "vgimport -m mapfile -s vgwahetever".

Of course, that map file is going to have to be copied somewhere off the machine before you do the install and then copied back afterwards.
Never preceed any demonstration with anything more predictive than "watch this"
Pete Randall
Outstanding Contributor
Solution

Re: Recover mirrored disks when installing HP-UX11i

Mark's got it, but you don't want to forget the mknod command. The steps:

vgexport -p -s -m /tmp/vgNNmap /dev/vgNN
(save the maps to tape or somewhere you can recover them)
mkdir /dev/vgNN
mknod /dev/vgNN/group c 64 0xNN0000
vgimport -s -m /tmp/vgNNmap /dev/vgNN
vgchange -a y /tmp/vgNN

That should do it.


Pete

Pete
David Junyent
Occasional Advisor

Re: Recover mirrored disks when installing HP-UX11i

Hi,

Thanks a lot for you quick answer !

I also found am HP document...

http://www4.itrc.hp.com/service/iv/docDisplay.do?admit=-938907319+1068203461341+28353475&docId=%2FDE_SW_UX_swrec_EN_01_E%2FLVM.pdf

where all this issues related to LVM and MirrorDisk are very well explained.

Regards,

David
Save the whales (and also Willy)