This article describes the issue of 'request system software add <package> unlink reboot' failure in Junos for EX.
Certain customers may use the unlink option when performing an upgrade/downgrade of Junos for EX. But, the operation does not work as expected if "" is used in certain Junos versions (11.4R1, 11.4R2, 12.1R1). The upgrade/downgrade will not work as expected and the system will boot from the alternate partition. For example: Present status of EX is Partition 1 with Junos 11.4R1.6 and Partition 2 with Junos 12.1B2.5. Currently the system boots from active partition 1.
{master:0} [email protected]> show system snapshot media internal Information for snapshot on internal (/dev/da0s1a) (primary) Creation date: Nov 15 13:39:41 2011 JUNOS version on snapshot: jbase : 11.4R1.6 jcrypto-ex: 11.4R1.6 jdocs-ex: 11.4R1.6 jkernel-ex: 11.4R1.6 jroute-ex: 11.4R1.6 jswitch-ex: 11.4R1.6 jweb-ex: 11.4R1.6 jpfe-ex42x: 11.4R1.6 Information for snapshot on internal (/dev/da0s2a) (backup) Creation date: Feb 18 13:32:29 2012 JUNOS version on snapshot: jbase : ex-12.1B2.5 jcrypto-ex: 12.1B2.5 jdocs-ex: 12.1B2.5 jkernel-ex: 12.1B2.5 jroute-ex: 12.1B2.5 jswitch-ex: 12.1B2.5 jweb-ex: 12.1B2.5 jpfe-ex42x: 12.1B2.5 {master:0} [email protected]> show version fpc0: -------------------------------------------------------------------------- Hostname: EX4200-24T-a.cn Model: ex4200-24t JUNOS Base OS boot [11.4R1.6] JUNOS Base OS Software Suite [11.4R1.6] JUNOS Kernel Software Suite [11.4R1.6] JUNOS Crypto Software Suite [11.4R1.6] JUNOS Online Documentation [11.4R1.6] JUNOS Enterprise Software Suite [11.4R1.6] JUNOS Packet Forwarding Engine Enterprise Software Suite [11.4R1.6] JUNOS Routing Software Suite [11.4R1.6] JUNOS Web Management [11.4R1.6]
{master:0} [email protected]> request system software add /var/tmp/jinstall-ex-4200-10.4R8.5-domestic-signed.tgz unlink reboot Checking pending install on fpc0 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 Removing /var/tmp/jinstall-ex-4200-10.4R8.5-domestic-signed.tgz Rebooting fpc0 *** FINAL System shutdown message from [email protected] *** System going down IMMEDIATELY {master:0} [email protected]> NWaiting (max 60 seconds) for system process `vnlru' to stop...done Waiting (max 60 seconds) for system process `vnlru_mem' 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...6 7 7 7 4 3 3 3 2 0 0 0 0 0 0 done syncing disks... All buffers synced. Uptime: 15m27s recorded reboot as normal shutdown Rebooting... U-Boot 1.1.6 (Mar 26 2011 - 04:42:33) Board: EX4200-24T 2.17 EPLD: Version 6.0 (0x85) DRAM: Initializing (1024 MB) FLASH: 8 MB Firmware Version: --- 01.00.00 --- USB: scanning bus for devices... 2 USB Device(s) found scanning bus for storage devices... 1 Storage Device(s) found ELF file is 32 bit Consoles: U-Boot console FreeBSD/PowerPC U-Boot bootstrap loader, Revision 2.4 ([email protected], Sat Mar 26 02:46:28 PDT 2011) Memory: 1024MB bootsequencing is enabled bootsuccess is set new boot device = disk0s1: cannot open package (error 2) Error: Could not execute command install disk0s3d:///jinstall-ex-4200-10.4R8.5-domestic-signed.tgz. Resetting... U-Boot 1.1.6 (Mar 26 2011 - 04:42:33) Board: EX4200-24T 2.17 EPLD: Version 6.0 (0x85) DRAM: Initializing (1024 MB) FLASH: 8 MB ...snip... Boot media /dev/da0 has dual root support ** /dev/da0s1a FILE SYSTEM CLEAN; SKIPPING CHECKS clean, 11249 free (41 frags, 1401 blocks, 0.0% fragmentation) EX4200-24T-a.cn (ttyu0) login: lab Password: --- JUNOS 12.1B2.5 built 2012-02-18 09:39:27 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. ** ** ** *********************************************************************** {master:0} [email protected]>
The unlink option is a legacy option from Junos for M/T routers. It is not supported on EX. Do not use this command in Junos for EX.
The unlink option was disabled in 11.4R3 and 12.1R2 or later. Refer to PR739795 for more information.