make_medialif.1m (2012 03)

m
make_medialif(1M) make_medialif(1M)
EXAMPLES
Example 1
Create a boot LIF image using the configuration file
/home/root/myconfig and place it in
/home/root/uxinstlf
:
make_medialif -f /home/root/myconfig -l /home/root/uxinstlf
Example 2
To create a golden image operating system archive entitled
/var/tmp/myimage.gz, possibly built with
make_sys_image
(a gzip’ed tar archive of a B.11.23 system) on a bootable, installable DDS tape
medium to automatically load the archive. First create a file based upon the template file
/opt/ignite/data/examples/core.cfg
:
cp /opt/ignite/data/examples/core.cfg
/home/root/config_dds
chmod u+w /home/root/config_dds
In /home/root/config_dds comment out all the
nfs_source, ftp_source and
remsh_source
lines, and then change or uncomment the following objects:
software object field value
source_type "MT"
source_format ARCHIVE
load_order 0
sw_source
change_media FALSE
sw_source label of above sw_source
archive_path "1"
archive_type gzip tar
sw_sel
impacts as returned by archive_impact
Then create a LIF header that combines this information with the default configuration as follows:
make_medialif -f /opt/ignite/data/Rel_B.11.23/config
-f /home/root/config_dds
-l /home/root/uxinstlf_dds
Finally, create a bootable installation DDS medium using the image created above by putting a DDS1
density, no-rewind and no-compression, writable DDS tape in the
/dev/rmt/c0t3d0DDS1n drive, and
executing the following commands:
mt -t /dev/rmt/c0t3d0DDS1n rew
dd if=/home/root/uxinstlf_dds
of=/dev/rmt/c0t3d0DDS1n obs=2k
dd if=/var/tmp/myimage.gz
of=/dev/rmt/c0t3d0DDS1n obs=10k
mt -t /dev/rmt/c0t3d0DDS1n rew
Note that the obs argument in the second dd command should be 5120 if the archive is
cpio format.
Example 3
To create a boot LIF image (as in Example 2) with a CD rather than a DDS tape, create a file based upon
the template file
/opt/ignite/data/examples/core.cfg
, and execute the following commands:
cp /opt/ignite/data/examples/core.cfg
/home/root/config_cd
chmod u+w /home/root/config_cd
In /home/root/config_cd comment out the
nfs_source, ftp_source and remsh_source lines and
change or uncomment the following objects:
HP-UX 11i Version 3: March 2012 3 Hewlett-Packard Company 3