Print | Rate this content

HP-UX Ignite-UX - How to Use make_opticaldisc_recovery to Create Recovery on DVD


How to use make_opticaldisc_recovery to create recovery on DVD?



This information was taken from the Ignite-UX Administration Guide for HP-UX 11i March 2011 addition and can be viewed at the web link given below so any page numbers listed below are for this document.

Click here to access the technical article at

Creating a Boot CD/DVD or an Installation DVD

End-user can use scripts supplied by Ignite-UX to create boot and archive-based CD/DVDs as outlined in Boot and Archive-Based CD/DVDs (See Below).

To create depot-based installation DVDs, follow the procedures provided below in Depot-Based DVDs .


This section assumes the system creating the media has a DVD writer.

If the system does not have a DVD writer, user can create the ISO image and then copy it to another system equipped with a DVD writer to burn the media.

If the system is enabled with the HP Integrity Integrated Lights-Out Management Processor (iLO MP) virtual media (vMedia) feature, end-user can generate an ISO image that can be used with iLO vMedia virtual devices. For more information, see Appendix D (page 245) and the HP Integrity iLO.

2 MP Operations Guide available at the web site given below:

Click here to visit the HP Business Support Center web site at

File and ISO Image Size Considerations

The ISO image must fit on the DVD media (4.7GB).

Some implementations of ISO9660 limit the maximum file size to 2GB.

Prior to Ignite-UX version C.6.5 for HP-UX 11i v2, and C.6.8 for HP-UX 11i v1, the total size of the ISO image cannot be larger than 2GB.

For more information, see the sections FILE SIZES and IMAGE SIZE at the start of the make_media_install script.

Boot and Archive-Based CD/DVDs

With one simple command, a CD/DVD can be created that supports two-step media recovery. Additionally, make_media_install can write archives to a bootable DVD.

All HP-UX 11i v2 and 11i v3 bootable CD/DVDs created with make_media_install support both Itanium-based and PA-RISC boot.

The make_opticaldisc_recovery script can be used to create a recovery image and then write it to a DVD. The script creates the recovery image with make_net_recovery, and then calls make_media_install to write the recovery image to DVD. This script is to be run from the client system and requires one argument — the hostname or IP address of the Ignite server. The script first creates a recovery image of the client and stores it on the Ignite server. Then, the recovery image is written to the Ignite server's DVD writer. The make_opticaldisc_recovery script was introduced in Ignite-UX version C.7.2.

End-user can find both scripts in the directory:


Detailed usage information is available via

# make_media_install -?

and summary information is available via

# make_opticaldisc_recovery -?

Additional information is available at the start of the scripts.

Boot CD/DVD Examples

Two-step media recovery using a bootable CD/DVD is necessary to restore from tapes created with the Ignite-UX command make_tape_recovery on certain Itanium-based systems that do not support direct tape boot. See “Tape Recovery With No Tape Boot Support — Two-Step Media Recovery” (page 220) for more information on two-step media recovery, and the Ignite-UX Installation Booting white paper available at for information on configurations supporting HP Integrity native tape boot.

Two-step media recovery requires the version of Ignite-UX on the tape, on the bootable CD/DVD, and on the system creating the CD/DVD media to be identical. If end-user does not have a matching Operating Environment DVD, the make_media_install script can be used to easily create a bootable CD/DVD with the correct Ignite-UX version.

Create HP-UX 11i v3 bootable CD/DVD media for two-step media recovery

On a system with a CD/DVD writer and the same version of Ignite-UX as on the tape, execute the following command (iso_directory is the target directory for the .iso media file and the -r option specifies the release, such as B.11.23 or B.11.31):

# make_media_install -r B.11.31 -m iso_directory

Create HP-UX 11i v2 bootable media on USB DVD drive for two-step media recovery

In order to write to a USB DVD drive on an HP-UX 11i v2 system, end-user must install the patch PHKL_37814 and use the -c option with make_media_install. In the following example, the iso_directory is the target directory for the .iso media file, the -r option specifies the release, and the device_file is the DVD device file such as /dev/rdsk/c0t0d0.

# make_media_install -r B.11.23 -m iso_directory -c device_file

Installation Archive-Based DVD Examples

Installation media can be built for PA-RISC systems, Itanium-based systems, or both since the bootable DVD created with make_media_install on HP-UX 11i v2 or 11i v3 will support boot for either architecture. The archive, however, can only be installed on a system matching the architecture type it was created from.

The make_media_install script will generate impact statements for user, using either the -l command line option or the default $ImpactLevelDefault. See the start of the script for more information.

NOTE: Building installation DVDs requires the mkisofs and growisofs commands. Beginning with Ignite-UX version C.6.2.x, these commands are delivered in the /opt/ignite/lbin/ directory.

Put an Itanium-based HP-UX 11i v3 golden archive on a DVD

On a system with a DVD writer, execute the following commands. (The iso_directory is the target directory for the .iso media file. The -r option specifies the release — valid values for Itanium-based systems are B.11.23 and B.11.31. The -o option specifies the hardware architecture — the only valid value for an Itanium-based system is IA.)

# mkdir /var/opt/ignite/media/pseudo_root/archive
# cp goldenarchive.gz /var/opt/ignite/media/pseudo_root/archive
# make_media_install -r B.11.31 -o IA -a goldenarchive.gz -m iso_directory

Put a PA-RISC HP-UX 11i v2 golden archive on a DVD

On a system with a DVD writer, execute the following commands. (The iso_directory is the target directory for the .iso media file. The -r option specifies the release, such as B.11.11, B.11.23, or B.11.31. The -o option specifies the hardware architecture — valid choices on a PA-RISC system are: 32, 64v, or 64w.)

# mkdir /var/opt/ignite/media/pseudo_root/archive
# cp goldenarchive.gz /var/opt/ignite/media/pseudo_root/archive
# make_media_install -r B.11.23 -o 64w -a goldenarchive.gz -m iso_directory

Put two HP-UX 11i v2 golden archives, one Itanium-based and one PA-RISC, on a DVD .

The Itanium-based golden archive can only be installed on another Itanium-based system. Similarly, the PA-RISC golden archive can only be installed on another PA-RISC system. The DVD will be able to boot either type of architecture.

On a system with a DVD writer, execute the following commands. (The file suffixes .pa.gz and .ia.gz replace the make_media_install -o option. The iso_directory is the target directory for the .iso media file. The -r option specifies the release, such as B.11.23, or B.11.31.)

# mkdir /var/opt/ignite/media/pseudo_root/archive
# cp /var/opt/ignite/media/pseudo_root/archive
# cp IAgoldenarchive.ia.gz /var/opt/ignite/media/pseudo_root/archive
# make_media_install -r B.11.23 -a \
-a IAgoldenarchive.ia.gz -m iso_directory

Create a recovery DVD

Create a recovery image of the current system on the named Ignite-UX server, and write that recovery image to the DVD writer on the server system by issuing the following command on the client system.

# make_opticaldisc_recovery Ignite_server_name

Create an HP-UX 11i v2 Itanium-based recovery DVD using an existing network recovery image

Run the following command from the Ignite-UX server on which the recovery image exists. (The -r option specifies the HP-UX release, and the -o option specifies the hardware architecture.)

# make_media_install -r B.11.23 -o IA \
-f /var/opt/ignite/clients/client/recovery/archive/archive_cfg \
-f /var/opt/ignite/clients/client/recovery/archive/control_cfg \
-f /var/opt/ignite/clients/client/recovery/archive/system_cfg \
-a archive.gz \
-p /var/opt/ignite/recovery/archives/client \
-m /var/tmp

Error messages

No DVD available

The make_media_install script will automatically write the .iso image (default file name is image.iso) to the DVD. If there is no writable DVD available, the script will halt with a message similar to:

:-[ LOAD TRAY failed with SK=5h/ASC=24h/ACQ=00h]: I/O error

The .iso file will remain in the iso_directory specified with the -m option. Make sure end-user has enough disk space in the iso_directory to hold the .iso image.

No DVD special files

Prior to the first time end-user run make_media_install, end-user must create DVD special files. If the DVD special files are missing when user runs make_media_install, end-user will receive an error message similar to

:-( unable to open("/dev/rscsi/c0t0l0".O_RDONLY): No such file or directory
:-! consider 'mknod /dev/rscsi/c0t0l0 c 203 0x000002; chmod 0600 /dev/rscsi/cotol0'
+ Error 83 /opt/ignite/lbin/growisofs failed.
/opt/ignite/data/scripts/examples/make_media_install: ERROR: /opt/ignite/lbin/growisofs failed.

To add DVD special files:

  • Run the command mkdir /dev/rscsi .

  • Then run the suggested mknod and chmod commands.

NOTE: If the system with the DVD writer is running HP-UX 11i v3, end-user must use a legacy device special file to identify the DVD.

Missing -c argument on HP-UX 11i v2 USB DVD drive.

On an HP-UX 11i v2 system with a USB DVD drive, end-user must use the -c argument to make_media_install and install the patch PHKL_37814. For more information, see Create HP-UX 11i v2 bootable media on USB DVD drive for two-step media recovery (page 188 and also above). If the -c option was not used, an error message similar to the following will be displayed:

:-( unable to open ("/dev/rdsk/c0t0d0",O_RDONLY: No such device

Depot-Based DVDs

The procedure to create depot-based installation DVDs is dependent on the version of HP-UX end-user will be installing; use HP-UX 11i v2 Depot-Based Installation DVDs (page 190 and below) or HP-UX 11i v3 Depot-Based Installation DVDs (page 192 and below).

HP-UX 11i v2 Depot-Based Installation DVDs

This process is largely documented in the make_medialif(1M) and instl_combine(1M) manpages. The approach is to run make_config against each depot separately, then use make_medialif to form a single config file for the depots, the default file system layout file, and any other config files user wishes.

Preparation :

  1. Copy the installation content to the Ignite-UX server.

    End-user will need a great deal of disk space for this. Estimate 4.7 GB per DVD, which is the space end-user has for the depot and the ISO image. Use multiple depots and make sure each depot is small enough to fit on one DVD.

    For example, to create two depots on the Ignite server from OE media, use the following commands. Each DVD will have to be mounted before the swcopy and unmounted afterwards.

    # swcopy -x enforce_dependencies=false -s <mount point of OE_DVD1> \* \
    @ <path_to_depot1>
    # swcopy -x enforce_dependencies=false -s <mount point of OE_DVD2> \* \
    @ <path_to_depot2>

  2. Create a configuration file for each depot using make_config.

    For example, create a configuration file for the first depot with the following command:

    # make_config -x no_sd_server -s <path_to_depot1> \
    -c <path_to_cfg_file1>

    The no_sd_server option instructs make_config to omit the network attributes for that depot.

    When dealing with more than one depot, use the load_order option to control the exact sequencing of media installations. It is helpful to use the media_title option so Ignite-UX can prompt for media using meaningful text.

    To create the configuration file for the second depot, end-user could use the following command:

    # make_config -x no_sd_server -s <path_to_depot2> \
    -c <path_to_cfg_file2> -x load_order=2 \
    -x media_title="Installation DVD Number 2"

    Continue to create configuration files for all the depots.

  3. Create the LIF header

    Use the make_medialif command to deposit the LIF file into the first DVD depot pseudo-root. This is the norm for installation media.

    The following make_medialif command uses two standard configuration files and two depot configuration files, but end-user can specify as many as end-user wishes.

    # make_medialif -f /opt/ignite/data/Rel_B.11.23/config \
    -f /opt/ignite/data/Rel_B.11.23/hw_patches_cfg \
    -f <path_to_cfg_file1> \
    -f <path_to_cfg_file2> \
    -r B.11.23 -a -V -v -R -l <path_to_depot1>/media_lif
    # instl_adm -b -F <path_to_depot1>/media_lif

    The commands above create a LIF configuration file that contains the default file system layout configuration file for 11i v2, the patch handling configuration file for v2, and two depot configuration files created with make_config. Other options are to include the Version file, RECCMDS, and support for Integrity and PA-RISC systems.

    If end-user needs to include configuration information in the install file system, such as settings of control keywords, it must be set now using the instl_adm command. For example, if end-user wanted a common root password, end-user could place that information in a file using the root_password keyword, and then run the following command:

    # instl_adm -f <path_to_special_cfg_settings> \
    -F <path_to_depot1>/media_lif

    For more information, see instl_adm(1M) and instl_adm(4).

Create the first DVD

  1. Copy the EFI partition into the first DVD pseudo-root:

    # cp /opt/ignite/boot/Rel_B.11.23/EFI_CD_image <path_to_depot1>

  2. Run mkisofs to create the first DVD image (path_to_dvd1image):

    # /opt/ignite/lbin/mkisofs -D -r -U -v -max-iso9660-filename \
    -no-emul-boot -b EFI_CD_image -hide EFI_CD_image \
    -eltorito-alt-boot -no-emul-boot \
    -b media_lif -hide media_lif \
    -o <path_to_dvd1image> <path_to_depot1>

  3. Run instl_combine to position the LIF header at the beginning of the image:

    # /opt/ignite/lbin/instl_combine -C <path_to_dvd1image>

Create the second DVD

  1. Run mkisofs to create the second DVD image (path_to_dvd2image):

    # /opt/ignite/lbin/mkisofs -D -r -U -v -max-iso9660-filename \
    -o <path_to_dvd2image> <path_to_depot2>

Burn the DVD images and test them .

  1. Write the ISO images to media as a raw file using open source software such as cdrecord, growisofs, or software included with CD/DVD hardware.

  2. Test the DVD images to verify end-user can boot from the first one, and test that end-user can use them to install systems successfully.

HP-UX 11i v3 Depot-Based Installation DVDs

This section describes the differences in the 11i v3 process from the v2 process. (The differences are due to the requirements of the swm (software load) command.)

In order to support the 11i v3 process, the createMediaCatalogs script was added to Ignite-UX starting with the C.7.10 release. The createMediaCatalogs script is found in /opt/ignite/data/scripts. Detailed usage information is available via

# /opt/ignite/data/scripts/createMediaCatalogs -?

See createMediaCatalogs(1M) and swm(1M) for more information.

See HP-UX 11i v2 Depot-Based Installation DVDs (page 190 and above) for detailed information on this procedure, including command syntax.

To create 11i v3 depot-based DVD media, follow these steps:

  1. Use swcopy to create one depot with all the DVD content in it. If end-user has additional software from other sources, use swcopy to add that to the depot too.

  2. Run make_config against the combined depot using the -x no_sd_server option.

  3. Use swcopy to create a separate depot for each DVD.

  4. Run the createMediaCatalogs script, supplying all the depots as arguments. It's important to list the depot for the first DVD as the first argument.

  5. Use make_medialif to create the LIF volume for the first DVD. This step will use the config file end-user created in step 2.

  6. Use mkisofs to create the ISO image for the first DVD.

  7. Run instl_combine to position the LIF volume in the install content.

  8. For each subsequent DVD, use mkisofs to create the ISO image for each depot.

  9. The ISO images may now be burned to DVD and tested.

  10. Once the DVD has been verified, end-user can remove the combined depot created for make_config in step 2.Boot and Archive-Based CD/DVDs.


Provide feedback

Please rate the information on this page to help us improve our content. Thank you!