Description

This article describes the procedure for upgrading Junos Evolved platforms  by using a bootable USB device. 

Symptoms

Device stuck in booting.
Upgrade of ACX Junos EVO.

Solution

To upgrade router running Junos OS Evolved by using a bootable USB device, perform the following steps:

1.) Download .img image from downloads site( https://support.juniper.net/support/downloads/ Section: Install Media) and copy to /var/tmp/ directory.

2.) Before inserting the USB device, list the contents of /dev/ from router shell.

#ls /dev/sd*
/dev/sda   /dev/sda3  /dev/sda6  /dev/sdb1  /dev/sdb4  /dev/sdb7
/dev/sda1  /dev/sda4  /dev/sda7  /dev/sdb2  /dev/sdb5  
/dev/sda2  /dev/sda5  /dev/sdb   /dev/sdb3  /dev/sdb6  
#

3.) After inserting the USB device, list the contents of /dev/ from router shell.

#ls /dev/sd*
/dev/sda   /dev/sda3  /dev/sda6  /dev/sdb1  /dev/sdb4  /dev/sdb7
/dev/sda1  /dev/sda4  /dev/sda7  /dev/sdb2  /dev/sdb5  /dev/sdc  <<< Note new device /dev/sdc detected.
/dev/sda2  /dev/sda5  /dev/sdb   /dev/sdb3  /dev/sdb6  /dev/sdc1         
#

4.) Execute the following command to make USB bootable, where $USB identifies the device for that USB (typically sdc in Linux):

# dd if=/var/tmp/usb.img of=/dev/$USB bs=1M

5.) Plug-in the bootable USB to the router and reboot from the USB by using "request system reboot usb." 

Use the command request system shutdown reboot usb for Junos OS Evolved software images older than Release 20.1R1.

Example:

Step1:

1.) Before installing USB, check for devices listed.

lab@acx7k> start shell user root
Password:

[vrf:none] root@acx7k:~# ls /dev/sd*
/dev/sda  /dev/sda1  /dev/sda2  /dev/sda3  /dev/sda5  /dev/sda6  /dev/sda7  /dev/sdb  /dev/sdb1  /dev/sdb2  /dev/sdb3  /dev/sdb5  /dev/sdb6  /dev/sdb7

2.) Insert USB.

[vrf:none] root@acx7k:~# ls /dev/sd*
/dev/sda   /dev/sda2  /dev/sda5  /dev/sda7  /dev/sdb1  /dev/sdb3  /dev/sdb6  /dev/sdc  <<< new device /dev/sdc detected
/dev/sda1  /dev/sda3  /dev/sda6  /dev/sdb   /dev/sdb2  /dev/sdb5  /dev/sdb7  /dev/sdc1

> In the log messages, we can see the detection of USB drive.

May 24 10:25:50.752  acx7k kernel: scsi 6:0:0:0: Direct-Access  USB DISK 3.0  PMAP PQ: 0 ANSI: 6
May 24 10:25:50.753  acx7k  kernel: sd 6:0:0:0: Attached scsi generic sg2 type 0
May 24 10:25:50.753  acx7k  kernel: sd 6:0:0:0: [sdc] 30336384 512-byte logical blocks: (15.5 GB/14.5 GiB)
May 24 10:25:50.753  acx7k  kernel: sd 6:0:0:0: [sdc] Write Protect is off
May 24 10:25:50.754  acx7k  kernel: sd 6:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
May 24 10:25:51.136  acx7k  kernel: sd 6:0:0:0: [sdc] Attached SCSI removable disk

Step2:

Make USB drive bootable.

[vrf:none] root@acx7k:~# cd /var/tmp/
[vrf:none] root@acx7k:/var/tmp# ls -la
total 2821196
-rw-r--r--  1 root root 2888826880 May 23 10:08 junos-evo-install-media-usb-acx-x86-64-23.4R1-S1.5-EVO.img

[vrf:none] root@acx7k:/var/tmp# dd if=/var/tmp/junos-evo-install-media-usb-acx-x86-64-23.4R1-S1.5-EVO.img of=/dev/sdc bs=1M
2755+0 records in
2755+0 records out
2888826880 bytes (2.9 GB, 2.7 GiB) copied, 218.796 s, 13.2 MB/s  
[vrf:none] root@acx7k:/var/tmp# exit

Step3:

Now to install JunosEVO reboot the device using USB. Since, the ACX7509 has dual REs, we are booting re0.

lab@acx7k> request node reboot usb re0 
This may affect traffic in system. Proceed ? [yes,no] (no) yes 
                                                                               
*** Shutdown message for node re0 from lab@acx7k***  

Modification History

25-05-2024 Edited