Operating System - HP-UX
1833875 Members
1649 Online
110063 Solutions
New Discussion

vgcfgrestore with a different hardwarepath

 
Marcel Mages
New Member

vgcfgrestore with a different hardwarepath

Hello,

I've got a rp5470 server with two virtual partitions on it (vPar1 and vPar2).
vPar2 boots via SAN. After a reboot because of installing MirrorDisk/UX, vPar2 failed with the following message:"Failed to load:(hardwarepath):/stand/vmunix", also by specifying the Alternate Link.

After that, I've rebooted without vPar-functionality to recover the root-disk and then to boot /stand/vpmon again.
Now after recovering the vg00.conf from backup, I wanted to vgcfgrestore the vg00 from vPar2 to vgxos but the disk have a different hardwarepath.

# mkdir /dev/vgxos
# mknod /dev/vgxos/group c 64 0x030000
# vgcfgrestore -f /etc/lvmconf/hpxos/vg00.conf /dev/rdsk/c25t0d0
vgcfgrestore: Couldn't query physical volume "/dev/rdsk/c21t0d1":
The specified path does not correspond to physical volume attached to
this volume group
vgcfgrestore: Couldn't query physical volume "/dev/rdsk/c1t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgcfgrestore: Mismatch between the backup file and the running kernel:
Kernel indicates 1 disks for "/dev/vg00"; vg00.conf indicates 2 disks.
Cannot proceed with the restoration. Deactivate the Volume Group and try again.

# vgcfgrestore -f vg00.conf -l
Volume Group Configuration information in "vg00.conf"
VG Name /dev/vg00
---- Physical volumes : 2 ----
/dev/rdsk/c21t0d1 (Bootable)
/dev/rdsk/c1t0d0 (Bootable)

The problem is one the one hand, the disks have another hw-paths and on the other hand, I want to restore the disks to vgxos not to vg00.
Can anybody help me please or do you need more detailed information?
5 REPLIES 5
Stefan Farrelly
Honored Contributor

Re: vgcfgrestore with a different hardwarepath

If the disks are on a different hardware path then you want to vgimport these disks into a new VG in order to see them - not vgcfgrestore them. You only use vgcfgrestore if you have lost a disk and replaced it with a blank new one.

You error indicates though that you are trying to use disks which are already in use. I dont understand completely what you are trying to do.

With Vpars its important to remember to install the same software on both so the kernels on muiltiple vpars are the same - or else you can have vpmon boot errors as you had.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Eugeny Brychkov
Honored Contributor

Re: vgcfgrestore with a different hardwarepath

I do not think you'll be able to do it. I guess this vgxx.cfg file has maps for all disks it consists of, and these maps are tied to hardware paths. Thus when you'll tell vgcfgrestore to restore config to existing in maps c21t0d1 it will find this disk config map in vgxx.cfg and restore it to this disk. But if you'll point to device (physical path) which is not a part of volume group, like in you example, how vgcfgrestore will know which map to restore to this disk?
I understand that it should be simple for LVM if there's only one disk in VG, but if there're 4 disks? And do not think there's an exception for the case with one disk within VG
Eugeny
Michael Steele_2
Honored Contributor

Re: vgcfgrestore with a different hardwarepath

Each vg00 disk knows it belongs to vg00 because of the LVM header and the vgid number within.

And I don't think vgimport and vgexport are designed for the bootlif and boot vg because of the BDRA and bootlif. Better to restore using an ignite make_tape_recovery tape.
Support Fatherhood - Stop Family Law
Marcel Mages
New Member

Re: vgcfgrestore with a different hardwarepath

Physically, c21t0d1 and c25t0d0(the disk I want to recover) are the same disk, but vpar2 can't boot with c21t0d1. c21t0d1 is the devicefile from vpar2 and c25t0d0 is the devicefile of the disk after booting without vpars.

On vpar2, c21t0d1 was vg00, but now I want to recover it to vgxos, because vpar2 is not able to boot.
Dietmar Konermann
Honored Contributor

Re: vgcfgrestore with a different hardwarepath

This command should do (what I think) you want:

vgcfgrestore -f /etc/lvmconf/hpxos/vg00.conf -o /dev/rdsk/c21t0d0 /dev/rdsk/c25t0d0

However, I agree with Stefan... I have no real idea what you want to do. But, the command above should restore the former c21t0d0 header to c25t0d0.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)