make_medialif.1m (2012 03)

m
make_medialif(1M) make_medialif(1M)
software object field value
source_type "DSK"
source_format ARCHIVE
load_order 0
sw_source
change_media FALSE
sw_source label of above sw_source
archive_path "myimage.gz"
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 by executing the
following command:
make_medialif -f /opt/ignite/data/Rel_B.11.23/config
-f /home/root/config_cd
-l /home/root/uxinstlf_cd
There are two ways you may proceed to store the archive: with an HFS file system or a CD file system.
An HFS file system may be created using standard HP-UX tools, which may be more familiar. A CD file
system (ISO-9660) is more portable with other operating systems, but if non-standard features such as
long file names are used, portability may be limited. In either case, there needs to be available disk space
of slightly more than twice the size of the archive. See the examples in instl_combine(1M) on how to
create an ISO-9660 file system using the mkisofs (8) command.
To use an HFS file system, there must be sufficient free disk space to store the archive in an empty logical
volume if you are using LVM, or an unmounted disk if you are using whole-disk. This example assumes
the use of LVM to create a logical volume big enough to contain the archive. A fragment size of 2048 (or a
multiple of 2048) is required if the image is used on a CD. There must also be slightly more free space in
the existing file system layout for the
dd command output. Assume that the archive is about 250MB.
Execute the following commands:
lvcreate -L 270 -n archvol vg00
newfs -F hfs -f 2048 /dev/vg00/rarchvol
mkdir /tmpcd
mount /dev/vg00/archvol /tmpcd
cp /var/tmp/myimage.gz /tmpcd
umount /tmpcd
dd if=/dev/vg00/rarchvol
of=/var/tmp/fs_image_hfs bs=1024k
To use a CD file system, some public domain or retail CD tool set must be installed. You must have a util-
ity that creates the CD file system and copy files into it. This approach is very similar to that of the HFS
method. Again,using a logical volume to contain the CD file system is recommended. In the end, there
must be a regular file that contains the CD file system; for example
/var/tmp/fs_image_cdfs
.
Use
instl_combine to combine the LIF image and file system by using one of the following two com-
mands, depending upon which file system is used:
/opt/ignite/lbin/instl_combine -F /home/root/uxinstl_cd
-C /var/tmp/fs_image_hfs
/opt/ignite/lbin/instl_combine -F /home/root/uxinstl_cd
-C /var/tmp/fs_image_cdfs
Using a CD writing utility, transfer either
/var/tmp/fs_image_hfs or
/var/tmp/fs_image_cdfs to a writable CD in raw mode. The resulting CD is a bootable, installable
Ignite-UX medium. The image may also be transferred to a raw disk. A system booted from that disk
may be helpful to test the image before writing it to CD.
Example 4
To create a boot LIF image (as in Example 2) with an archive on a B.11.23 client for a B.11.11 client, you
would execute the following command:
make_medialif -f /opt/ignite/data/Rel_B.11.11/config
-f /home/root/config_cd -r B.11.11 -l /home/root/uxinstlf_cd
All subsequent commands in Example 2 should be executed.
4 Hewlett-Packard Company − 4 − HP-UX 11i Version 3: March 2012