request system snapshot
Syntax
request system snapshot<partition>Syntax
(routing matrix)request system snapshot<all-lcc | lccnumber |scc><partition>Syntax
(J-series platform)request system snapshot<as-primary><config-sizesize><data-sizesize><factory><mediatype><partition><root-sizesize><swap-sizesize>Description
Back up the currently running and active file system partitions on the router to standby partitions that are not running. Specifically, the root file system (
/) is backed up to/altrootand/configis backed up to/altconfig. The root and/configfile systems are on the router's flash drive, and the/altrootand/altconfigfile systems are on the router's hard drive.Options
none—Back up the currently running and active file system partitions on the router to standby partitions that are not running.
all-lcc—(Routing matrix only) (Optional) Archive data and executable areas for all T640 routing nodes connected to a TX Matrix platform.
lccnumber—(Routing matrix only) (Optional) Archive data and executable areas for a specific T640 routing node that is connected to a TX Matrix platform.numbercan be from0through3.
scc—(Routing matrix only) (Optional) Archive data and executable areas for a TX Matrix platform.
as-primary—(J-series platform only) (Optional) Create a snapshot that can be used to replace the medium in the primary compact flash drive. This option can be used on the removable compact flash only. The option copies the default files that were loaded on the primary compact flash drive when it was shipped from the factory, plus the rescue configuration if one has been set. This option is useful if you have multiple routers and want to use the same software and configuration on each router. Once a boot device is created as a primary compact flash drive, it can operate in only a primary compact flash drive slot. This option causes the boot medium to be partitioned.
config-sizesize—(J-series platform only) (Optional) Specify size of theconfigpartition, in megabytes. The default value is 10 percent of physical memory on the boot partition. Theconfigpartition is mounted on/configand the configuration files are stored in this partition. This option causes the boot medium to be partitioned.
data-sizesize—(J-series platform only) (Optional) Specify size of thedatapartition, in megabytes. The default value is 0 MB. Thedatapartition is mounted on/data.This space is not used by the router, and can be used for extra storage. This option causes the boot medium to be partitioned.
factory—(J-series platform only) (Optional) Copy only default files that were loaded on the primary compact flash drive when it was shipped from the factory, plus the rescue configuration if one has been set. Once the boot medium is created with the factory option, it can operate in only the primary compact flash drive.
mediatype—(J-series platform only) (Optional) Specify the boot device the software is copied to:
compact-flash—Copy software to the primary compact flash drive.removable-compact-flash—(J-series platform only) Copy software to the removable compact flash drive.usb—(J-series platform only) Copy software to the device connected to the USB port.
partition—(Optional) Repartition the flash drive before a snapshot occurs. If the partition table on the flash drive is corrupted, therequest system snapshotcommand fails and reports errors. Thepartitionoption is only supported for restoring the software image from the hard drive to the flash drive. You cannot issue therequest system snapshotcommand when you enable flash disk mirroring. We recommend that you disable flash disk mirroring when you upgrade or downgrade the software. For more information, see the JUNOS System Basics Configuration Guide.
root-sizesize—(J-series platform only) (Optional) Specify size of therootpartition, in megabytes. The default value is one-third of the physical memory minus the config, data, and swap partitions. The root partition is mounted on/and does not include configuration files. This option causes the boot medium to be partitioned.
swap-sizesize—(J-series platform only) (Optional) Specify size of theswappartition, in megabytes. The default value is one-third of the physical memory on a boot medium larger than 128 MB, or 0 MB on a smaller boot device. Theswappartition is used for swap files and software failure memory snapshots. Software failure memory snapshots are saved to the boot medium only if it is specified as the dump-device in thesystem dump-deviceconfiguration hierarchy. This option causes the boot medium to be partitioned.Additional Information
Prior to upgrading the software on the router, when you have a known stable system, issue the
request system snapshotcommand to back up the software, including the configuration, to the/altrootand/altconfigfile systems. After you have upgraded the software on the router and are satisfied that the new packages are successfully installed and running, issue therequest system snapshotcommand to back up the new software to the/altrootand/altconfigfile systems.After you run the
request system snapshotcommand, you cannot return to the previous version of the software, because the running and backup copies of the software are identical.On a routing matrix, if you issue the
request system snapshotcommand on the master Routing Engine, all the master Routing Engines connected to the routing matrix are backed up. If you issue this command on the backup Routing Engine, all the backup Routing Engines connected to the routing matrix are backed up.You cannot issue the
request system snapshotcommand when you enable flash disk mirroring. We recommend that you disable flash disk mirroring when you upgrade or downgrade the software. For more information, see the JUNOS System Basics Configuration Guide.Required Privilege Level
List of Sample Output
request system snapshotrequest system snapshot when partition flag is onrequest system snapshot when mirroring is enabledrequest system snapshot all-lcc (routing matrix)Output Fields
unmount—Unmounts a file system.request system snapshot
user@host>request system snapshotumount: /altroot: not currently mountedCopying / to /altroot.. (this may take a few minutes)umount: /altconfig: not currently mountedCopying /config to /altconfig.. (this may take a few minutes)The following filesystems were archived: / /configrequest system snapshot when partition flag is on
user@host>request system snapshot partitionPerforming preliminary partition checks ...Partitioning ad0 ...umount: /altroot: not currently mountedCopying / to /altroot.. (this may take a few minutes)The following filesystems were archived: / /configrequest system snapshot when mirroring is enabled
user@host>request system snapshotSnapshot is not possible since mirror-flash-on-disk is configured.request system snapshot all-lcc (routing matrix)
user@host>request system snapshot all-lcclcc0-re0:--------------------------------------------------------------------------Copying '/' to '/altroot' .. (this may take a few minutes)Copying '/config' to '/altconfig' .. (this may take a few minutes)The following filesystems were archived: / /configlcc2-re0:--------------------------------------------------------------------------Copying '/' to '/altroot' .. (this may take a few minutes)Copying '/config' to '/altconfig' .. (this may take a few minutes)The following filesystems were archived: / /config