How does a make net recovery looks like
From Wiki-UX.info
- Ignite-UX Server: zx6000 running HP-UX 11i v3, Ignite C.7.7.98
- Ignite-UX Client: c3650 running HPUX 11i v1, IUX-Recovery C.7.7.98
Running make_net_recovery in Preview Mode
# /opt/ignite/bin/make_net_recovery -v -p -x inc_entire=vg00 -n 1 -s zx6000 * Creating NFS mount directories for configuration files. * Recovery Archive Name = 2008-12-06,10:09 * Lanic Id = 0x00306E2B5A39 * Ignite-UX Server = zx6000 ======= 12/06/08 10:09:00 CST Started /opt/ignite/bin/make_net_recovery. (Sat Dec 06 10:09:00 CST 2008) @(#)Ignite-UX Revision C.7.7.98 @(#)ignite/net_recovery (opt) Revision: /branches/IUX_RA0809/ignite/src@75250 Last Modified: 2008-08-25 11:39:14 -0600 (Mon, 25 Aug 2008) * Testing for necessary pax patch. * Recovery Archive Description = Recovery Archive * Recovery Archive Location = zx6000:/var/opt/ignite/recovery/archives/c3650 * Number of Archives to Save = 1 * Pax type = tar In? dsk/vg name minor# Associated disks/mountpoints 2 v /dev/vg00 0x00 /dev/dsk/c3t6d0 /dev/vg00/lvol1 /stand 2 /dev/vg00/lvol2 /dev/vg00/lvol3 / 2 /dev/vg00/lvol4 /opt 2 /dev/vg00/lvol5 /tmp 2 /dev/vg00/lvol6 /usr 2 /dev/vg00/lvol7 /home 2 /dev/vg00/lvol8 /var 2 0 v /dev/vg01 0x01 /dev/dsk/c3t5d0 /dev/vg01/lvol1 /depot 0 ** 0 - The Volume Group or Filesystem is Not included in the System Recovery Archive ** 1 - The Volume Group or Filesystem is Partially included in the System Recovery Archive ** 2 - The Volume Group or Filesystem is Fully included in the System Recovery Archive * Checking Versions of Recovery Tools * Scanning system for IO devices... * Boot device is: 10/0/15/1.6.0 * Creating System Configuration. * /opt/ignite/bin/save_config -f /var/opt/ignite/recovery/client_mnt/0x0 0306E2B5A39/recovery/2008-12-06,10:09/system_cfg vg00 * Backing Up Volume Group /dev/vg00 * /usr/sbin/vgcfgbackup /dev/vg00 * Creating Map Files for Volume Group /dev/vg00 * /usr/sbin/vgexport -s -p -m /etc/lvmconf/vg00.mapfile /dev/vg00 * Backing Up Volume Group /dev/vg01 * /usr/sbin/vgcfgbackup /dev/vg01 * Creating Map Files for Volume Group /dev/vg01 * /usr/sbin/vgexport -s -p -m /etc/lvmconf/vg01.mapfile /dev/vg01 * Creating Control Configuration. * Creating Archive File List * Creating Archive Configuration * /opt/ignite/lbin/make_arch_config -c /var/opt/ignite/recovery/client_m nt/0x00306E2B5A39/recovery/2008-12-06,10:09/archive_cfg -g /var/opt/ig nite/recovery/client_mnt/0x00306E2B5A39/recovery/2008-12-06,10:09/flis t -n 2008-12-06,10:09 -r pa -b 64 -d Recovery\ Archive -L /var/opt/ignite/recovery/arch_mnt -l zx6000:/var/opt/ignite/recovery/archives/c3650 -i 1 -m t * Saving the information about archive to /var/opt/ignite/recovery/previews * * **** This is just Preview Only. **** * **** No archive has been created yet. **** * **** You may modify the configure files **** * **** and use -r option for resuming to create archive. **** ======= 12/06/08 10:11:40 CST make_net_recovery completed successfully!
# cat /var/opt/ignite/recovery/previews archive_size=8828930 last_preview=2008-12-06,10:09 iux_server=zx6000 description=Recovery Archive archive_type=tar archive_dir=/var/opt/ignite/recovery/archives/c3650 archive_host=zx6000
Files created on the Ignite-UX Server
# cd /var/opt/ignite/clients # find . . ./0x00306E2B5A39 ./0x00306E2B5A39/client_status ./0x00306E2B5A39/config.sys ./0x00306E2B5A39/client_name ./0x00306E2B5A39/install.log ./0x00306E2B5A39/hw.info ./0x00306E2B5A39/io.info ./0x00306E2B5A39/host.info ./0x00306E2B5A39/recovery ./0x00306E2B5A39/recovery/client_status ./0x00306E2B5A39/recovery/latest ./0x00306E2B5A39/recovery/2008-12-06,10:09 ./0x00306E2B5A39/recovery/2008-12-06,10:09/recovery.log ./0x00306E2B5A39/recovery/2008-12-06,10:09/archive_content ./0x00306E2B5A39/recovery/2008-12-06,10:09/system_cfg ./0x00306E2B5A39/recovery/2008-12-06,10:09/control_cfg ./0x00306E2B5A39/recovery/2008-12-06,10:09/flist ./0x00306E2B5A39/recovery/2008-12-06,10:09/archive_cfg ./0x00306E2B5A39/server.state ./c3650
- Note that the MAC Address of the Ignite-UX client is used as parent directory.
- Under the <MAC Address>/recovery directory a new directory is created using the TIMESTAMP of the make_net_recovery execution.
The following are the contents of the created files.
# cat archive_content inc_entire vg00
# cat control_cfg RECOVERY_MODE=TRUE enum _HP_CLONING _HP_CLONING help_text "Cloning to different HW?" _HP_CLONING = { "TRUE", "FALSE" } (MODEL == "9000/785/C3650") { init _HP_CLONING = "FALSE" } else { init _HP_CLONING = "TRUE" } enum _IMPORT_VG _IMPORT_VG help_text "Import the Volume Group(s)?" _IMPORT_VG = { "TRUE", "FALSE" } init _IMPORT_VG = "TRUE" (_IMPORT_VG == "TRUE") { post_config_cmd = " /usr/sbin/vgimport -v -m /etc/lvmconf/vg01.mapfile /dev/vg01 \ /dev/dsk/c3t5d0 /usr/sbin/vgchange -a r vg01 test -d /dev/vg00 && /usr/sbin/vgcfgbackup /dev/vg00 test -d /dev/vg01 && /usr/sbin/vgcfgbackup /dev/vg01 "} else { post_config_cmd = "" } _hp_allow_use_of_imports help_text "Allow use of other disks" enum _hp_allow_use_of_imports init _hp_allow_use_of_imports = "NO" _hp_hide_other_disks visible_if false _hp_allow_use_of_imports = { "YES", "NO" } (_hp_allow_use_of_imports == "NO") { _hp_hide_other_disks = "10/0/15/1.5.0" } else { _hp_hide_other_disks = "" }
# cat archive_cfg (is_hppa) { ######################################################### ## Software Sources ######################################################### sw_source "core archive"{ description = "Recovery Archive" load_order = 0 source_format = archive 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" # if nfs_source is used, be sure to export the source. (source_type == "NET") { nfs_source = "192.168.2.10:/var/opt/ignite/recovery/archives/c3650" } # ftp_source and remsh_source are alternate ways to copy # the archive. An example of the ftp syntax: # ftp_source = "anonymous@15.1.54.123:iux" # remsh_source = "user@15.1.54.123" } ######################################################### ## Software Categories ######################################################### sw_category "Languages" { description = "Languages" } sw_category "HPUXEnvironments"{ description = "HP-UX Operating Environments" } ###################################################### ## Operating Environments ## ###################################################### ######################################################### ## PA 64-bit OS archives ######################################################### init sw_sel "golden image1" { description = "Recovery Archive" sw_source = "core archive" sw_category = "HPUXEnvironments" archive_type = gzip tar # For NFS, the path to the archive is relative to the mount point # specified in the sw_source: (source_type == "NET") { archive_path = "2008-12-06,10:09" } else { archive_path = "1" } impacts = "/" 304504Kb impacts = "/stand" 55400Kb impacts = "/usr" 1584360Kb impacts = "/opt" 3889864Kb impacts = "/var" 3066832Kb impacts = "/sbin" 40832Kb impacts = "/dev" 25Kb impacts = "/etc" 103280Kb impacts = "/.dt" 232Kb impacts = "/.sw" 384Kb impacts = "/.ssh" 24Kb impacts = "/.mozilla" 15728Kb impacts = "/windows" 8Kb impacts = "/.swa" 896Kb impacts = "/.adobe" 64Kb impacts = "/tmp" 288Kb visible_if = can_run_64bit } = TRUE (sw_sel "golden image1") { _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"