|| 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 http://www.hp.com/go/ignite-ux-docs.
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 http://www.hp.com/bizsupport.
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 http://www.hp.com/go/ignite-ux-docs 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
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
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
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 \
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
To add DVD special files:
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
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.
Create the first DVD
Create the second DVD
Burn the DVD images and test them .
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: