Upgrading PICOS from Version 4.0.0 or Later Using Upgrade Command
NOTE:
This document ONLY applies to upgrade from version 4.0.0 or the later version using the upgrade command. If you want to upgrade PICOS from the version before 4.0.0, use ONIE installation process described in Installing PICOS on Bare Metal Switches.
Partitioning
PICOS 4.0.0 have multiple system partitions including PicOS (partition size: 2G), PicOS2 (partition size: 2G) and User-Data partitions. Among them, PicOS and PicOS2 are two independent system boot partitions. One of them is the active partition on which the running system resides, and the other is the inactive partition. The two-system-boot-partition feature allows the system to be reverted to a previous version of the installed software package when it fails to upgrade PICOS.
User-Data partition is a reserved partition which is not affected by ONIE installer and upgrade unless user manually removes it. User-Data partition uses all the available space left on the disk after installation. Users can use this partition to store files and data.
Supported Platforms
PICOS 4.x software requires to run on a high performance device, only the platforms listed in Switch Machine Outline and System Characteristics are supported upgrading to PICOS 4.x.
Preparation before Upgrading
NOTE
If routed interface is configured, before upgrade, make sure that routed interface name and sub-interface name in the configuration file start with the string "rif-". Otherwise, upgrade will fail due to configuration error.
Table 1 Checklist before Upgrading
No. | Checking Items | Checking Standard | Results |
1 | Checking the Running PICOS Version | The currently running system software version is lower than the software version to be installed |
|
2 | Building Upgrade Environment | Build a different upgrade environment according to the need |
|
3 | Getting the Required Upgrade Software | Obtain the required supported upgrade software |
|
4 | Backing up Important Data in Flash | All the important data in Flash is backed up |
|
5 | Checking Available Flash Space | Flash space is enough to save upgrading package and other files |
|
Checking the Running PicOS Version
Use the version command to check the version of the running system software.
admin@Xorplus:~$ version
Copyright (C) 2009-2021 Pica8, Inc.
===================================
Hardware Model : as7312_54x
Linux System Version/Revision : 4.0.0/4b5f523
Linux System Released Date : 4/27/2021
L2/L3 Version/Revision : 4.0.0/4b5f523
L2/L3 Released Date : 4/27/2021
OVS/OF Version/Revision : 4.0.0/4b5f523
OVS/OF Released Date : 4/27/2021Building Upgrade Environment
Please make sure that you have set up an HTTP, TFTP or FTP protocol upgrading environment, the basic requirements are as follows:
PC can log in to the device through serial or SSH.
The communication between the server and the device works well.
The upgrading file used by the device has already been stored on the server.
Getting the Required Upgrade Software
Please contact Pica8 technical support engineers at the following website for the latest version of upgrade software.
https://www.pica8.com/support/
Backing up Important Data in Flash
Before upgrading, save the important data in Flash to the local PC through FTP or TFTP, and then upload it to the switch after the upgrade is completed.
Checking the Available Flash Space
Use the df -h command to check the available flash space for saving the upgrade package.
admin@Xorplus:~$ df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 1.5G 655M 715M 48% /
/dev/root 1.5G 655M 715M 48% /
tmpfs 199M 192K 199M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 10M 0 10M 0% /dev
tmpfs 398M 0 398M 0% /run/shm
tmpfs 50M 50M 0 100% /tmpUpgrading Notes
Downgrade from PICOS version 4.x to 3.x or to a lower version is NOT supported by using upgrade command. You can use ONIE installation when you want to downgrade. For details about ONIE installation, please refer to Installing PICOS on Bare Metal Switches.
License check is performed for upgrade:
You can log in to the switch through its console port or using SSH. After successful login, you can run commands on the command line interface (CLI) to upgrade the device.
When using FTP/TFTP to download the image, user should verify that the "binary" mode is being used. If the "binary" transfer mode is not being used, the image might be modified during download, and the upgrade will fail during the MD5 check.
When upgrading, the installer checks whether there is a user-data partition. If there exists a User-Data partition, the installer only rewrites the running system boot partition (PicOS/ PicOS2) and installs the new installation package to this partition. However, if there is no User-Data partition, the installer removes all the partitions to rebuild a brand new NOS.
All X86 platforms share one installation and upgrade package with the name fixed as: onie-installer-picos-VERSION-x86.bin, where VERSION is the release version. X86 platforms are listed below:
• Edgecore AS4630-54PE
• Edgecore AS5712-54X
• Edgecore AS5812-54T
• Edgecore AS5812-54X
• Edgecore AS7312-54X
• Edgecore AS7326-56X
• Edgecore AS7712-32X
• Edgecore AS7726-32X
• Edgecore AS7816-64X
• Edgecore AS5835-54X
• DELL N3248P-ON
• DELL N3248PXE-ON
• DELL N3224PX-ON
• DELL N3248X-ON
• DELL S4048-ON
• DELL S4148F-ON
• DELL S4148T-ON
• DELL S4128F-ON
• DELL S5224F-ON
• DELL S5296F-ON