Upgrading to Release 7.x from
Release 5.xThis chapter explains how to use the JUNOS 7.
xjinstallpackage to upgrade to JUNOS Release 7.x from Release 5.x. After you upgrade to 7.x, you can use thejbundlepackage for subsequent upgrades or downgrades. For technical support, open a support case using the Case Manager link athttp://www.juniper.net/support/or call 1-888-314-JTAC (within the United States) or 1-408-745-9500 (from outside the United States).
To upgrade to or downgrade from JUNOS Release 7.x, follow these steps:
- Download the software packages you need from the Juniper Networks Support Web site,
http://www.juniper.net/support/. Choose either the United States and Canada version or the Worldwide version.
To download the software packages, you must have a service contract and an access account. If you do not have an access account, complete the registration form at the Juniper Networks Web site,https://www.juniper.net/registration/Register.jsp.
- Log in to the Juniper Networks Web site.
- Download the
jinstallpackage to your local host.- Copy the
jinstallpackage to the router. You might want to copy it to the/var/tmpdirectory, which is on the rotating media (hard disk) and is a large file system.user@host>file copy ftp://username:prompt@ftp.hostname.net/filename/var/tmp/filename- Add the
jinstallpackage:user@host>request system software add /var/tmp/jinstall-package-nameNOTICE: Validating configuration against jinstall-package-nameChecking compatibility with configurationInitializing...Using jbase-7.x-package-nameUsing /var/tmp/jinstall-7.x-package-nameVerified MD5 checksum of/var/validate/tmp/jinstall/jinstall-7.x-package-nameUsing/var/validate/tmp/jinstall-signed/jinstall-7.x-package-nameUsing /var/validate/tmp/jinstall/jbundle-7.x-package-nameUsing /var/validate/tmp/jbundle/jbase-7.x-package-nameUsing /var/validate/tmp/jbundle/jkernel-7.x-package-nameUsing /var/validate/tmp/jbundle/jcrypto-7.x-package-nameUsing /var/validate/tmp/jbundle/jpfe-7.x-package-nameUsing /var/validate/tmp/jbundle/jdocs-7.x-package-nameUsing /var/validate/tmp/jbundle/jroute-7.x-package-nameValidating against /config/juniper.confmgd: commit completeValidation succeededInstalling package'/var/tmp/jinstall-7.x-package-name' ...Verified MD5 checksum of jinstall-7.x-package-nameAuto-deleting old jinstall...Deleting saved config files ...Deleting bootstrap installer ...Adding jinstall...WARNING: This package will load JUNOS softwarerelease-number.WARNING: It will save JUNOS configuration files, log files, and SSH keysWARNING: (if configured), but erase all other files and informationWARNING: stored on this machine. This is the pre-installation stageWARNING: and all the software is loaded when you reboot the system.Saving the config files ...Installing the bootstrap installer ...WARNING: A REBOOT IS REQUIRED TO LOAD THIS SOFTWARE CORRECTLY. Use WARNING the 'request system reboot' command when software installation isWARNING: complete. To abort the installation, do not reboot your system,WARNING: instead use the 'request system software delete jinstall'WARNING: command as soon as this operation completes.Saving package file in /var/sw/pkg/jinstall-package-name...Saving state for rollback ...
NOTE: A package is installed only if the Message Digest 5 (MD5) checksum within it matches the MD5 hash recorded in its corresponding
.md5file. (For example,jinstall-7.xR1-export-signed.tgzcontainsjinstall-7.xR1-export.tgzandjinstall-7.xR1-export.tgz.md5. Thejinstall-7.xR1-export.tgzpackagewill only be installed if it matches the MD5 hash recorded injinstall-7.xR1-export.tgz.md5.) For information about packages, see Package Names- Reboot the router to load the JUNOS software:
user@host>request system rebootReboot the system ? [yes,no] (no)yesShutdown NOW!All the software is loaded when you issue the reboot command. Loading the software can take 5 to 10 minutes.
- The router then reboots from the primary boot device on which you just installed the software. When the reboot is complete, the router displays the login prompt.
- Log in and verify the version of software running after the router reboots. Issue the
show log messageorshow versioncommand.- Repartition the hard disk. Issue the
request system partition hard-diskcommand.
NOTE: The hard disk repartitioning happens during the first reboot after you issue the
request system partition hard-diskcommand.
user@host>request system partition hard-diskWARNING: The hard disk is about to be partitioned. The contentsWARNING: of /altroot and /altconfig will be saved and restored.WARNING: All other data is at risk. This is the setup stage, theWARNING: partition happens during the next reboot.Setting up to partition the hard disk ...WARNING: A REBOOT IS REQUIRED TO PARTITION THE HARD DISK. Use theWARNING: 'request system reboot' command when you are ready to proceedWARNING: with the partitioning. To abort the partition of the hard diskWARNING: use the 'request system partition abort' command.user@host>- Reboot the router to repartition the hard disk.
user@host>request system rebootReboot the system ? [yes,no] (no)yesShutdown NOW!
NOTE: To quit the repartition, do not reboot your system; instead, issue the
request system partition abortcommand after therequest system partition hard-diskcommand completes.- After you have upgraded or downgraded the software and are satisfied that the new software is successfully running, issue the
request system snapshotcommand to back up the new software.The
request system snapshotcommand causes the root file system to be backed up to/altroot, and/configto be backed up to/altconfig. The root and/configfile systems are on the router's flash drive, and the/altrootand/altconfigfile systems are on the router's hard disk.