HP UX System Management Software manual PA-RISC installation tape creation example, Assumptions

Models: UX System Management Software

1 275
Download 275 pages 32.3 Kb
Page 183
Image 183

Other edits —

The archive_type must match what was done by make_sys_image. For more information about archive_type, see instl_adm(4).

If you have only one archive, as in this example, you can delete the entire clause called golden image2. It is included in the template file in case you have two different types of archives, such as one for 32-bit and one for 64-bit architecture.

If more than one archive per architecture is on the media, use an exrequisite attribute between them so only one archive can be selected at one time.

IMPORTANT: Do not change anything else in the file, unless you are very sure of what you are doing. In particular, it is potentially dangerous to change the sw_category and other sw_source and sw_sel attributes not mentioned above.

Creating and Modifying a Serial Depot and its Configuration file for tape

A depot put on a tape is called a serial depot. It can exist as a regular file, but it cannot be registered, which means it cannot be accessed remotely.

Create the serial depot configuration file – Issue the following command:

# make_config -s /var/tmp/depot -c /var/tmp/depot_cfg

Modify the serial depot config file – The depot must always be the third file on the tape, so there is no need to specify a path to the depot. Remove the following lines:

sd_server = IP_address

sd_depot_dir = /var/tmp/depot

Change the source_type attribute from NET to MT:

source_type=MT

Create the serial depot – To create a serial depot from /var/tmp/depot and store it in /var/ tmp/serialdepot, enter:

#swpackage -s /var/tmp/depot \

-x media_type=tape @ /var/tmp/serialdepot

PA-RISC installation tape creation example

Assumptions

The following example assumes you have created a golden archive and a depot containing all the applications you want to install. Including a serial depot is optional and is not needed if the tape will only contain a golden archive, which is normally the case.

The golden archive in this example is assumed to have been created using make_sys_image on a system running HP-UX 11i v1 (B.11.11). See Chapter 11 (page 151) for information regarding golden archive creation.

The archive is in gzip compressed tar format and is named /var/tmp/myOSarchive.gz.

The archive_impact command must be used to obtain disk-space usage information for this archive so that disk space impacts can be included in the config content. The make_config command must be used to create a config file that describes the archive content. It's assumed that a config file named myOSarchive_cfg has been created for this archive.

The optional depot is named /var/tmp/serialdepot and its config file is named /var/tmp/ depot_cfg.

Building PA-RISC boot and installation tape 183

Page 183
Image 183
HP UX System Management Software manual PA-RISC installation tape creation example, Assumptions, Sourcetype=MT