Make Sys Image
Make Sys Image
Make Sys Image
make_sys_image(1M)
NAME
make_sys_image - create compressed le archive of a running system
SYNOPSIS
-s
IP|hostname|local
IP address or resolvable hostname of the server to send the archive to or local if the
destination is a local le system, NFS mount, disk or tape. If the destination is not
local, permission to remotely access the server is required. If a hostname is used in
this case, it must be resolvable through whatever means the name service switch is
set to use (see switch (4) for more information).
-d directory |device
Destination directory (for example, /var/tmp/foo) or device le name (for example,
/dev/rmt/0m). The default is /var/tmp/.
Note: Archives written to tape or raw disk cannot be used directly; they must rst
be extracted using dd onto a le system where they may be accessed by an IgniteUX server. To use a directory that is an NFS mount point on the local system, use
-s local to specify the server destination.
-f file
-l 1 | 2
Hewlett-Packard Company
make_sys_image(1M)
make_sys_image(1M)
/.profile
/etc/rc.config.d/hpetherconf
/etc/rc.config.d/hpfcgsc_lanconf
/etc/rc.config.d/hpfcmsconf
/etc/rc.config.d/netconf
/etc/rc.config.d/netdaemons
/etc/rc.config.d/namesvrs
/etc/rc.config.d/mailservs
/etc/rc.config.d/xfs
/etc/hosts
/etc/mail/sendmail.cw
/etc/ntp.conf
/etc/vue/config
/var/adm/sw/security
The default level is 2. If any of the above is a directory, then all les below that
directory will be reset. However permissions will be preserved as to what the original le had in those cases where the original le permissions differ from the
newcong version.
-n filename
The lename of the archive le other than the default host name. If the -d option
is a device le, the -n option is ignored.
-m c | t | p
-c z | g | n
-a archive_size
The calculated size required for the archive may be passed to this command. The
archive size must be a decimal number. The archive size is usually created by running the /opt/ignite/lbin/list_expander -s command. This will save
one call to list_expander during make_sys_images execution.
-R
Run make_sys_image in recovery mode. This will set the level of clean up to 1, overriding the -l option value. This option is required if using the -g option.
-g file_list
The indicated le contains a list of les to be archived. This list should be generated by a call to the list_expander command. The le may either contain
the name of the le or directory only, or it may contain an entire line of information
in the form of: [<fl_name_len>] <file_name> [<mode> <last-mod>
<bytes> <blocks> [<cksum>]]. The -R option must precede the -g option.
-t y|n|o|p
y Yes, run the tests along with make_sys_image (this is the default).
n No, do not run the tests. This may be used on clients that the user knows contain the patch.
o Run the tests only; that is, do not make a system image. It always exits and
returns a 4 if a patch exists that xes a pax defect; a 3 if it is an enablement
patch (for example PAX-Enh on B.11.23); a 1 if the requested format is not
allowed on this system and a 0 if there are no pax patch(es) that the system
requires or could use.
p Run the tests only; prompt for cancel if a pax patch is required or could be
applied to the system. It always exits after the prompt, and returns the same
values as the o option exception if the patch(es) listed are non-enablement
patches it will return a 3 if the user answered [yY] to cancel.
-p
Preview mode; performs all of the checks and creates the command line, but does
not modify any les other than the make_sys_image.log.
Hewlett-Packard Company
make_sys_image(1M)
make_sys_image(1M)
-u
Check the archive destination for sufcient storage capacity. The capacity of raw
devices is not easily checked, so this option has no effect in the case where a raw
device is the archive destination. The archive size is an approximation and is generally 5% larger than the nal archive. The default is to not check capacity.
-v
Verbose mode; writes all of the les that are being modied or removed and the
command line that will create the system archive to stdout.
-w log_file
-x
Print the list of les that will be set to the newconfig state and the les that will
2
to
both
be
explicitly
excluded
using
level
stdout
and
/tmp/excluded_files. This doesnt include les excluded because they are
sockets, named pipes, the local archive destination or on remote le systems. If the
-f option is used, the output will reect the effects of that le. With this option
selected, no archiving action is taken.
-L
Create a copy of any non-standard LIF les (as dened for both whole and LVM
disks) found on the boot disk. The boot disk that is used is taken from the rst
non-commented line in the /stand/bootconf le. The LIF volume for storing
these LIF les is /usr/lib/ignite_bootlif, and is created only if nonstandard LIF les are present. This option creates only the backup le. Without
this option, the backup, if needed, is created and the recovery media is created with
this information stored for later recovery. For more information on the disks, LIF
les, and LIF volume creation, see bootconf (4), lif (4), mkboot (1M), and linit (1).
The main purpose of this option is to allow LIF diagnostics and any changes to the
AUTO LIF le to be saved by the Ignite-UX recovery commands (see
make_net_recovery(1M)).
-?
NOTE: If all of the defaults are used, a gzip compressed tar archive of the system with all of the host
and network information removed will be placed on the Ignite-UX server in /var/tmp/myhost.gz.
Environment Variables
Environment variables are to be on separate lines following the env_vars+= keyword in the Ignite-UX
conguration le, *INSTALLFS.
SERVER=IP|local
DEST_DIR=directory|device
ARCHIVE_NAME=archive_filename
Equivalent to the -n option.
METHOD=c|t
COMPRESS=z|g
CLEAN_LEVEL=1|2
post_config_script+="make_sys_image"
Create a gzip compressed tar archive with all of the identity information intact and dd to local tape:
Hewlett-Packard Company
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 les 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:
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:
Hewlett-Packard Company
make_sys_image(1M)
make_sys_image(1M)
SEE ALSO
compress(1), cpio(1), dd(1), gzip(1), pax(1), rcp(1), tar(1), archive_impact(1M), instl_adm(1M),
make_cong(1M), make_medialif(1M), manage_index(1M), save_cong(1M), instl_adm(4), .rhosts(4),
ignite(5), nfs(7).
Hewlett-Packard Company
(Notes)
(Notes)
Hewlett-Packard Company