Operating System - HP-UX
1846836 Members
6533 Online
110256 Solutions
New Discussion

lvlnboot'ing other volume groups

 
tech1214
Advisor

lvlnboot'ing other volume groups

Background: I'm trying to figure out the fastest way to dupe an entire set of disks - boot and data.

Initially I was doing it the brute force way boot from a special disk that is a bare-bones hpux system and use it to dd from original disks to new disks. That worked, it was a simple no-brainer. But it was really slow.

So then I wrote a script that would vgimport the original volume groups, vgcreate the new volume groups on the destination disks and vxdump | vxrestore the filesystems across. That reduced the dupe time by 75%.

But I have not been able to figure out how to make the new boot/root disks actually bootable. When I use lvlnboot to set them up, it seems to be OK. But when I actually boot from them, it doesn't work and I have to boot in LVM maintenance mode and do the lvrmboot and lvlnboot (with -b and -r and -s and -d) all over again.

Which can easily add 40 minutes to the procedure (have to do two seperate boot disks and each boot cycle takes roughly 20 minutes).

This is with semi-recently patched hpux 11.11 systems.

Any suggestions for how to avoid that last step?
2 REPLIES 2
Charles H Emery
Advisor

Re: lvlnboot'ing other volume groups

I do not have my notes with me, but here is another thread that has some useful info.
http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=919439&admit=109447627+1199829676376+28353475

I also emailed my best HP-UX guru, who should be able to give a good recommendation.
Charles H Emery
Advisor

Re: lvlnboot'ing other volume groups

Oh, aside from that,
do not forget your setboot to update the NVRAM boot info, and your mkboot command to make the disk bootable. The mkboot and setboot commands can be done anytime.
I will leave you to look in the man pages on those (if needed).