request system snapshot
Syntax
request system snapshot <partition>Syntax
(routing matrix)request system snapshot <all-lcc | lccnumber |scc><partition>Syntax
(J-series)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..
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.On the J-series platform, you can use this command with the
mediaoption to configure a boot device. You can choose from the following media types:
- The primary compact flash drive.
- (On J43000 and J6300 Services Routers only) The removable compact flash drive.
- A device connected to the USB port.
Options
all-lcc—(Routing matrix only) (Optional) Archive data and executable areas for all T640 routing nodes connected to a TX Matrix platform.
as-primary—(J-series Services Routers 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 Services Routers only) (Optional) Specify size of theconfigpartition, in megabytes. The default value is 10 percent of physical memory on the boot partition.The
configpartition 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 Services Routers 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 Services Routers 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.
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.
mediatype—(J-series Services Routers only) (Optional) Specify the boot device the software is copied to.typecan be:
compact-flash—Copy software to the primary compact flash drive.removable-compact-flash—(On J43000 and J6300 Services Routers only) Copy software to the removable compact flash drive.usb—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.The
partitionoption 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 Services Routers only) (Optional) Specify size of therootpartition, in megabytes. The default value is one-third of the physical memory minus theconfig, data,andswappartitions.The
rootpartition is mounted on / and does not include configuration files.This option causes the boot medium to be partitioned.
scc—(Routing matrix only) (Optional) Archive data and executable areas for a TX Matrix platform.
swap-sizesize—(J-series Services Routers 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.The
swappartition 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 thedump-devicein thesystem dump-deviceconfiguration hierarchy.This option causes the boot medium to be partitioned.
Required Privilege Level
Output Fields
unmount—Unmounts a file system.Sample Output: 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: / /configSample Output: request 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: / /configSample Output: request system snapshot when mirroring is enabled
user@host>request system snapshotSnapshot is not possible since mirror-flash-on-disk is configured.Sample Output: 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