Ignite Golden Image
Once you have created a Golden Image, the steps to make the image visible are a bit cryptic in the Ignite documents, so here is a simplified version: Setting up an existing golden image for use: ============================================ 1. Extract the disk usage (called impacts) from your Golden Image file: /opt/ignite/lbin/archive_impact -t -g /var/opt/.someplace./GoldenImages/atl3-11.23.gz > /tmp/GI.impacts Golden Images can be stored anywhere - use your specific directory. This command takes several minutes to complete depending on the size of the image. 2. Get a copy of the example file for your revision of HP-UX (11.23 in this example): cd /opt/ignite/data/examples ls -1 B.11.11.archives.cfg B.11.11.golden_image.cfg B.11.23.archives.cfg B.11.23.golden_image.cfg B.11.31.archives.cfg B.11.31.golden_image.cfg README core11.cfg networking noncore.cfg (note: not /var/opt/ignite, just /opt/ignite) cp B.11.23.golden_image.cfg/var/opt/ignite/data/Rel.11.23/golden_image_cfg (note the NEW name for the cfg file -- can be anything but this follows the docs) 3. Edit the new file: golden_image_cfg - Find the nfs_source line and change: nfs_source = "10.11.12.200:/var/opt/ignite/GoldenImages" where: 10.11.12.200 is the Ignite server's address and /var/opt/ignite/GoldenImages is the location where you created your Golden Images. There will typically be 2 files per backup: .gz and .log - Find the two init sw_sel sections. There are 2 architectures, one for IA64 and one for PARISC. If your image is PARISC, then remove everything from the line (is_ia64) { to the end of the section: } For IA64 (Itanium, Integrity...), remove the (is_hppa) { through }. - In the same section after init sw_sel, change the description = to something meaningful for your Golden Image. - In the same section, modify the line: archive_path = to the filename of your Golden Image. This is the basename, not the full pathname to the file: Ex: archive_path = "atl1-11.23.gz" - In the same section, below the archive_path, you'll see the impacts section. Remove all the impacts = lines and replace them with the contents of your file from step 1. In vi, position the cursor on the line where you removed the old impacts and type: :r /tmp/GI.impacts or whatever file you saved from the /opt/ignite/lbin/archive_impact command. 4. Now edit the INDEX file to show the Golden Image. - edit: /var/opt/ignite/INDEX Append the lines: cfg "HP-UX B.11.23 PA Golden Image Archive" { description "B.11.23 PA golden image archive" "/opt/ignite/data/Rel_B.11.23/config" "/var/opt/ignite/data/Rel_B.11.23/golden_image_cfg" "/var/opt/ignite/config.local" } Make sure that the golden_image_cfg matches the file you created in step 2. 5. Test the INDEX file: # /opt/ignite/bin/instl_adm -T * Checking file: /opt/ignite/data/Rel_B.11.11/config * Checking file: /opt/ignite/data/Rel_B.11.11/hw_patches_cfg * Checking file: /var/opt/ignite/data/config.local * Checking file: /opt/ignite/data/Rel_B.11.23/config * Checking file: /opt/ignite/data/Rel_B.11.23/hw_patches_cfg * Checking file: /opt/ignite/data/Rel_B.11.31/config * Checking file: /opt/ignite/data/Rel_B.11.31/hw_patches_cfg * Checking file: /var/opt/ignite/data/Rel_B.11.23/B.11.23.golden_image_cfg * Checking file: /var/opt/ignite/config.local This indicates a correct INDEX file. 6. Add the Golden Image directory to the NFS exports file. In this example, the directory with the actual .gz image was /var/opt/ignite/GoldenImages /var/opt/ignite/GoldenImages -ro,anon=2 And export the new entry: exportfs -av The Golden Image should now be visible the client, ready to install. To verify, run the Ignite GUI and select: Options -> Server Configuration and pull down the Default Configuration box. The Golden Image should be visible. |
- Blogger Comment
- Facebook Comment
Subscribe to:
Post Comments
(
Atom
)
0 comments:
Post a Comment