...
Document Version Release Date Details 2 July 19, 2023 Updated entry for golden image4. 1 May 11, 2023 Original Document Release. When attempting to create an Archive-Based recovery DVD with make_sys_image, the mkisofs fails with the following error: /opt/ignite/lbin/mkisofs: Value too large to be stored in data type. File /depot/lionvm1/image.iso is too large - ignoring
Any HPE Integrity system running HP-UX 11.31 and Ignite-UX 7.x.
The make_sys_image (mkisofs) command fails to create an ISO image over 4.7Gb. # ISO/CDFS: An ISO 9660 image and CDFS are virtually synonymous, and both # are used for both CD and DVD media, although there are significant media # size differences between them (700 Mb versus 4.7 Gb or larger). ISO # images are mostly used solely for CD and DVD media, not for hard disks, # because the latter usually have disk partitions and other practical # differences. To bypass the 4.7Gb DVD ISO limitation, the recovery archive will need to be split between multiple DVDs. The steps below provide an example of how to split the recovery archive into multiple ISO images: Install the same version of Ignite/UX recovery tools on the client. Create a base OS golden image that will fit on the first DVD. Save the archive to Ignite/UX server or to a local directory.More detailed examples: HP-UX Ignite-UX - How to Use make_opticaldisc_recovery to Create Recovery on DVD AND Ignite-UX (IUX) Frequently Asked Questions(FAQ) DocumentHP-UX 11i v3 -> Page 35 a) Determine what large (non-essential) directories can be omitted from the core operating system archive and include it in subsequent archives: # du -akx /usr | sort -nr | head -n 20 b) Create the first core operating system archive. Use the make_sys_image command with the -f option to specify the archive exclude file. For example, to exclude /opt, /var and /usr/lib from the archive, create a file /tmp/ignite_exclude_files that contains: -------- /tmp/ignite_exclude_files -------- + NO_ARCHIVE /usr/lib /opt /var Note : /usr/contrib/bin directory is required for recovery because /usr/contrib/bin/gunzip is used after DVD1 is recovered. Note : If there are any other large directories in /usr then those should also be excluded. c) Create core OS image (DVD1) with make_sys_image: Example of backing up to Ignite/UX server over NFS mount (/var/opt/ignite/archives/testvm1/). On the client side run the following: # scp user@ignite.xx.tsxxx.hxxxxxx.xxx:/opt/ignite/data/scripts/make_sys_image/tmp/ # /tmp/make_sys_image -v -u -a 4000000 -f /tmp/ignite_exclude_files -d /var/opt/ignite/archives/testvm1 -s ignite.xx.tsxxx.hxxxxxx.xxx Or save recovery to a local backup: # /opt/ignite/data/scripts/make_sys_image -f /tmp/ignite_exclude_files -s local -d /large_archive_directory/ d) Create the second archive containing the rest of the file systems on client side. Note : The archive content must not contain absolute paths. This is especially the case for core operating system archives. Using pax to create the tar archive: # cd /; pax -wx ustar -f - usr | gzip > /var/opt/ignite/archives/testvm1/testvm1_usr.gz # cd /; pax -wx ustar -f - opt | gzip > /var/opt/ignite/archives/testvm1/testvm1_opt.gz # cd /; pax -wx ustar -f - var | gzip > /var/opt/ignite/archives/testvm1/testvm1_var.gz Copy over the archives to Ignite/UX server and create directory structures for DVD1, DVD2, DVD3 and DVD4. a) Create directories for config and archives: mkdir -p /depot/testvm1/DVD1/ mkdir -p /depot/testvm1/DVD1/cfgs mkdir -p /depot/testvm1/DVD1/psudo_root/archives cp -r /depot/testvm1/DVD1 /depot/testvm1/DVD2 cp -r /depot/testvm1/DVD1 /depot/testvm1/DVD3 cp -r /depot/testvm1/DVD1 /depot/testvm1/DVD4 b) Copy client tar/gz files to Ignite/UX archive directories. If first archives were created localy on the client then copy to the Ignite/Ux server. scp /path/testvm1.gz user@ignite.xx.tsxxx.hxxxxxx.xxx:/depot/testvm1/DVD1/psudo_root/archives/ scp /path/dvd2_usr.gz user@ignite.xx.tsxxx.hxxxxxx.xxx:/depot/testvm1/DVD2/psudo_root/archives/ scp /path/dvd3_opt.gz user@ignite.xx.tsxxx.hxxxxxx.xxx:/depot/testvm1/DVD3/psudo_root/archives/ scp /path/dvd4_var.gz user@ignite.xx.tsxxx.hxxxxxx.xxx:/depot/testvm1/DVD4/psudo_root/archives/ Note: During system recover, in UI recovery select "Environments: [ Golden Image 4 ->]" to run post config after last recovery. Determine the size of file systems in archives for config files. # /opt/ignite/lbin/archive_impact -t -g /depot/testvm1/DVD1/psudo_root/archives/testvm1.gz impacts = "/" 23Kb impacts = "/.ssh" 2Kb impacts = "/dev" 14Kb impacts = "/etc" 41003Kb impacts = "/home" 1209Kb impacts = "/sbin" 176652Kb impacts = "/stand" 185836Kb # /opt/ignite/lbin/archive_impact -t -g /depot/testvm1/DVD2/psudo_root/archives/testvm1_usr.gz impacts = "/usr" 3292874Kb # /opt/ignite/lbin/archive_impact -t -g /depot/testvm1/DVD3/psudo_root/archives/testvm1_opt.gz impacts = "/opt" 7210961Kb # /opt/ignite/lbin/archive_impact -t -g /depot/testvm1/DVD4/psudo_root/archives/testvm1_var.gz impacts = "/var" 3008285Kb Create config files on client side and copy them over to Ignite/UX server in "/depot/testvm1/DVD1/cfgs/" directory. a) Create /depot/testvm1/DVD1/cfgs/archive_cfg with correct file system sizes and descriptions. ==================== archive_cfg ======================== (is_ia64) { ######################################################### ## Software Sources ######################################################### sw_source "core archive 1"{ description = "Golden Image part 1" load_order = 0 source_format = archive source_type = "DSK" change_media = FALSE post_load_script = "/opt/ignite/data/scripts/os_arch_post_l" post_config_script = "/opt/ignite/data/scripts/os_arch_post_c" } sw_source "core archive 2" { description = "Golden Image part 2" load_order = 1 source_format = archive source_type = "DSK" change_media = TRUE } sw_source "core archive 3" { description = "Golden Image part 3" load_order = 2 source_format = archive source_type = "DSK" change_media = TRUE } sw_source "core archive 4" { description = "Golden Image part 4" load_order = 3 source_format = archive source_type = "DSK" change_media = TRUE } ######################################################### ## Software Categories ######################################################### sw_category "Languages" { description = "Languages" } sw_category "HPUXEnvironments"{ description = "HP-UX Operating Environments" } ######################################################### ## IPF 64-bit OS archives ######################################################### init sw_sel "golden image1" { description = "Golden Image 1" sw_source = "core archive 1" sw_category = "HPUXEnvironments" archive_type = gzip tar archive_path = "archives/testvm1.gz" impacts = "/" 72Kb impacts = "/stand" 242224Kb impacts = "/sbin" 178176Kb impacts = "/dev" 10Kb impacts = "/etc" 44560Kb impacts = "/.ssh" 8Kb impacts = "/.sw" 72Kb impacts = "/home" 1400Kb impacts = "/tmp" 216Kb } = TRUE init sw_sel "golden image2" { description = "Golden Image 2" sw_source = "core archive 2" sw_category = "HPUXEnvironments" archive_type = gzip tar archive_path = "archives/testvm1_usr.gz" impacts = "/usr" 3292874Kb } = TRUE init sw_sel "golden image3" { description = "Golden Image 3" sw_source = "core archive 3" sw_category = "HPUXEnvironments" archive_type = gzip tar archive_path = "archives/testvm1_opt.gz" impacts = "/opt" 7210961Kb } = TRUE init sw_sel "golden image4" { description = "Golden Image 4" sw_source = "core archive 4" sw_category = "HPUXEnvironments" archive_type = gzip tar archive_path = "archives/testvm1_var.gz" impacts = "/var" 3008285Kb } = TRUE (sw_sel "golden image1") { _hp_os_bitness = "64" } (sw_sel "golden image2") { _hp_os_bitness = "64" } (sw_sel "golden image3") { _hp_os_bitness = "64" } (sw_sel "golden image4") { _hp_os_bitness = "64" } _hp_os_bitness visible_if false ###################################################### ## Languages ## Specified so that the selector in the UI will ## not be empty. Cannot use the "core archive" sw_source ## because there is not archives associated with it. ## ## The "no select" sw_source is a no-op source since ## has is of "cmd" format, and does not have any scripts ## specified. Every sw_sel needs a sw_source. ## ##################################################### sw_source "no select" { source_format = cmd } init sw_sel "English" { description = "English Language Environment" sw_source = "no select" sw_category = "Languages" locale = { "SET_NULL_LOCALE:English", "C:English" } } = TRUE ###################################################### ## Keyboards ##################################################### _hp_keyboard = { "Not_Applicable", "PS2_DIN_US_English" } init _hp_keyboard = "PS2_DIN_US_English" } ================================================================ b) On client side, create a "system_cfg" file with all the file system layouts for Ignite/UX UI to auto load the sizes during installation. Create config file: # /opt/ignite/bin/save_config -f /tmp/system_cfg vg00 Then copy "/tmp/system_cfg" to Ignite-UX server in to "/depot/testvm1/DVD1/cfgs/" directory. scp /tmp/system_cfg user@ignite.xx.tsxxx.hxxxxxx.xxx:/depot/testvm1/DVD1/cfgs/system_cfg Note : Ignite-UX recovery tools required on client side. Note 1 : The system_cfg can be modified to change file system sizes, IP address, host name, etc. 5. Verify config files for syntacs: # /opt/ignite/bin/instl_adm -T -f /depot/testvm1/DVD1/cfgs/system_cfg # /opt/ignite/bin/instl_adm -T -f /depot/testvm1/DVD1/cfgs/archive_cfg 6. Create DVD1 (boot ISO image) by skipping steps 1-2, clean up archive config file if exists and start on step 3: a) Remove any existing config files # rm /depot/testvm1/DVD1/cfgs/testvm1.gz.cfg b) Create empty place holder testvm1.gz.cfg file for make_media_install script # touch /depot/testvm1/DVD1/cfgs/testvm1.gz.cfg c) Remove any old EFI configuration # rm -rf /depot/testvm1/DVD1/psudo_root/EFI_CD_image d) Remove any old boot files # rm depot/testvm1/DVD1/psudo_root/bootvol.lif e) Create the ISO image starting with step 3. # /opt/ignite/data/scripts/examples/make_media_install -c -C -r B.11.31 -o IA -f /depot/testvm1/DVD1/cfgs/archive_cfg \ -f /depot/testvm1/DVD1/cfgs/system_cfg -p /depot/testvm1/DVD1/psudo_root -a testvm1.gz -m /depot/testvm1/DVD1 -s 3 7. Create DVD2 to DVD4 ISOs: # /opt/ignite/lbin/mkisofs -D -r -U -v -max-iso9660-filename -o /depot/testvm1/DVD2/dvd2_usr.iso /depot/testvm1/DVD2/psudo_root # /opt/ignite/lbin/mkisofs -D -r -U -v -max-iso9660-filename -o /depot/testvm1/DVD3/dvd3_opt.iso /depot/testvm1/DVD3/psudo_root # /opt/ignite/lbin/mkisofs -D -r -U -v -max-iso9660-filename -o /depot/testvm1/DVD4/dvd4_var.iso /depot/testvm1/DVD4/psudo_root 8. ) Burn ISOs to DVDs. Or copy the ISO images to VSP to test VM installation from ISOs: - /depot/testvm1/DVD1/image.iso - /depot/testvm1/DVD2/dvd2_usr.iso - /depot/testvm1/DVD3/dvd3_opt.iso - /depot/testvm1/DVD4/dvd4_var.iso Note: During system recover, in UI recovery select "Environments: [ Golden Image 4 ->]" to run post config after last recovery. RECEIVE PROACTIVE UPDATES : Receive support alerts (such as Customer Advisories), as well as updates on drivers, software, firmware, and customer replaceable components, proactively in your e-mail through HPE Support Alerts. Sign up for Support Alerts at the following URL: HPE Email Preference Center NAVIGATION TIP: For hints on navigating HPE.com to locate the latest drivers, patches and other support software downloads, refer to the Navigation Tips document. SEARCH TIP: For hints on locating similar documents on HPE.com, refer to the Search Tips document.