This article provides an example explaining the outcome when upgrading Junos OS with the partition option. According to this test there is no need to use the no-copy and unlink option when using the partition option.
partition
no-copy
unlink
For a similar example using the unlink option, see KB32191 - Example - Upgrade Junos OS with unlink option on SRX [juniper.net] .
For a similar example using the no-copy option, see KB32190 - Example - KB32190 - Example - Upgrade Junos OS with no-copy option on SRX [juniper.net] .
Note: The Installation and Upgrade Guide provides an example of the common method to upgrade Junos OS on SRX devices; however, if your installation requires using different options, these examples explain the outcome.
Below is the output when upgrading Junos OS with the partition option, on SRX branch devices.
Junos OS Upgrade With partition Option
Before Upgrade
root@SRX-345-2> show version Hostname: SRX-345-2 Model: srx345 Junos: 15.1X49-D70.3 JUNOS Software Release [15.1X49-D70.3]
root@SRX-345-2> show system snapshot media internal Information for snapshot on internal (/dev/da0s1a) (primary) Creation date: Sep 18 08:35:24 2017 JUNOS version on snapshot: junos : 15.1X49-D70.3-domestic Information for snapshot on internal (/dev/da0s2a) (backup) Creation date: Sep 18 08:56:49 2017 JUNOS version on snapshot: junos : 15.1X49-D70.3-domestic root@SRX-345-2> file list /var/tmp/ /var/tmp/: Test upgrade with partition <<<<<<<< Test file created show that file is deleted after install appidd_trace_debug cleanup-pkgs.log eedebug_bin_file gksdchk.log gres-tp/ idp_license_info install/ kmdchk.log krt_rpf_filter.txt nsd_restart phone-home/ pics/ policy_status rtsdb/ sd-upgrade/ sec-download/ spu_kmd_init vi.recover/ vpn_tunnel-_orig.id vpn_tunnel_orig.id root@SRX-345-2> file list /var/tmp/install/ /var/tmp/install/: junos-srxsme-15.1X49-D110.4-domestic.tgz <<<<<<Install package</span> root@SRX-345-2> file list /var/sw/pkg/ /var/sw/pkg/: upgrade Junos with partition option/ <<<<<<<<Test folder</span>
root@SRX-345-2> root@SRX-345-2> request system software add no-validate partition /var/tmp/install/junos-srxsme-15.1X49-D110.4-domestic.tgz Checking for free space on /var/tmp/install Copying package /var/tmp/install/junos-srxsme-15.1X49-D110.4-domestic.tgz to /var/tmp/install Checking for basic sanity of copied package WARNING: Installation with partition option will take several minutes to complete WARNING: Please do not power-cycle the system till the installation is over WARNING: A reboot is required to install the software WARNING: Use the 'request system reboot' command immediately
After upgrade
root@SRX-345-2> show version Model: srx345 Junos: 15.1X49-D110.4 JUNOS Software Release [15.1X49-D110.4] root@SRX-345-2> show system snapshot media internal Information for snapshot on internal (/dev/da0s1a) (primary) Creation date: Sep 19 02:31:19 2017 JUNOS version on snapshot: junos : 15.1X49-D110.4-domestic Information for snapshot on internal (/dev/da0s2a) (backup) Creation date: Sep 19 02:29:41 2017 JUNOS version on snapshot: junos : 15.1X49-D110.4-domestic
In the output below, note that the test file "Test upgrade with partition" was deleted, so there is no need to use no-copy and unlink option.
root@SRX-345-2> file list /var/tmp/ /var/tmp/: appidd_trace_debug cleanup-pkgs.log eedebug_bin_file gksdchk.log gres-tp/ idp_license_info install/ kmdchk.log krt_rpf_filter.txt nsd_restart phone-home/ pics/ policy_status rtsdb/ sd-upgrade/ sec-download/ spu_kmd_init vi.recover/ vpn_tunnel_orig.id root@SRX-345-2>
In the output below, note that the install package was deleted.
root@SRX-345-2> file list /var/tmp/install/ /var/tmp/install/: root@SRX-345-2>
In the output below, note that the test folder "upgrade Junos with partition option" was deleted.
root@SRX-345-2> file list /var/sw/pkg/ /var/sw/pkg/: root@SRX-345-2>