Operating System - HP-UX
1753784 Members
7159 Online
108799 Solutions
New Discussion юеВ

Re: How to create a make_recovery CD?

 
Kenneth Platz
Esteemed Contributor

How to create a make_recovery CD?

Hello everyone,

I'm currently working on a DRP for the systems in our network, and after some investigation, we've come to the conclusion that we can't use recovery tapes (only about 1/3 of the systems have DDS drives installed), and we can't use make_net_recovery (about half of the systems aren't using the built-in LAN adapters at all, and a few others are using them for their MC/SG heartbeats), but all of the systems DO have an internal CD-ROM drive.

Now I'm fairly new to the Ignite-UX world, but I am fairly sure this can be done, I've managed to find the Ignite-UX systems administrators guide and also the white papers on creating customized install media.

What I've got now is a B180L that I've installed a Panasonic CD-R on (I'm using this as 'proof-of-concept'), and I've installed the cdrecord/mkhybrid/mkisofs tools on it.

Does anyone have any experience in this situation? Any pointers/FAQ's/step-by-step-instructions would be greatly appreciated.
I think, therefore I am... I think!
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor

Re: How to create a make_recovery CD?

Hi Kenneth:

Take a look at the section titled "Building an Install CD-ROM" in chapter-10 ("Creating Your Own Install Media") in the "Ignite-UX Administration Guide":

http://www.docs.hp.com/hpux/onlinedocs/B2355-90704/B2355-90704.html

...JRF...
Kenneth Platz
Esteemed Contributor

Re: How to create a make_recovery CD?

James,

That section on creating a bootable CD helped, but I still found myself banging my head on the desk in frustration and tossing a few 'frisbees' around the office after a few failed attempts (certain things are omitted or obsolete in that document -- like the need to use the -o 64w flag when building the LIF for 64-bit systems).

In the hopes that this will get put on someone's "hot links", here's a step by step list of what I went through to get that net_recovery image onto a CD:
1) From Ignite-UX, perform the make_net_recovery (I used the GUI, since
I'm not yet familiar with all the configuration files involved, and I
needed to make sure my /opt/omni and /var/opt/omni directories got
restored).
2) lvcreate -L 500 -n image /dev/vg01
3) newfs -F hfs -f 2048 /dev/vg01/rimage
4) mount /dev/vg01/image /var/tmp/recovery/image
5) rm /var/tmp/recovery/image/*
6) cd /var/opt/ignite/recovery/archives/
7) copy the most recent archive to /var/tmp/recovery/image/.gz
8) cd /var/opt/ignite/clients//recovery/latest
9) cp archive_cfg control_cfg recovery_cfg /var/tmp/recovery
10) vi archive_cfg:
Within the "sw_source" section, add:

source_type = DSK

Comment out the section:

# if nfs_source is used, be sure to export the source.
# (source_type == "NET") {
# nfs_source = "10.4.2.178:/var/opt/ignite/recovery/archives/takdsap1"
# }

Within the "golden image1" section, add/set:
archive_path = ".gz"

Comment out the section:
# For NFS, the path to the archive is relative to the mount point
# specified in the sw_source:
# (source_type == "NET") {
# archive_path = "2001-07-02,09:22"
#} else {
# archive_path = "1"
#}

11) umount /var/tmp/recovery/image
12) dd if=/dev/vg01/rimage of=/var/tmp/recovery/fs_image bs=1024k
13) make_medialif -r B.11.00 -f system_cfg -f control_cfg -f archive_cfg -o 64w -l lifvol
14) instl_adm -F lifvol -d > lifcfg
15) echo "use_ui=FALSE" >> lifcfg
16) echo "control_from_server=FALSE" >> lifcfg
17) instl_adm -F lifvol -f lifcfg

18) /opt/ignite/lbin/instl_combine -F /var/tmp/recovery/lifvol -C /var/tmp/recovery/fs_image

19) cdrecord -scanbus -> in this case the CD-R is at 1,3,0
20) ll fs_image -> make note of the size in bytes (in this case 551870464)
21) cdrecord -dummy -v -speed=4 dev=1,3,0 -data -tsize=551870464 fs_image
22) Assuming no errors from #21:
cdrecord -eject -v -speed=4 dev=1,3,0 -data -tsize=551870464 fs_image
23) rm /var/tmp/recovery/*

I think, therefore I am... I think!
Michael Roberts_3
Honored Contributor

Re: How to create a make_recovery CD?

Thanks for your perseverance, and your detailed follow-up. I will see to it the the documentation is updated.
etouq ot hguone revelc ton m'i
Holger Knoppik
Valued Contributor

Re: How to create a make_recovery CD?

Hi there !
I finished steps 1) until 18) successfully (with some modifications). You burned the CD using the B180L with appropriate commands. Is it possible to burn that CD by transfering the files across the network to a Windows PC ?
TIA, Holger
Live long and prosper!
Richard Crump
Occasional Advisor

Re: How to create a make_recovery CD?

Hi,

I've been trying to get this working on our systems but every time I try and boot I get an error about ENTRY_TEST then a load of Hex and back to the main prompt. The System also gives a WARNING A008 message. Anyone got any ideas? I followed Kenneth Platz's procedure.
Thanks,
richard
Craig Rants
Honored Contributor

Re: How to create a make_recovery CD?

Kenneth,
Good stuff! I am going to put that process in my notes for future reference.

Keep up the good work.
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Sanjay_6
Honored Contributor

Re: How to create a make_recovery CD?