Operating System - HP-UX
1840655 Members
1863 Online
110166 Solutions
New Discussion

Re: substituting vg00 with another system disk

 
Alex Lavrov
Regular Advisor

substituting vg00 with another system disk

Hey. I wanted to boot a system from a different system disk and substitute the vg00 to point to the new disk.

what i planned to do is to boot in lvm maintanance mode and do vgexport to vg00 and vgimport to the new disk. The problem is that the computer doesn't boot in lvm maintanance mode, it does a crash. It boots perfectly to single user mode and to run level 3, but not in lvm maintanance mode.

Does anybody know why ? or knows how to do it ?
thanx
5 REPLIES 5
steven Burgess_2
Honored Contributor

Re: substituting vg00 with another system disk

Hi Alex

What messages are you receiving when the server fails to boot into lvm maintenance mode ?

Steve
take your time and think things through
Alex Lavrov
Regular Advisor

Re: substituting vg00 with another system disk

I see the messages that it identifies the root, swap and dump volume and then it gets stuck, and after a minute it crashes.
steven Burgess_2
Honored Contributor

Re: substituting vg00 with another system disk

Hi Alex

Most indications point to a problem with special files that are regular files

Here are a couple of DocId's for you to look at

http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000064209257

http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066026060

HTH

Steve
take your time and think things through
Sundar_7
Honored Contributor

Re: substituting vg00 with another system disk

Hi Alex,

Most likely the problem is with /stand/rootconf file which is used by lvm to locate root and mount it as /dev/root without activative VG00.

boot in multi user mode and recreate /stand/rootconf using

# lvlnboot -c

This will recreate /stand/rootconf.

Thanks,

Sundar.
Learn What to do ,How to do and more importantly When to do ?
Bill Costigan
Honored Contributor

Re: substituting vg00 with another system disk

Why not mirror vg00 to the second disk after then boot from it and unmirror and remore the first disk from vg00.

if c1t6d0 is new disk
and c0t6d0 is old

pvcreate -B /dev/rdsk/c1t6d0
vgextend /dev/vg00 /dev/dsk/c1t6d0
mkboot /dev/rdsk/c1t6d0
mkboot -a "hpux (;0) /stand/vmunix" /dev/rdsk/c1t6d0

lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t6d0
... lvextend -m 1 /dev/vg00/lvol2, lvol3 etc.

lvlnboot -R /dev/vg00

setboot -p

reboot

now unmirror from first drive
lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c0t6d0
do same for lvol2 through n
do vgdisplay to ensure no extents are left on /dev/dsk/c0t6d0 and then vgreduce /dev/vg00 /dev/dsk/c0t6d0