beautypg.com

Configuring a boot device for backup with the cli – Juniper Networks J-Series User Manual

Page 211

background image

Configuring a Boot Device for Backup 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 on page 189 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

Description

Option

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 Services Router. 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.

as-primary

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.

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

data-size size

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.

factory

Specifies the boot device the software snapshot is copied to:

compact-flash

—Copies software to the internal compact flash.

removable-compact-flash

—Copies software to the external compact flash. This option is

available on J2320, J2350, 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.

media type

Configuring Boot Devices

189

Chapter 10: Performing Software Upgrades and Reboots