Juniper SRX100 Junos Upgrade Process

Upgrading Junos on Juniper SRX100:

JTAC Recommended Junos Software Versions: http://kb.juniper.net/InfoCenter/index?page=content&id=KB21476&smlogin=true

Junos downloads for SRX100: https://www.juniper.net/support/downloads/?p=srx100

Copy the new Junos image in a USB memory stick. Plug the USB stick to SRX100. On SRX100, start the unix shell, check the USB stick device name and mount the stick:

admin@srx100> start shell
% dmesg
...
umass1: SanDisk Corporation U3 Titanium, rev 2.00/0.10, addr 4
da1 at umass-sim1 bus 1 target 0 lun 0
da1: <SanDisk U3 Titanium 2.18> Removable Direct Access SCSI-2 device
da1: 40.000MB/s transfers
da1: 1959MB (4013713 512 byte sectors: 255H 63S/T 249C)
% su -
Password:
root@srx100% mkdir /var/tmp/usb
root@srx100% mount -t msdos /dev/da1s1 /var/tmp/usb
root@srx100% exit
logout
% exit
exit

admin@srx100>

See the OS flash partition contents and force a backup of the current OS (not actually useful here but I happened to test that as well):

admin@srx100> show system snapshot media internal
 Information for snapshot on       internal (/dev/da0s1a) (primary)
 Creation date: Feb 28 17:16:02 2012
 JUNOS version on snapshot:
   junos  : 11.4R1.6-domestic
 Information for snapshot on       internal (/dev/da0s2a) (backup)
 Creation date: Feb 27 21:38:11 2012
 JUNOS version on snapshot:
   junos  : 10.4R8.5-domestic

admin@srx100> request system snapshot slice alternate
 Formatting alternate root (/dev/da0s2a)...
 Copying '/dev/da0s1a' to '/dev/da0s2a' .. (this may take a few minutes)
 The following filesystems were archived: /

admin@srx100> show system snapshot media internal
 Information for snapshot on       internal (/dev/da0s1a) (primary)
 Creation date: Feb 28 17:16:02 2012
 JUNOS version on snapshot:
   junos  : 11.4R1.6-domestic
 Information for snapshot on       internal (/dev/da0s2a) (backup)
 Creation date: Oct 14 12:37:21 2012
 JUNOS version on snapshot:
   junos  : 11.4R1.6-domestic

Install the new Junos package:

admin@srx100> request system software add /var/tmp/usb/junos-srxsme-11.4R5.5-domestic.tgz no-copy
 NOTICE: Validating configuration against junos-srxsme-11.4R5.5-domestic.tgz.
 NOTICE: Use the 'no-validate' option to skip this if desired.
 Formatting alternate root (/dev/da0s2a)...
 /dev/da0s2a: 297.9MB (610044 sectors) block size 16384, fragment size 2048
         using 4 cylinder groups of 74.47MB, 4766 blks, 9600 inodes.
 super-block backups (for fsck -b #) at:
 32, 152544, 305056, 457568
 Checking compatibility with configuration
 Initializing...
 Verified manifest signed by PackageProduction_11_4_0
 Verified junos-11.4R1.6-domestic signed by PackageProduction_11_4_0
 Using junos-11.4R5.5-domestic from /altroot/cf/packages/install-tmp/junos-11.4R5.5-domestic
 Copying package ...
 Verified manifest signed by PackageProduction_11_4_0
 Hardware Database regeneration succeeded
 Validating against /config/juniper.conf.gz
 cp: /cf/var/validate/chroot/var/etc/resolv.conf and /etc/resolv.conf are identical (not copied).
 cp: /cf/var/validate/chroot/var/etc/hosts and /etc/hosts are identical (not copied).
 mgd: commit complete
 Validation succeeded
 Validating against /config/rescue.conf.gz
 mgd: commit complete
 Validation succeeded
 Installing package '/altroot/cf/packages/install-tmp/junos-11.4R5.5-domestic' ...
 Verified junos-boot-srxsme-11.4R5.5.tgz signed by PackageProduction_11_4_0
 Verified junos-srxsme-11.4R5.5-domestic signed by PackageProduction_11_4_0
 JUNOS 11.4R5.5 will become active at next reboot
 WARNING: A reboot is required to load this software correctly
 WARNING:     Use the 'request system reboot' command
 WARNING:         when software installation is complete
 Saving state for rollback ...

admin@srx100> request system reboot
Reboot the system ? [yes,no] (no) yes

Shutdown NOW!
[pid 7028]

admin@srx100>
*** FINAL System shutdown message from admin@srx100 ***

System going down IMMEDIATELY

Remove the USB stick as soon as the device goes off and on, otherwise it will disturb the boot process.

After the reboot, see that the second partition is now running as the primary (the first partition still has the previous OS intact):

admin@srx100> show system snapshot media internal
 Information for snapshot on       internal (/dev/da0s1a) (backup)
 Creation date: Feb 28 17:16:02 2012
 JUNOS version on snapshot:
   junos  : 11.4R1.6-domestic
 Information for snapshot on       internal (/dev/da0s2a) (primary)
 Creation date: Oct 14 17:14:26 2012
 JUNOS version on snapshot:
   junos  : 11.4R5.5-domestic

 admin@srx100>

3 Comments

Add a Comment
  1. Hi Marrku,

    Is there is any downtime while upgrading SRX. ( Which is in high availability).

    //
    Viplav Patil

    1. Hi Viplav! Downtime is expected, especially in the branch series (SRX100 – SRX650). I would start in http://kb.juniper.net/InfoCenter/index?page=content&id=KB17946 and https://www.juniper.net/techpubs/en_US/junos12.1×47/topics/task/operational/chassis-cluster-upgrading-and-aborting-backup-and-primary-device-with-icu.html. Apparently about 30 seconds of downtime is expected, obviously with the clustering configured. With one device only the downtime is a few minutes while the device reboots.

      For the high-end SRX devices the ISSU should be much smoother.

      1. Thanks Markku 🙂

Leave a Reply