This article describes the issue when a Juniper Networks EX Series Switches boots from the backup root partition after a file corruption occurred on the primary root partition.
EX series switches running Junos release 10.4R3 or later have added resiliency based on the "resilient dual-root partition"; which if the switch detects a corruption on the primary root file system, it boots from the alternate root partition.When this occurs, you are notified in two ways, via an Alarm and a Warning banner.
root@switch> show chassis alarms 1 alarms currently activeAlarm time Class Description2023-02-10 08:23:53 PST Minor Host 0 Boot from backup root
************************************************************************* **** 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. **** *************************************************************************
It is likely that the file system became corrupted due to a sudden power loss or an ungraceful shutdown of the EX Series Switch.
request system snapshot media internal slice alternate
Note: As long as both partitions are healthy, there is no issue with running the switch on either of them. You only must ensure that both partitions are healthy, so that fail over can be done transparently between the two, in case of any file corruption.
show system storage partitions
root@switch> show system storage partitions fpc0:--------------------------------------------------------------------------Boot Media: internal (da0)Active Partition: da0s2aBackup Partition: da0s1a <-- this is the backup sliceCurrently booted from: backup (da0s1a) <-- shows booted from that slicePartitions information: Partition Size Mountpoint s1a 316M / s2a 324M altroot s3d 887M /var/tmp s3e 170M /var s4d 116M /config
show system snapshot media internal
root@switch> show system snapshot media internal fpc0:--------------------------------------------------------------------------Information for snapshot on internal (/dev/da0s1a) (backup)Creation date: Feb 7 02:48:07 2023JUNOS version on snapshot: jcrypto-ex: 20.4R3-S1.3 jdocs-ex: 20.4R3-S1.3 jphone-home: 20.4R3-S1.3 jsd : powerpc-20.4R3-S1.3-jet-1 jsdn-powerpc: 20.4R3-S1.3 junos : ex-20.4R3-S1.3 junos-ex-4300: 20.4R3-S1.3 jweb-ex: 20.4R3-S1.3Information for snapshot on internal (/dev/da0s2a) (primary) <-- provides info for this slice/partition the switch booted off and the date the filesystem was createdCreation date: Feb 9 01:58:01 2023 <-- if less than alarm date then customer should snapshot (it is an effective way to confirm)JUNOS version on snapshot: jcrypto-ex: 21.4R3-S3.2 jdocs-ex: 21.4R3-S3.2 jphone-home: 21.4R3-S3.2 jsd : powerpc-21.4R3-S3.2-jet-1 jsdn-powerpc: 21.4R3-S3.2 junos : ex-21.4R3-S3.2 junos-ex-4300: 21.4R3-S3.2 jweb-ex: 21.4R3-S3.2
request system reboot slice alternate media internal
Note: This alarm does not get cleared, even if you repair the primary partition. The purpose of this alarm is to inform the users that the device is rebooted from the backup partition, so that administrators take necessary actions to repair the primary partition.
Beginning with Junos release 12.3, use the following commands:
Perform snapshot to the other partition. > request system snapshot slice alternate local To perform a snapshot to the other partition on a device part of a virtual chassis: > request system snapshot slice alternate member <member ID> To verify if the partition has been copied correctly. > show system snapshot media internal local To verify if the partition has been copied correctly for the specific member. > show system snapshot media internal member <member ID>
> request system snapshot slice alternate local
> request system snapshot slice alternate member <member ID>
> show system snapshot media internal local
> show system snapshot media internal member <member ID>
2025/05/30 : Added EX4300 platform to categories.