• No results found

Example: Installing Junos OS on SRX Series Devices Using the Partition Option

This example shows how to install Junos OS Release 10.0 or later with the partition option.

Requirements on page 71

Overview on page 71

Configuration on page 72

Verification on page 74

Requirements

Before you begin, back up any important data.

Overview

This example formats the internal media and installs the new Junos OS image on the media with dual-root partitioning. Reinstall the Release 10.0 or later image from the CLI using the request system software add command with the partition option. This copies the image to the device, and then reboots the device for installation. The device boots up with the Release 10.0 or later image installed with the dual-root partitioning scheme.

When the partition option is used, the format and install process is scheduled to run on the next reboot. Therefore, we recommend that this option be used together with the rebootoption.

NOTE: The process might take 15 to 20 minutes. The system is not accessible over the network during this time.

WARNING: Using the partition option with the request system software add command erases the existing contents of the media. Only the current configuration is preserved. You should back up any important data before starting the process.

NOTE:Partition install is supported on the default media on SRX100, SRX210, and SRX240 devices (internal NAND flash) and on SRX650 devices (internal CF card).

Partition install is not supported on the alternate media on SRX100, SRX210, and SRX240 devices (USB storage key) or on SRX650 devices (external CF card or USB storage key).

In this example, add the software package junos-srxsme-10.0R2-domestic.tgz with the following options:

no-copyoption to install the software package but do not save the copies of package files. You should include this option if you do not have enough space on the internal media to perform an upgrade that keeps a copy of the package on the device.

no-validateoption to bypass the compatibility check with the current configuration before installation starts.

partitionoption to format and re-partition the media before installation.

rebootoption to reboots the device after installation is completed.

Configuration

CLI Quick Configuration

To quickly install Junos OS Release 10.0 or later with the partition option, copy the following commands, paste them in a text file, remove any line breaks, and then copy and paste the commands into the CLI.

From operational mode, enter:

user@host>request system software add junos-srxsme-10.0R2-domestic.tgz no-copy no-validate partition reboot

GUI Step-by-Step Procedure

To install Junos OS Release 10.0 or later with the partition option:

1. In the J-Web user interface, select Maintain>Software>Install Package.

2. On the Install Package page, specify the FTP or HTTP server, file path, and software package name. Type the full address of the software package location on the FTP (ftp://hostname/pathname/junos-srxsme-10.0R2-domestic.tgz) or HTTP server (http://hostname/pathname/junos-srxsme-10.0R2-domestic.tgz).

NOTE: Specify the username and password, if the server requires one.

3. Select the Reboot If Required check box to set the device to reboot automatically when the upgrade is complete.

4. Select the Do not save backup check box to bypass saving the backup copy of the current Junos OS package.

5. Select the Format and re-partition the media before installation check box to format the internal media with dual-root partitioning.

6. Click Fetch and Install Package. The software is activated after the device reboots.

This formats the internal media and installs the new Junos OS image on the media with dual-root partitioning.

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.

To install Junos OS Release 10.0 or later with the partition option:

1. Upgrade the device to Junos OS Release 10.0 or later using the CLI.

2. After the device reboots, upgrade the boot loader to the latest version. See Preparing the USB Flash Drive and Upgrading the Boot Loader for SRX Series Devices.

3. Reinstall the Release 10.0 or later image.

user@host>request system software add junos-srxsme-10.0R2-domestic.tgz no-copy no-validate partition reboot

Copying package junos-srxsme-10.0R2-domestic.tgz to var/tmp/install Rebooting ...

Results From configuration mode, confirm your configuration by entering the show system storage partitionscommand. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

Sample output on a system with single root partitioning:

user@host> show system storage partitions Boot Media: internal (da0)

Partitions Information:

Partition Size Mountpoint s1a 898M /

s1e 24M /config s1f 61M /var

Sample output on a system with dual-root partitioning:

user@host> show system storage partitions Boot Media: internal (da0)

Active Partition: da0s2a Backup Partition: da0s1a

Currently booted from: active (da0s2a) Partitions Information:

Partition Size Mountpoint s1a 293M altroot s2a 293M / s3e 24M /config s3f 342M /var s4a 30M recovery

If you are done configuring the device, enter commit from configuration mode.

Verification

Confirm that the configuration is working properly.

Verifying the Partitioning Scheme Details on page 74

Verifying the Partitioning Scheme Details

Purpose Verify that the partitioning scheme details on the SRX Series device were configured.

Action From operational mode, enter the show system storage partitions command.

Related Documentation

Dual-Root Partitioning Scheme on SRX Series Devices on page 97

Reinstalling the Single-Root Partition on SRX Series Devices on page 272

Installation and Upgrade Guide