{"id":357,"date":"2015-01-28T19:05:04","date_gmt":"2015-01-29T00:05:04","guid":{"rendered":"http:\/\/www.hpux.ws\/?p=357"},"modified":"2015-01-28T19:05:04","modified_gmt":"2015-01-29T00:05:04","slug":"ignite-golden-image-server-setup","status":"publish","type":"post","link":"https:\/\/www.hpux.ws\/?p=357","title":{"rendered":"Ignite Golden Image server setup"},"content":{"rendered":"<p>These are my notes as I take a golden image and build a golden image server.<\/p>\n<p>It is based on a document written in 2007 by Geoff Wild, fellow ITRC poster and friend. I simply need my own copy with notes. I will be doing a Golden Image for B.11.31 and B.11.23, but recording the process once, as I build it.<\/p>\n<p>On the ignite server:<br \/>\nmkdir \u2013p \/var\/opt\/ignite\/recovery\/golden_images<br \/>\n## bdfmegs is by Bill Hassell and provides nice 1 line bdf output. It is much better for scripting than bdf. Just making sure we have space.<br \/>\n\/var\/adm\/bin\/bdfmegs \/var\/opt\/ignite\/recovery\/golden_images<br \/>\nFile-System          Mbytes    Used   Avail %Used Mounted on<br \/>\n\/dev\/vg01\/lv_ignite   467.6g  337.6g  122.0g  73% \/var\/opt\/ignite<\/p>\n<p>digush0:root > bdf \/var\/opt\/ignite\/recovery\/golden_images<br \/>\nFilesystem          kbytes    used   avail %used Mounted on<br \/>\n\/dev\/vg01\/lv_ignite<br \/>\n                   467599360 337557391 122002189   73% \/var\/opt\/ignite<\/p>\n<p>Add \/var\/opt\/ignite\/recovery\/golden_images to \/etc\/dfs\/dfstab<br \/>\n##share -F nfs -o anon=2 -d &#8220;Ignite Golden Images&#8221; \/var\/opt\/ignite\/recovery\/golden_images<\/p>\n<p>exportfs -av<\/p>\n<p>The next steps are on the server you are imaging. It should have an up to date Operating Environment and be current on patches. The more effort you take in cleaning it up, the better your image will be.<\/p>\n<p>## Run a script to make sure I&#8217;m up to date on OE and patching.<br \/>\nroot@dmdpvh0# .\/450_bundleoe<br \/>\nExecuting HP-UX specific environment parameters&#8230;<br \/>\nInstalled OE is B.11.31.1303 : OEVER B.11.31.1303<br \/>\ndmdpvh0 pass Operating Environment is B.11.31.1303<br \/>\ndmdpvh0 pass QPK APPS is B.11.31.1403.400a<br \/>\ndmdpvh0 pass QPK BASE is B.11.31.1403.400a<br \/>\n#### end report .\/450_bundleoe dmdpvh0 ####<br \/>\n## make a mount point<br \/>\nroot@dmdpvh0# mkdir -p \/mnt\/ig_gimage<br \/>\n## mount it<br \/>\nmount digush0:\/var\/opt\/ignite\/recovery\/golden_images \/mnt\/ig_gimage\/<br \/>\n## copy ignite binary\/script<br \/>\n# cp \/opt\/ignite\/data\/scripts\/make_sys_image \/tmp<br \/>\n# chmod 700 \/tmp\/make_sys_image<br \/>\n## make an exclude list<br \/>\n# vi \/tmp\/user_exclude_files<br \/>\n      +NO_ARCHIVE<br \/>\n      \/app<br \/>\n      \/staging<br \/>\n      \/usr\/local\/include\/c++<br \/>\n      \/usr\/local\/lib\/gcc<br \/>\n      \/opt\/langtools<br \/>\n      \/opt\/aCC<br \/>\n      \/data<br \/>\n      \/mnt<\/p>\n<p># \/tmp\/make_sys_image \u2013v \u2013s local \u2013d \/mnt\/ig_gimage -f \/tmp\/user_exclude_files<br \/>\n# save_config -f server_disk.cfg vg00<\/p>\n<p>Back on the ignite server<br \/>\n# cp \/opt\/ignite\/data\/examples\/core11.cfg \/var\/opt\/ignite\/recovery<br \/>\n#cd \/var\/opt\/ignite\/recovery\/golden_images\/<br \/>\n# \/opt\/ignite\/lbin\/archive_impact -t -g server.gz > impacts<\/p>\n<p># vi server.cfg<br \/>\n      [sw_source] stanza      nfs_source=\u201d192.168.14.146:\/var\/opt\/ignite\/recovery\/golden_images\u201d<br \/>\n      [sw_sel] stanza   there are two of them, one for 32-bit the other for 64-bit OS<br \/>\n      description=\u201dHP-UX 11.11 Golden Image 64-bit (SERVER)\u201d<\/p>\n<p>archive_path=\u201dserver.gz\u201d<\/p>\n<p>replace \u201cimpacts\u201d lines with archive_impact output from above<\/p>\n<p># vi server_disk.cfg<\/p>\n<p>Remove second disk from vg00, ignite is not going to create a boot area on it anyway<\/p>\n<p>init _hp_root_grp_disks=1<\/p>\n<p>Delete the following entry.<\/p>\n<p>physical_volume disk [X\/X\/X] {<br \/>\n\u2026.<br \/>\n}<\/p>\n<p>Delete all the occurrences on disk[X\/X\/X] in logical_volume sections.<\/p>\n<p>_hp_disk_layout=\u201dHP-UX SERVER save_config layout\u201d<\/p>\n<p>Delete all hw_instance_num lines<\/p>\n<p>In the \u201cnetwork\u201d section delete all final lines expect for dns_<\/p>\n<p>Add the new configuration file into Ignite-UX<\/p>\n<p># vi \/var\/opt\/ignite\/INDEX<\/p>\n<p>cfg \u201cHP-UX 11i Golden Image B.11.31\u201d {<\/p>\n<p>      description \u201cHP-UX 11i Golden Image B.11.31\u201d<\/p>\n<p>      \u201c\/opt\/ignite\/data\/Rel_B.11.11\/config\u201d<\/p>\n<p>      \u201c\/var\/opt\/ignite\/recovery\/golden_images\/server.cfg\u201d<\/p>\n<p>      \u201c\/var\/opt\/ignite\/recovery\/golden_images\/server_disk.cfg\u201d<\/p>\n<p>      \u201c\/var\/opt\/ignite\/config.local\u201d<\/p>\n<p>}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>These are my notes as I take a golden image and build a golden image server. It is based on a document written in 2007 by Geoff Wild, fellow ITRC poster and friend. I simply need my own copy with notes. I will be doing a Golden Image for B.11.31 and B.11.23, but recording the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_kadence_starter_templates_imported_post":false,"footnotes":""},"categories":[52,8],"tags":[119],"class_list":["post-357","post","type-post","status-publish","format-standard","hentry","category-ignite-ux-2","category-sysadmin","tag-ignite-golden-image-server-setup"],"_links":{"self":[{"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/357"}],"collection":[{"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=357"}],"version-history":[{"count":7,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/357\/revisions"}],"predecessor-version":[{"id":364,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/357\/revisions\/364"}],"wp:attachment":[{"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}