- play_arrow Junos OS Overview
- play_arrow Junos OS Overview
-
- play_arrow System Backup and Recovery
- play_arrow Back Up an Installation
- play_arrow Recover Junos OS
-
- play_arrow Installation, Upgrade, and Downgrade VM Host Software, and Back Up and Recovery of VM Host Devices
- play_arrow VM Host Overview and CLI Commands
- play_arrow Boot Process for Routers with VM Host Support
- play_arrow Installing, Upgrading, Backing Up, and Recovery of VM Host
- play_arrow Copying VM Host Installation Package to the PXE Boot Server
- play_arrow Upgrading NFX Devices
- play_arrow Creating an Emergency Boot Device for Routing Engines with VM Host Support
- play_arrow Upgrading Firmware on Routing Engines with VM Host Support
- play_arrow Disabling Autorecovery on Routing Engines with VM Host Support
-
- play_arrow Installing and Upgrading the BIOS and Firmware
- play_arrow For Routers
- play_arrow For Switches
- play_arrow For Firewalls
-
- play_arrow Zero Touch Provisioning and Secure Zero Touch Provisioning
- play_arrow Phone-Home Client
- play_arrow Automatic Installation of Configuration Files
- play_arrow Automatic Installation of Configuration Files
-
- play_arrow Configuration Statements and Operational Commands
- play_arrow Configuration Statements and Operational Commands
-
Configure Root Partitions on SRX Series Devices
Learn how to configure root partitions on SRX Series Firewalls, including the benefits of dual-root partitioning for improved reliability and recovery. This topic covers the boot process, automatic recovery with the auto-snapshot feature, and steps to reinstall single-root partitioning for older Junos OS versions.
Dual-Root Partition Scheme on SRX Series Firewalls
Dual-root partitioning allows the SRX Series Firewall to remain functional even if there is file system corruption and to facilitate easy recovery of the file system.
In the Single-root partitioning scheme, since both the primary and backup Junos OS images are located on the same root partition, the system fails to boot if there is corruption in the root file system. The dual-root partitioning scheme guards against this scenario by keeping the primary and backup Junos OS images in two independently bootable root partitions. If the primary root partition becomes corrupted, the system can still boot from the backup Junos OS image located in the other root partition and remain fully functional.
- Boot Media and Boot Partition on SRX Series Firewalls
- Key Functionality of the Dual-Root Partitioning Scheme
- Automatic Recovery of the Primary Junos OS Image with Dual-Root Partitioning
- How the Primary Junos OS Image with Dual-Root Partitioning Recovers Devices
- How Junos OS Release 10.0 or Later Upgrades with Dual-Root Partitioning
- Dual-Root and Single-Root Partitioning (SRX Series Only)
Boot Media and Boot Partition on SRX Series Firewalls
When the SRX Series Firewall powers on, it tries to boot the Junos OS from the default storage media. If the device fails to boot from the default storage media, it tries to boot from the alternate storage media.
Use Feature Explorer to confirm platform and release support for specific features.
Review the Platform-Specific Storage Media Behavior section for notes related to your platform.
With the dual-root partitioning scheme, the SRX Series Firewall first tries to boot Junos OS from the primary root partition and then from the backup root partition on the default storage media. If both primary and backup root partitions of a media fail to boot, then the SRX Series Firewall tries to boot from the next available type of storage media. The SRX Series Firewall remains fully functional even if it boots Junos OS from the backup root partition of the storage media.
Key Functionality of the Dual-Root Partitioning Scheme
The dual-root partitioning scheme has the following important features:
The primary and backup copies of Junos OS images reside in separate partitions. The partition containing the backup copy is mounted only when required. With the single-root partitioning scheme, there is one root partition that contains both the primary and the backup Junos OS images.
The
request system software add
command for a Junos OS package erases the contents of the other root partition. The contents of the other root partition will not be valid unless software installation is completed successfully.Add-on packages, such as
jais
orjfirmware
, can be reinstalled as required after a new Junos OS image is installed.The
request system software rollback
command does not delete the current Junos OS image. It is possible to switch back to the image by issuing therollback
command again.The
request system software delete-backup
andrequest system software validate
commands do not take any action.
Automatic Recovery of the Primary Junos OS Image with Dual-Root Partitioning
The auto-snapshot feature repairs the corrupted primary root when the device reboots from the alternate root. This is accomplished by taking a snapshot of the alternate root onto the primary root automatically rather than manually from the CLI.
When this feature is enabled, and the device reboots from the alternate root (because of a corrupted primary root or power cycle during restart), the following actions take place:
A prominent message is displayed indicating a failure to boot from the primary root.
content_copy zoom_out_map*********************************************************************** ** ** ** WARNING: THIS DEVICE HAS BOOTED FROM THE BACKUP JUNOS IMAGE ** ** ** ** It is possible that the primary copy of JUNOS failed to boot up ** ** properly, and so this device has booted from the backup copy. ** ** ** ** Please re-install JUNOS to recover the primary copy in case ** ** it has been corrupted and if auto-snapshot feature is not ** ** enabled. ** ** ** ***********************************************************************
A system
boot from backup root
alarm is set. This is useful for devices that do not have console access.A snapshot of the alternate root onto the primary root is made.
Once the snapshot is complete, the system
boot from backup root
alarm is cleared.During the next reboot, the system determines the good image on the primary root and boots normally. Perform the snapshot once all the processes start. This is done to avoid any increase in the reboot time.
By default the auto-snapshot feature is disabled. If you do not maintain the same version of Junos OS in both partitions, ensure that the automatic snapshot feature remains disabled. Otherwise, if you have an earlier version of Junos OS in the alternate partition and the system reboots from the alternate root partition, the automatic snapshot feature causes the later Junos OS version to be replaced with the earlier version. When automatic snapshot is disabled and the system reboots from the alternate root partition, it triggers an alarm indicating that the system has rebooted from its alternate partition.
Enable this feature with the set system auto-snapshot
command. Once the primary root partition is recovered using this
method, the device will successfully boot from the primary root partition
on the next reboot.
Execute the delete system auto-snapshot
command to
delete all backed up data and disable auto-snapshot, if required.
Use the show system auto-snapshot
command to check
the auto-snapshot status.
When auto-snapshot is in progress, you cannot run a manual snapshot command concurrently and the following error message appears:
Snapshot already in progress. Please try after sometime.
If you log into the device when the snapshot is in progress, the following banner
appears: The device has booted from the alternate partition, auto-snapshot
is in progress.
How the Primary Junos OS Image with Dual-Root Partitioning Recovers Devices
If the SRX Series Firewall is unable to boot from the primary Junos OS image, and boots up from the backup Junos OS image in the backup root partition, a message appears on the console at the time of login indicating that the device has booted from the backup Junos OS image.
login: user Password: *********************************************************************** ** ** ** WARNING: THIS DEVICE HAS BOOTED FROM THE BACKUP JUNOS IMAGE ** ** ** ** It is possible that the active copy of JUNOS failed to boot up ** ** properly, and so this device has booted from the backup copy. ** ** ** ** Please re-install JUNOS to recover the active copy in case ** ** it has been corrupted. ** ** ** ***********************************************************************
Because the system is left with only one functional root partition, you must immediately restore the primary Junos OS image using one of the following methods:
Install a new image using the CLI or J-Web user interface. The newly installed image will become the primary image, and the device will boot from it on the next reboot.
Use a snapshot of the backup root partition by entering the
request system snapshot slice alternate
command. Once the primary root partition is recovered using this method, the device will successfully boot from the primary root partition on the next reboot. After the procedure, the primary root partition will contain the same version of Junos OS as the backup root partition. Once the snapshot is complete, the systemboot from backup root
alarm is cleared.You can use the CLI command
request system snapshot slice alternate
to back up the currently running root file system (primary or secondary) to the other root partition on the system along with following:Save an image of the primary root partition in the backup root partition when the system boots from the primary root partition.
Save an image of the backup root partition in the primary root partition when the system boots from the backup root partition.
The process of restoring the alternate root by using the CLI command
request system snapshot slice alternate
takes several minutes to complete. If you terminate the operation before completion, the alternate root might not have all required contents to function properly.
How Junos OS Release 10.0 or Later Upgrades with Dual-Root Partitioning
To format the media with dual-root partitioning while upgrading to Junos OS Release 10.0 or later, use one of the following installation methods:
Installation from the boot loader using a TFTP server. We recommend this if console access to the system is available and a TFTP server is available in the network. See ../concept/../topic-map/install-software-on-srx.html#id-installing-junos-os-on-srx-series-devices-from-the-boot-loader-using-a-tftp-server
Installation from the boot loader using a USB storage device. We recommend this method if console access to the system is available and the system can be physically accessed to plug in a USB storage device. See ../concept/../topic-map/install-software-on-srx.html#id-installing-junos-os-on-srx-series-devices-from-the-boot-loader-using-a-usb-storage-device
Installation from the CLI using the
partition
option. We recommend this method only if console access is not available. This installation can be performed remotely.
Dual-Root and Single-Root Partitioning (SRX Series Only)
Junos OS upgrade methods format the internal media before installation, whereas other methods do not. To install Junos OS Release with the dual-root partitioning scheme, you must use an upgrade method that formats the internal media before installation.
These upgrade methods format the internal media before installation:
Installation from the boot loader using a TFTP server
Installation from the boot loader using a USB storage device
Installation from the CLI using the
partition
option (available in Junos OS Release 10.0)Installation using the J-Web user interface
These upgrade methods retain the existing partitioning scheme:
Installation using the CLI
Installation using the J-Web user interface
Upgrade methods that format the internal media before installation wipe out the existing contents of the media. Only the current configuration is preserved. Any important data must be backed up before starting the process.
Once the media has been formatted with the dual-root partitioning scheme, you can use conventional CLI or J-Web user interface installation methods, which retain the existing partitioning and contents of the media, for subsequent upgrades.
Reinstall Single-Root Partition on SRX Series Firewalls
To reinstall the single-root partition on SRX firewalls, you need to consider the compatibility between Junos OS versions and partitioning schemes. Junos OS 9.6 and earlier only supports single-root partitioning, while later versions use dual-root partitioning. If you attempt to install Junos OS 9.6 or earlier on a device with dual-root partitioning without reformatting, the installation will fail with an error.
To reinstall the single-root partition:
Platform-Specific Storage Media Behavior
Use Feature Explorer to confirm platform and release support for specific features.
Use the following table to review platform-specific storage media behaviors for your platform:
Platform | Difference |
---|---|
SRX Series |
|