Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Ignite-UX Administration Guide: HP Computers with HP-UX 10.x, 11.0 or 11i > Chapter 10 Creating Your Own Install Media

Building an Install CD-ROM

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

CD-ROM layout

There are similarities between putting a CD-ROM together and putting a tape together, as explained in the previous pages. One major difference, however, is in disk space usage. You have to create a logical volume (or provide a whole disk) large enough to hold the archives and the depots. This paper will assume that a logical volume is used. You need that much space again to copy the raw logical volume to a regular file. So you probably end up using around three times the disk space consumed by your archives and depots.

A bootable CD-ROM is not a serial device like a tape. It has a file system on it, and it also has a LIF volume that contains the same information as above except for the config files which describe the archives and depots. Access to these objects is somewhat different.

The file system on the CD-ROM can be either HFS or CDFS. You can create an HFS file system using standard HP-UX commands. Various third-party applications are available for a CDFS file system. Note that there is less capacity on a CD-ROM (650 MB) than on a 90 meter DDS-1 tape (2GB).

  1. Create the logical volume. Assume that the logical volume that will be used is /dev/vg00/image, and it is mounted at /var/tmp/image. Also assume that an HFS file system will be used. Using HFS and standard HP-UX commands, create the logical volume (assume everything fits in 500 MB):

    lvcreate -L 500 -n image vg00

    newfs -F hfs -f 2048 /dev/vg00/rimage

    mkdir -p /var/tmp/image

    mount /dev/vg00/image /var/tmp/image

    For CDFS file systems there are similar commands. Check the software supplier documentation.

  2. Access a CD-ROM Archive. The file system in the logical volume will contain both the archives and the depots. Place the archives in the CD-ROM image by copying them into the file system just created:

    cp /var/tmp/archive_700.gz /var/tmp/image

    cp /var/tmp/archive_800.gz /var/tmp/image

  3. Creating config file information for the archives is similar to what was done for the DDS tape. Start with a new copy of /opt/ignite/data/examples/core.cfg in /var/tmp/archive.cfg

    To modify the config file to access the Series 700 archive, the following attributes need to be changed in /var/tmp/archive.cfg in the sw_source core archive stanza:

    Table 10-6 Title not available (Building an Install CD-ROM)

    AttributeOld ValueNew Value
    source_type NET DSK
    change_media#change_media=FALSEchange_media=FALSE
    nfs_sourcenfs_source=IP:depot#nfs_source:IP:depot

     

    These changes will modify the source type from a network (NET) access to CD-ROM (DSK). The other changes are as described before.

  4. Inside the stanza enabled by HARDWARE_MODEL ~ 9000/7.* the following fields must be changed:

    Table 10-7 Title not available (Building an Install CD-ROM)

    AttributeOld ValueNew Value
    archive_pathB.10.20_700_CDE.gzarchive_700.gz
    impacts/ 27KB(as reported by archive_impact)

     

    The change in archive_path indicates that the archive will be found in the pseudo-root of the CD-ROM in a file called archive_700.gz . Ignite-UX will prepend the mount point it uses to access the archive. As before, the correct set of impacts lines need to be included.

  5. Again you can change the sw_sel and description strings to something more descriptive and applicable to your situation. The text inside the double quotes can be changed to whatever you like. Note that archive_type must match what was done by make_sys_image.

  6. Delete the entire stanza called golden image2 again.

  7. In the stanza for the Series 800 (it is an else clause later in the file) the same sort of changes must be made. These attributes need to change:

    Table 10-8 Title not available (Building an Install CD-ROM)

    AttributeOld ValueNew Value
    archive_pathB.10.20_700_CDE.gzarchive_800.gz
    impacts/ 27KB(as reported by archive_impact)

     

    The change in archive_path indicates that the archive will be found in the pseudo-root of the CD-ROM in a file called archive_800.gz. Ignite-UX prepends the mount point it uses to access the archive. As before, the correct set of impacts lines need to be included. It cannot be emphasized enough not to change anything else in the file.

  8. Create and Access the CD-ROM Depot. Tape is restricted to a single depot. That restriction does not apply to a CD-ROM. However, we will use a single depot for simplicity sake. Create the depot using swcopy to a target in the logical volume:

    swcopy -s /var/tmp/depot \* @ /var/tmp/image/depot

  9. Once again, use make_config to create the start of the config files for the depot:

    make_config -s /var/tmp/depot -a 700 -c /var/tmp/depot_700_cfgmake_config -s /var/tmp/depot -a 800 -c /var/tmp/depot_800_cfg

  10. Edit config Files. Since the SD server is the system that is being installed, remove this attribute. Change both config files by removing this attribute line:

    sd_server=IP_address
  11. Change these attributes in both files:

    Table 10-9 Title not available (Building an Install CD-ROM)

    AttributeOld ValueNew Value
    source_typeNETDSK
    sd_depot_dirvar/tmp/depotdepot

     

    The change to source_type indicates that the depot is located on a CD-ROM instead of over the network. The change in sd_depot_dir indicates that the depot will be found in the pseudo-root of the CD-ROM in a depot called depot. Ignite-UX prepends the mount point it uses to access the depot.

  12. Assemble the CD-ROM. The raw file system just created must be copied into a regular file so it can be written to the CD:

    umount /var/tmp/imagedd if=/dev/vg00/rimage of=/var/tmp/fs_image bs=1024k

  13. Create the LIF Volume. Now that most of the components of the CD-ROM are complete, use make_medialif to create the LIF volume:

    make_medialif -f /opt/ignite/data/Rel_B.10.20/config \
    -f /var/tmp/archive.cfg -f /var/tmp/depot_700_cfg \
    -f /var/tmp/depot_800_cfg -l /var/tmp/lifvol

    This creates the LIF volume that includes all the configuration information. It includes the defaults Ignite-UX provides and provides the access to the archives and the depot.

  14. Modify INSTALLFS Config. Change configuration information in INSTALLFS. To set run_ui and control_from_server variables using instl_adm to TRUE and FALSE, respectively, based on our scenario:

    instl_adm -d -F /var/tmp/lifvol > /var/tmp/cfg

    vi /var/tmp/cfg #Add/change the two variables

    instl_adm -T -F /var/tmp/lifvol #Check syntax

    instl_adm -d -F /var/tmp/lifvol #Verify changes

  15. These two objects (the raw file system and the LIF volume) must be combined using instl_combine. The result is a single file with the LIF volume wrapped around the file system, which can then be written to the CD:

    /opt/ignite/lbin/instl_combine -F /var/tmp/lifvol \
    -C /var/tmp/fs_image

  16. Complete the CD config. Using your CD-ROM writer software, copy /var/tmp/fs_image to the CD.

The CD-ROM is now ready for installations. You can test the image out before burning a CD by copying it to an unused raw disk and rebooting the system off that disk.

Media from make_tape_recovery

There are many similarities between a tape produced by make_tape_ recovery and one constructed by the method described here. In fact, make_tape_recovery performs many of the same steps. But there are some important differences as well. The primary purpose of a recovery tape is to restore enough of a system to get it going following some catastrophe, so the rest of the system can be recovered from backups.

Additional Archives and Depots Media

If there is insufficient space on either a tape or a CD to hold all the archives and depots, it is possible to put them onto separate media. In this case, the config file describing these archives or depots would have change_media set to true. Ignite-UX would prompt the user for the new medium. If this is a CD, the instl_combine step is needed only for the first CD.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.