Use the request system snapshot CLI command to create a boot device on an alternate medium, to replace the primary boot device or serve as a backup. Enter the command with the following syntax:
user@host> request system snapshot <as-primary> <config-size size> <data-size size> <factory> <media type>
<partition> <root-size size> <swap-size size>
Table 179 describes the request system snapshot command options. Default values are in megabytes, but you can alternatively enter values in kilobytes by appending k to the number. For example, config-size 10 specifies a config partition of 10 MB, but config-size 10k specifies a config partition of 10 KB.
Table 179: CLI request system snapshot Command Options
Option |
Description |
---|---|
as-primary |
On an external compact flash or USB storage device only, creates a snapshot for use as the primary boot medium. Use the as-primary option to replace the medium in the internal compact flash slot or to replicate it for use in another device. This process also partitions the boot medium. Note: After the boot device is created as an internal compact flash, it can operate only in an internal compact flash slot. |
config-size size |
Specifies the size of the config partition, in megabytes. The default value is 10 percent of physical memory on the boot medium. The config partition is mounted on /config. The configuration files are stored in this partition. This option also partitions the boot medium. |
data-size size |
Specifies the size of the data partition, in megabytes. The default value is 0 MB. The data partition is mounted on /data. This space is not used by the device, and can be used for extra storage. This option also partitions the boot medium. |
factory |
Copies only default files that were loaded on the internal compact flash when it was shipped from the factory, plus the rescue configuration if one has been set. Note: After the boot medium is created with the factory option, it can operate in only the internal compact flash slot. |
media type |
Specifies the boot device the software snapshot is copied to:
Note: You cannot copy software to the active boot device. |
partition |
Partitions the medium. This option is usually necessary for boot devices that do not have software already installed on them. |
root-size size |
Specifies the size of the root partition, in megabytes. The default value is the boot device's physical memory minus the config, data, and swap partitions. The root partition is mounted on / and does not include configuration files. This option also partitions the boot medium. |
swap-size size |
Specifies the size of the swap partition, 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 swap partition 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. For information about the setting the dump device, see Configuring a Boot Device to Receive Software Failure Memory Snapshots. Note: This option also partitions the boot medium. |