SRX 5000 Series routing engine 1 upgrade procedure
On SRX systems, the routing engine (RE) at slot 1 (0 based) RE1 is needed for dual control link redundancy and runs in single user mode. The normal upgrade process is not applicable to it and mostly not needed. However, there may be instances when the RE at slot 1 (called RE1 hereafter) needs to be upgraded. This article provides a procedure to do so.
When the RE1 runs on Junos OS version 12.1X47 or later, the second control link em1 will not come online. This breaks the control link redundancy.
A step by step procedure is provided in order to upgrade/downgrade the RE1 software to 12.1X44-D45, should this be required.
1. Verify the software version on RE1. Connect a console cable in the RE1 console and press Enter. Use the command uname -r to identify the software version (12.1X47-D17 in this example).
Escape character is '^]'. NOTE: to go to multi-user operation, exit the single-user shell (with ^D) To run the rest of rc manually (after the above): chroot /junos /bin/sh /etc/rc.chroot and to run a shell with a normal view of the system: chroot /junos /bin/sh # uname -r 12.1X47-D17
2. Download the install-media image:
https://download.juniper.net/software/junos/specials/JTAC/firmware/install-media-srx5000-12.1X44-D45.2-domestic
The integrity checksums are available as well:
https://download.juniper.net/software/junos/specials/JTAC/firmware/install-media-srx5000-12.1X44-D45.2-domestic.md5
https://download.juniper.net/software/junos/specials/JTAC/firmware/install-media-srx5000-12.1X44-D45.2-domestic.sha1
3. Transfer the image to a Junos device with enough available storage (approx 450 MB needed for the install media image above). This can be done on any Unix/Linux system.
4. Plug in a USB stick on the machine where the install-media has been copied and copy the install media on the USB stick.
- Use dmesg command to verify that the USB stick has been recognized by the system:
% dmesg ... umass0: Kingston DataTraveler G3, rev 2.00/1.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: <Kingston DataTraveler G3 1.00> Removable Direct Access SCSI-2 device da0: 1.000MB/s transfers da0: 1905MB (3903264 512 byte sectors: 255H 63S/T 242C)
- Erase the initial sectors of the USB stick:
% dd if=/dev/zero of=/dev/da0 count=20 20+0 records in 20+0 records out 10240 bytes transferred in 0.122878 secs (83335 bytes/sec)
- Copy the install-media image to the USB stick:
% dd if=/var/tmp/install-media-srx5000-12.1X44-D45.2-domestic of=/dev/da0 bs=64k 6106+1 records in 6106+1 records out 400189440 bytes transferred in 441.360003 secs (906719 bytes/sec)
5. Upgrade the RE1 software.
- Connect a console cable in the RE1 console and press [Enter] (if not already done in step 1).
- Insert the USB created in step 4 into the RE1 USB slot and reboot the RE1. The RE1 will boot from the USB and will ask you to install the image from USB:
# reboot Booting single-user bcmxxx kldkldload: can't load /junos/modules/platform/bcmxxx.ko: File exists bcmsdk_5_6_1 kldkldload: can't load /junos/modules/bcmsdk_5_6_1.ko: File exists System watchdog timer disabled Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh: Booting single-user bcmxxx kldkldload: can't load /junos/modules/platform/bcmxxx.ko: File exists bcmsdk_5_6_1 kldkldload: can't load /junos/modules/bcmsdk_5_6_1.ko: File exists System watchdog timer disabled Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh: Booting single-user bcmxxx kldkldload: can't load /junos/modules/platform/bcmxxx.ko: File exists bcmsdk_5_6_1 kldkldload: can't load /junos/modules/bcmsdk_5_6_1.ko: File exists System watchdog timer disabled ..... ... Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh: done Waiting (max 60 seconds) for system process `syncer' to stop... Syncing disks, vnodes remaining...0 0 0 0 done syncing disks... All buffers synced. Uptime: 20h37m0s Normal shutdown (no dump device defined) Rebooting.. ... =================== Bootstrap installer starting =================== Initialized the environment Routing engine model is RE-S-1300 Discovered that flash disk = ad0 , hard disk = ad2 Disk to install is ad0 ad2 mfs: available=4007184 Using 2097152 for /tmp WARNING: The installation will erase the contents of your disks. Do you wish to continue (y/n)? <<<<--- y .... Creating default configuration... INSTALL: created initial system configuration database in /mnt/config/juniper.conf. grep: /mnt/etc/db/pkg/*/+COMMENT: No such file or directory mach dep.bootsuccess: 0 -> 1 machdep.nextbootdev: usb -> compact-flash Eject the installation media and hit [Enter] to reboot? <<<--- hit [Enter] Waiting (max 60 seconds) for system process `vnlru_mem' to stop...done Waiting (max 60 seconds) for system process `vnlru' to stop...done Waiting (max 60 seconds) for system process `bufdaemon' to stop...done Waiting (max 60 seconds) for system process `syncer' to stop... Syncing disks, vnodes remaining...0 0 done syncing disks... All buffers synced. Uptime: 8m56s Normal shutdown (no dump device defined) Rebooting... ... System watchdog timer disabled Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh: NOTE: to go to multi-user operation, exit the single-user shell (with ^D) To run the rest of rc manually (after the above): chroot /junos /bin/sh /etc/rc.chroot and to run a shell with a normal view of the system: chroot /junos /bin/sh
- Remove the USB from the RE1 USB slot and verify that the new software is installed on RE1:
# uname -r 12.1X44-D45.2