Operating System - HP-UX
1753448 Members
4939 Online
108794 Solutions
New Discussion юеВ

Bootable CD from Golden Image does not work in Ignite 5.3.35

 
Dany Gustin
New Member

Bootable CD from Golden Image does not work in Ignite 5.3.35

IGNITE VERSION 5.3.35 debug level 5
Installing a CD-based installation from a Golden Image
======================================================

...
TEST: run_cmd("/sbin/sh /tmp/ign_configure/archive_script")
pax_iux: opt/ignite/bin : File exists
* Processed 10% of archive
...
* Completed 100% of archive
DEBUG: sigchld: wait'ed on process: 140 (last_pid=140)
ERROR: Cannot load OS archive (HP-UX B.11.00 64bit)
DEBUG: monitor_swagent_log: start=0, mon_pid=0

DEBUG SHELL:
============
When running the archive_script myself it works perfectly, but returns 1 ("echo $?") instead of the expected 0.
WHY ???
I've checked the tar-gzipped golden image and it is perfect!
4 REPLIES 4
Dany Gustin
New Member

Re: Bootable CD from Golden Image does not work in Ignite 5.3.35

THIS SEEMS TO BE A KNOWN BUG, here's what the response center gave us.
I'll try it out shortly.

> Errors during golden image installs in B.5.3 and B.5.4 (updated).
> -----------------------------------------------------------------
>
> This issue is documented in the CR JAGaf19725 in chart. The headline of
the CR reads "pax_iux error during Golden Image install due to problem with
SYSCMDS".
>
> Who is impacted by this problem?
>
> This affects all Ignite-UX servers running versions B.5.3 and B.5.4 _and_
doing custom golden image installs of any target HP-UX version 10.20 ->
11.23. These are installs from images created manually with make_sys_image,
rather than automatically via make_net_recovery.
>
> How do I know if I have the problem?
>
> There are two symptoms of this problem:
>
> 1) The pax error message:
>
> pax_iux: opt/ignite/bin : File exists
>
> printed just before the message:
>
> * Processed 10% of archive
>
> 2) Ignite-UX, after loading all of the archive, stops with an error:
>
> * Completed 100% of archive
> ERROR: Cannot load OS archive (English HP-UX B.11.11 64 Bit (image of
rusty.rose.hp.com))
>
> The configuration process has incurred an error, would you like to push a
shell for debugging purposes? (y/[n]):
>
> What is the workaround?
>
> The workaround is to add logic to the archive config files in the
sw_source "core archive" stanza. The specific logic is:
>
> is_hppa {
> pre_load_cmd += "
> if [[ ! -d /opt/ignite/binpa ]]
> then
> /sbin/mkdir /opt/ignite/binpa
> /sbin/chmod 555 /opt/ignite/binpa
> /sbin/chown bin:bin /opt/ignite/binpa
> /sbin/mv /opt/ignite/bin/print_manifest /opt/ignite/binpa
> /usr/bin/rmdir /opt/ignite/bin
> /usr/bin/ln -s /opt/ignite/binpa /opt/ignite/bin
> fi
> "
> }
>
> is_ia64 {
> pre_load_cmd += "
> if [[ ! -d /opt/ignite/binia ]]
> then
> /sbin/mkdir /opt/ignite/binia
> /sbin/chmod 555 /opt/ignite/binia
> /sbin/chown bin:bin /opt/ignite/binia
> /sbin/mv /opt/ignite/bin/print_manifest /opt/ignite/binia
> /usr/bin/rmdir /opt/ignite/bin
> /usr/bin/ln -s /opt/ignite/binia /opt/ignite/bin
> fi
> "
> }
>
>
> An example stanza:
>
> #########################################################
> ## Software Sources
> #########################################################
>
> sw_source "core archive" {
> description = "HP-UX Core Operating System Archives"
> load_order = 0
> source_format = archive
> source_type="NET"
>
> # When using this config file with a tape or CD-ROM where
> # the archive is on the same piece of media, then un-comment
> # the next line to prevent a prompt to change media during
> # install.
> # change_media=FALSE
>
> #
> # fix for pax archive extraction errors on PA-RISC systems
> #
> is_hppa {
> pre_load_cmd += "
> if [[ ! -d /opt/ignite/binpa ]]
> then
> /sbin/mkdir /opt/ignite/binpa
> /sbin/chmod 555 /opt/ignite/binpa
> /sbin/chown bin:bin /opt/ignite/binpa
> /sbin/mv /opt/ignite/bin/print_manifest /opt/ignite/binpa
> /usr/bin/rmdir /opt/ignite/bin
> /usr/bin/ln -s /opt/ignite/binpa /opt/ignite/bin
> fi
> "
> }
>
>
> #
> # fix for pax archive extraction errors on IPF systems
> #
> is_ia64 {
> pre_load_cmd += "
> if [[ ! -d /opt/ignite/binia ]]
> then
> /sbin/mkdir /opt/ignite/binia
> /sbin/chmod 555 /opt/ignite/binia
> /sbin/chown bin:bin /opt/ignite/binia
> /sbin/mv /opt/ignite/bin/print_manifest /opt/ignite/binia
> /usr/bin/rmdir /opt/ignite/bin
> /usr/bin/ln -s /opt/ignite/binia /opt/ignite/bin
> fi
> "
> }
>
> # The following 2 scripts should be reviewed to see if the
> # defined defaults are applicable. If you need to modify
> # them, copy them to /var/opt/ignite/scripts first and change
> # the paths here.
> post_load_script = "/opt/ignite/data/scripts/os_arch_post_l"
> post_config_script = "/opt/ignite/data/scripts/os_arch_post_c"
>
> # If nfs_source is used, be sure to export the source.
> nfs_source = "15.1.1.1:/var/opt/ignite/archives/Rel_B.11.11"
>
> # ftp_source and remsh_source are alternate ways to copy
> # the archive. An example of the ftp syntax:
> # ftp_source = "anonymous@15.1.54.123:iux"
> # remsh_source = "user@15.1.54.123"
> }
>
Steven E. Protter
Exalted Contributor

Re: Bootable CD from Golden Image does not work in Ignite 5.3.35

pax_iux is a tricky little program. It works like pax, but if you have the wrong patch on pax when you build the golden image, pax_iux can't unpack the archive.

You may if possible need to check your pax patch level and rebuild the golden image.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dany Gustin
New Member

Re: Bootable CD from Golden Image does not work in Ignite 5.3.35

It's a bug in IGNITE 5.3 and 5.4 as explained above.
So no need for a new golden image, but to implement a workaround to create the right directory.

WORKS PERFECT NOW.
Nivesh Patnaik
Frequent Advisor

Re: Bootable CD from Golden Image does not work in Ignite 5.3.35

Something else I have noticed while making compressed archives using make_sys_image is that /opt/ignite/bin is not captured in the archive.

/opt/ignite/bin directory was a link to /opt/ignite/binpa.

I even used the -g option with make_sys_image and specified an include file containing specifically /opt/ignite/bin and that didn't work.

Finally, I removed the /opt/ignite/bin link, created a new directory /opt/ignite/bin and copied over all the files from /opt/ignite/binpa into /opt/ignite/bin.

When I created a new archive and checked, /opt/ignite/bin and all the files underneath (not just print_manifest) were in there.
I gave him his drink as usual. Some men can't hold their arsenic.