make_sys_image.1m (2012 03)

m
make_sys_image(1M) make_sys_image(1M)
cd /var/tmp
dd ibs=10k if=/dev/rmt/0m of=archive.gz
Note: Replace 10k with 5k for cpio
archives. Replace .gz with .Z for compressd archives.
Create a local archive resetting
/etc/motd and /etc/issue
to newconfig state along with the
level
2 default resets and ignore only the directory /data_area and files or directories beginning with "n"
or "a" in
/opt/apps.
Copy
/opt/ignite/data/scripts/make_sys_image
from an Ignite-UX server to
/tmp on the
archive system:
/tmp/make_sys_image -s
local -d /var/tmp
-f /tmp/specific_files
Contents of /tmp/specific_files:
# Files to be reset to newconfig state
# in addition to the defaults. Note use of upper case.
+ RESET
/etc/motd
/etc/issue
# Files to be excluded from the archive,
# override the defaults. Note use of upper case.
+ ONLY NO_ARCHIVE
/data_area
/opt/apps/[na]*
Generate a list of files that will be reset or ignored including those specified in /tmp/specific_files:
/tmp/make_sys_image -s
local -x -f /tmp/specific_files
Create a
compress compressed cpio archive to a remote system other than the Ignite-UX server, and
remove the host identity and general network information:
post_config_script+="make_sys_image -s 15.15.15.99 -l 2 -c z -m c"
Create an Ignite-UX configuration file that specifies a cpio archive and compress
it to the Ignite-UX
server, default destination directory, and default file name:
# instl_adm defaults:
server="15.1.50.74"
netmask[]="0xfffff800"
route_gateway[0]="15.1.48.1"
route_destination[0]="default"
# end instl_adm defaults.
env_vars+="INST_ALLOW_WARNINGS=1
METHOD=c
COMPRESS=z"
kbdlang="PS2_DIN_US_English"
WARNINGS
Because of the impact
make_sys_image can have on a system when running at level 2, it is recom-
mended that no applications be running and no normal users be logged onto the system while it is being
archived. If you do not stop all applications while make_sys_image is running at level 2, the system
may experience application outages because of the configuration changes made temporarily to the system.
You should consider rebooting the system after running make_sys_image at level 2 in case the
configuration changes have impacted any software you did not halt during the archival process.
If
/etc/hosts is being used for hostname resolution, then the -s argument cannot be a hostname. It
must be an IP address in this case.
On B.11.31,
make_sys_image will not proceed with the archive creation if the legacy device support
has been disabled on the system. To create the archive, enable the legacy device support using the com-
mand insf -L.
4 Hewlett-Packard Company 4 HP-UX 11i Version 3: March 2012