[Contents] [Prev] [Next] [Index] [Report an Error]

Configuring Boot Devices with the CLI

Use the request system snapshot CLI command to create a boot device for the Services Router 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 98 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 98: CLI request system snapshot Command Options

as-primary

On a removable 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 primary compact flash drive or to replicate it for use in another Services Router. This process also partitions the boot medium.

Note:

After the boot device is created as a primary compact flash drive, it can operate only in a primary compact flash drive 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 router, and can be used for extra storage.

This option also partitions the boot medium.

factory

Copies 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.

Note:

After the boot medium is created with the factory option, it can operate in only the primary compact flash drive slot.

media type

Specifies the boot device the software snapshot is copied to:

  • compact-flash—Copies software to the primary compact flash drive.
  • removable-compact-flash—Copies software to the removable compact flash drive. This option is available on J4300 and J6300 Services Routers only.
  • usb—Copies software to the device connected to the USB port.

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.


[Contents] [Prev] [Next] [Index] [Report an Error]