You can configure a boot device to replace the primary boot device on your J Series or SRX Series device, or to act as a backup boot device. The backup device must have a storage capacity of at least 256 MB. Use either the J-Web interface or the CLI to take a snapshot of the configuration currently running on the device, or of the original factory configuration and a rescue configuration, and save it to an alternate medium.
![]() |
Note: For media redundancy, we recommend that you keep a secondary storage medium attached to the J Series or SRX Series device and updated at all times. |
If the primary storage medium becomes corrupted and no backup medium is in place, you can recover the primary CompactFlash card from a special software image. You can also configure a boot device to store snapshots of software failures, for use in troubleshooting.
For information about installing boot devices, see the J Series Services Routers Hardware Guide.
This section contains the following topics:
You can use the J-Web interface to create a boot device on an alternate medium, to replace the primary boot device or serve as a backup.
Figure 10 shows the Snapshot page.
Figure 10: Snapshot Page
To create a boot device:
Table 184: Snapshot Summary
Field |
Function |
Your Action |
---|---|---|
Target Media |
Specifies the boot device to copy the snapshot to. Note: You cannot copy software to the active boot device. |
In the list, select a boot device that is not the active boot device:
|
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 a boot device is created with the default factory configuration, it can operate only in an internal compact flash slot. |
To copy only the default factory configuration, plus a rescue configuration if one exists, select the check box. |
Partition |
Partitions the medium. This process is usually necessary for boot devices that do not already have software installed on them. |
To partition the medium that you are copying the snapshot to, select the check box. |
As Primary Media |
On an external compact flash or USB storage device only, creates a snapshot for use as the primary boot medium. Use this feature 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. |
To create a boot medium to use in the internal compact flash only, select the check box. |
Data Size |
Specifies the size of the data partition, in kilobytes. The data partition is mounted on /data. This space is not used by the device, and can be used for extra storage. This selection also partitions the boot medium. |
Type a numeric value, in kilobytes. The default value is 0 KB. |
Swap Size |
Specifies the size of the swap partition, in kilobytes. 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. This selection also partitions the boot medium. |
Type a numeric value, in kilobytes. The default value is one-third of the physical memory on a boot medium larger than 128,000 KB, or 0 KB on a smaller boot device. |
Config Size |
Specifies the size of the config partition, in kilobytes. The config partition is mounted on /config. The configuration files are stored in this partition. This selection also partitions the boot medium. |
Type a numeric value, in kilobytes. The default value is 10 percent of physical memory on the boot medium. |
Root Size |
Specifies the size of the root partition, in kilobytes. The root partition is mounted on / and does not include configuration files. This selection also partitions the boot medium. |
Type a numeric value, in kilobytes. The default value is the boot device's physical memory minus the config, data, and swap partitions. |
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 185 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 185: CLI request system snapshot Command Options
Option |
Description |
---|---|
as-primary |
On an external CompactFlash card 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 CompactFlash card 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 CompactFlash, it can operate only in an internal CompactFlash 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 CompactFlash card 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 CompactFlash 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. |
You can use the set system dump-device CLI command to specify the medium to use for the device to store system software failure memory snapshots. In this way, when the operating system fails, if you have specified a system dump device in the configuration, the operating system preserves a snapshot of the state of the device when it failed.
After you reboot the system, the dump device is checked for a snapshot as part of the operating system boot process. If a snapshot is found, it is written to the crash dump directory on the device (/var/crash). The customer support team can examine this memory snapshot to help determine the cause of the system software failure.
![]() |
Note: If the swap partition on the dump device medium is not large enough for a system memory snapshot, either a partial snapshot or no snapshot is written into the crash dump directory. |
Enter the set system dump-device CLI command with the following syntax:
user@host> set system dump-device boot-device | compact-flash | removable-compact-flash | usb
Table 186 describes the set system dump-device command options.
Table 186: CLI set system dump-device Command Options