Home > Juniper, Uncategorized > JUNOS Boot from Backup Image – Recovery

JUNOS Boot from Backup Image – Recovery

February 17th, 2015

Another quick aide-memoir describing the recovery of a corrupted JUNOS image – the EX3300 series LAN switch has booted from the backup image.

— JUNOS 11.4R5.5 built 2012-08-25 05:29:29 UTC

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

darenm@coresw1# show version
## Last changed: 2015-02-13 10:50:43 UTC
version 11.4R5.5;

darenm@coresw1> exit

darenm@coresw1> show version
fpc0:
————————————————————————–
Hostname: coresw1
Model: ex3300-48p
JUNOS Base OS boot [11.4R5.5]
JUNOS Base OS Software Suite [11.4R5.5]
JUNOS Kernel Software Suite [11.4R5.5]
JUNOS Crypto Software Suite [11.4R5.5]
JUNOS Online Documentation [11.4R5.5]
JUNOS Enterprise Software Suite [11.4R5.5]
JUNOS Packet Forwarding Engine Enterprise Software Suite [11.4R5.5]
JUNOS Routing Software Suite [11.4R5.5]
JUNOS Web Management [11.4R5.5]
JUNOS FIPS mode utilities [11.4R5.5]

{master:0}
darenm@coresw1>

UPLOAD NEW IMAGE OF CORRECT VERSION:

darenm@coresw1> ping 10.15.52.74
PING 10.15.52.74 (10.15.52.74): 56 data bytes
64 bytes from 10.15.52.74: icmp_seq=0 ttl=122 time=201.971 ms
64 bytes from 10.15.52.74: icmp_seq=1 ttl=122 time=201.505 ms
^C
— 10.15.52.74 ping statistics —
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 201.505/201.738/201.971/0.233 ms

request system software add ftp://dst:dst@10.15.52.74/jinstall-ex-3300-12.3R3.4-domestic-signed.tgz

darenm@coresw1> …ex-3300-12.3R3.4-domestic-signed.tgz

Checking pending install on fpc0
Fetching package…

Validating on fpc0
Done with validate on all virtual chassis members

fpc0:
WARNING: A reboot is required to install the software
WARNING:     Use the ‘request system reboot’ command immediately

{master:0}
darenm@coresw1>

darenm@coresw1> request system reboot
Reboot the system ? [yes,no] (no) yes

Shutdown NOW!
[pid 1270]

{master:0}
darenm@coresw1>
*** FINAL System shutdown message from darenm@coresw1 ***

System going down IMMEDIATELY

NOW VERIFY:

darenm@coresw1> show chassis routing-engine
Routing Engine status:
Slot 0:
Current state                  Master
Temperature                 34 degrees C / 93 degrees F
CPU temperature             34 degrees C / 93 degrees F
DRAM                      1024
Memory utilization          37 percent
CPU utilization:
User                       1 percent
Background                 0 percent
Kernel                     0 percent
Interrupt                  0 percent
Idle                      99 percent
Model                          EX3300 48-Port POE+
Serial ID                      GB0212528309
Start time                     2015-02-13 11:43:31 UTC
Uptime                         7 minutes, 59 seconds
Last reboot reason             Router rebooted after a normal shutdown.
Load averages:                 1 minute   5 minute  15 minute
0.13       0.72       0.46

{master:0}
darenm@coresw1>

darenm@coresw1> show version
fpc0:
————————————————————————–
Hostname: coresw1
Model: ex3300-48p
JUNOS Base OS boot [12.3R3.4]
JUNOS Base OS Software Suite [12.3R3.4]
JUNOS Kernel Software Suite [12.3R3.4]
JUNOS Crypto Software Suite [12.3R3.4]
JUNOS Online Documentation [12.3R3.4]
JUNOS Enterprise Software Suite [12.3R3.4]
JUNOS Packet Forwarding Engine Enterprise Software Suite [12.3R3.4]
JUNOS Routing Software Suite [12.3R3.4]
JUNOS Web Management [12.3R3.4]
JUNOS FIPS mode utilities [12.3R3.4]

{master:0}
darenm@coresw1>

darenm@coresw1> show system storage partitions
fpc0:
————————————————————————–
Boot Media: internal (da0)
Active Partition: da0s2a <========== ** THIS IS THE ACTIVE SLICE **
Backup Partition: da0s1a
Currently booted from: active (da0s2a) <========== ** THIS IS THE ACTIVE SLICE **

Partitions information:
Partition  Size   Mountpoint
s1a        183M   altroot
s2a        184M   /
s3d        369M   /var/tmp
s3e        123M   /var
s4d        62M    /config

{master:0}
darenm@coresw1>

PROBLEM: LOWER VERSION ON (CURRENT) BACKUP PARTITION:

darenm@coresw1> show system snapshot media internal
fpc0:
————————————————————————–
Information for snapshot on       internal (/dev/da0s1a) (backup)
Creation date: Aug 25 10:00:09 2012
JUNOS version on snapshot:
jbase  : ex-11.4R5.5
jkernel-ex-3300: 11.4R5.5
jweb-ex: 11.4R5.5
jcrypto-ex: 11.4R5.5
jdocs-ex: 11.4R5.5
jswitch-ex: 11.4R5.5
jpfe-ex33x: 11.4R5.5
jroute-ex: 11.4R5.5
fips-mode-arm: 11.4R5.5
Information for snapshot on       internal (/dev/da0s2a) (primary)
Creation date: Feb 13 11:42:23 2015
JUNOS version on snapshot:
jbase  : ex-12.3R3.4
jkernel-ex-3300: 12.3R3.4
jweb-ex: 12.3R3.4
jcrypto-ex: 12.3R3.4
jdocs-ex: 12.3R3.4
jswitch-ex: 12.3R3.4
jpfe-ex33x: 12.3R3.4
jroute-ex: 12.3R3.4
fips-mode-arm: 12.3R3.4

{master:0}
darenm@coresw1>

darenm@coresw1> show virtual-chassis status

Preprovisioned Virtual Chassis
Virtual Chassis ID: b9fc.2725.cccf
Virtual Chassis Mode: Enabled
Mstr           Mixed Neighbor List
Member ID  Status   Serial No    Model     prio  Role      Mode ID  Interface
0 (FPC 0)  Prsnt    GB0212528309 ex3300-48p 129  Master*     NA  1  vcp-255/1/2
1  vcp-255/1/3
1 (FPC 1)  Prsnt    GB0212528262 ex3300-48p 129  Backup      NA  0  vcp-255/1/2
0  vcp-255/1/3

{master:0}
darenm@coresw1>

darenm@coresw1> show virtual-chassis vc-port
fpc0:
————————————————————————–
Interface   Type              Trunk  Status       Speed        Neighbor
or                             ID                 (mbps)       ID  Interface
PIC / Port
1/2         Configured          5    Up           10000        1   vcp-255/1/2
1/3         Configured          5    Up           10000        1   vcp-255/1/3

fpc1:
————————————————————————–
Interface   Type              Trunk  Status       Speed        Neighbor
or                             ID                 (mbps)       ID  Interface
PIC / Port
1/2         Configured          5    Up           10000        0   vcp-255/1/2
1/3         Configured          5    Up           10000        0   vcp-255/1/3

{master:0}
darenm@coresw1>

COPY IMAGE FROM PRIMARY TO BACKUP:

darenm@coresw1> request system snapshot slice alternate
fpc0:
———————————————————————-
Formatting alternate root (/dev/da0s1a)…
Copying ‘/dev/da0s2a’ to ‘/dev/da0s1a’ .. (this may take a few minutes)
The following filesystems were archived: /

fpc1:
————————————————————————–
Formatting alternate root (/dev/da0s1a)…
Copying ‘/dev/da0s2a’ to ‘/dev/da0s1a’ .. (this may take a few minutes)
The following filesystems were archived: /

{master:1}
darenm@coresw1>

VERIFY:

darenm@sajoncoresw1> show system snapshot media internal
fpc0:
———————————————————————-                             —-
Information for snapshot on       internal (/dev/da0s1a) (backup)
Creation date: Mar 3 12:04:17 2015
JUNOS version on snapshot:
jbase  : ex-12.3R3.4
jkernel-ex-3300: 12.3R3.4
jweb-ex: 12.3R3.4
jcrypto-ex: 12.3R3.4
jdocs-ex: 12.3R3.4
jswitch-ex: 12.3R3.4
jpfe-ex33x: 12.3R3.4
jroute-ex: 12.3R3.4
fips-mode-arm: 12.3R3.4
Information for snapshot on       internal (/dev/da0s2a) (primary)
Creation date: Feb 13 11:42:23 2015
JUNOS version on snapshot:
jbase  : ex-12.3R3.4
jkernel-ex-3300: 12.3R3.4
jweb-ex: 12.3R3.4
jcrypto-ex: 12.3R3.4
jdocs-ex: 12.3R3.4
jswitch-ex: 12.3R3.4
jpfe-ex33x: 12.3R3.4
jroute-ex: 12.3R3.4
fips-mode-arm: 12.3R3.4

fpc1:
————————————————————————–
Information for snapshot on       internal (/dev/da0s1a) (backup)
Creation date: Mar 3 12:09:49 2015
JUNOS version on snapshot:
jbase  : ex-12.3R3.4
jkernel-ex-3300: 12.3R3.4
jweb-ex: 12.3R3.4
jcrypto-ex: 12.3R3.4
jdocs-ex: 12.3R3.4
jswitch-ex: 12.3R3.4
jpfe-ex33x: 12.3R3.4
jroute-ex: 12.3R3.4
fips-mode-arm: 12.3R3.4
Information for snapshot on       internal (/dev/da0s2a) (primary)
Creation date: Jun 14 03:12:32 2013
JUNOS version on snapshot:
jbase  : ex-12.3R3.4
jkernel-ex-3300: 12.3R3.4
jweb-ex: 12.3R3.4
jcrypto-ex: 12.3R3.4
jdocs-ex: 12.3R3.4
jswitch-ex: 12.3R3.4
jpfe-ex33x: 12.3R3.4
jroute-ex: 12.3R3.4
fips-mode-arm: 12.3R3.4

{master:1}
darenm@sajoncoresw1>

 

 

Categories: Juniper, Uncategorized Tags:
Comments are closed.