...
Table of Contents |
---|
Introduction
NOTE:
...
Table of Contents |
---|
Introduction
NOTE:
|
...
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 an 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 was backed up. | |||||
5 | Checking if PicOS2 Partition Exist | The PicOS2 Partition exists. | 6 | Checking the Partition Type | The type of partition is GPTConverting Configuration to 4.x before Upgrade (when Upgrade from Version 3.x to 4.x) | 4.x configuration is generated from 3.x configuration file. |
Checking the Running PICOS Version
Use the version command to check the version of the running system software.
...
Please contact Pica8 technical support engineers at the following webpage 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 if PicOS2 Partition Exists
Use the blkid command to check if the “PicOS2” partition exists. To use upgrade2 command to upgrade NOS, you should make sure there is a “PicOS2” partition.
Code Block |
---|
admin@Xorplus:~$ sudo blkid
/dev/sdb2: LABEL="ONIE-BOOT" UUID="5c078d7e-03e8-49d7-a8ba-30107705c6b8" TYPE="ext4" PTTYPE="dos" PARTLABEL="ONIE-BOOT" PARTUUID="2be1af76-4ac4-43a6-ac60-6ac329772e74"
/dev/sdb3: LABEL="ACCTON-DIAG" UUID="d396322d-cfe9-4237-b21c-c1f12bc8cd1c" TYPE="ext4" PARTLABEL="ACCTON-DIAG" PARTUUID="57cb55ac-6f75-4732-aef0-867321a1c543"
/dev/sdb4: LABEL="PICOS-GRUB" UUID="680755b3-1847-47c0-85e8-20a11f230566" SEC_TYPE="ext2" TYPE="ext3" PARTLABEL="PICOS" PARTUUID="42ecb9ab-cbf9-49e1-b270-02f79670cb14"
/dev/sdb5: LABEL="PicOS" UUID="fae08336-9fa7-44ce-a5f4-ce546827ba11" TYPE="ext3" PARTLABEL="PICOS" PARTUUID="c9de9dac-4f8d-4517-8693-341431791009"
/dev/sdb6: LABEL="PicOS2" UUID="2e895a40-26c0-45d8-a343-e1154a63bdac" SEC_TYPE="ext2" TYPE="ext3" PARTLABEL="PICOS" PARTUUID="58731f03-936c-474e-bbcb-19448916f668"
/dev/sdb7: LABEL="User-Data" UUID="cf0db736-6bbd-464a-90f2-2cd1f7a4aa5e" TYPE="ext3" PARTLABEL="Linux filesystem" PARTUUID="73d48df0-9448-4dfe-b393-1369593fc686"
/dev/sdb1: PARTLABEL="GRUB-BOOT" PARTUUID="505671c7-6204-4c11-8c55-b5e3568ba4bf" |
Checking the Partition Type
Use the gdisk command to check the partition type. When using upgrade2 to upgrade the switch, you should make sure the type of partition is GPT.
Code Block |
---|
admin@Xorplus:~$ sudo gdisk /dev/sda
GPT gdisk (fdisk) version 0.3.5
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present |
version of upgrade software.
https://www.pica8.com/support/
Backing up Important Data
Before upgrading, save the important data, e.g. the configuration file, to the local PC through FTP or TFTP, and then upload it to the switch after the upgrade is completed if needed.
Anchor convert config convert config
Converting Configuration to 4.x before Upgrade (when Upgrade from Version 3.x to 4.x)
convert config | |
convert config |
Info | ||
---|---|---|
| ||
When upgrade PICOS from version 3.x to 4.x:
|
You can not cannot do a standard upgrade from 3.x to 4.x. This is because 3.x configuration and 4.x configuration are not compatible, and PICOS 4.x will not be able to boot with 3.x configuration after the upgrade.
In order to upgrade from 3.x to 4.x, follow the procedure below to prepare the 4.x configuration file before upgrade:
- Create directory /pica/config-4.x/.
- Contact Pica8 support to convert the 3.x configuration to 4.x configuration in configuration file pica_startup.boot.
- Copy the 4.x configuration file (converted from 3.x configuration file in step 2) into the directory /pica/config-4.x just created. After upgrading from 3.x to 4.x and after rebooting, PICOS 4.x will look for the 4.x configuration in /pica/config-4.x.
...
admin@Xorplus:~$ sudo upgrade2 USAGE Upgrade system with local new image SYNOPSIS upgrade2 [image_name] [factory-default] [use-prev-config] [backup-file=(*.lst)] DESCRIPTION image_name - Image with bin format file(*.bin) factory-default - Recovery configuration to factory default use-prev-config - Use previous config, and syslog trace backup-file=(*.lst) - Specify a user defined backup list |
For PICOS go2cli version, users can run the upgrade2 command under CLI operational mode or configuration mode:
Code Block |
---|
admin@Xorplus> upgrade2 image-file xx.bin Possible completions: <[Enter]> Execute this command backup-file Specify a user defined backup list(*.lst) factory-default Recovery configuration to factory default use-prev-config Use previous configuration, and syslog trace admin@Xorplus# run upgrade2 image-file xx.bin Possible completions: <[Enter]> Execute this command backup-file Specify a user defined backup list(*.lst) factory-default Recovery configuration to factory default use-prev-config Use previous configuration, and syslog trace |
...
Info | ||
---|---|---|
| ||
admin@Xorplus:~$ sudo ip vrf exec mgmt-vrf scp pica8@10.10.50.22:/tftp/build/4.0.1/as7312_54x/onie-installer-picos-as7312_54x-4.0.1-cc8d268.bin /cftmp admin@Xorplus:~$sudo ip vrf exec mgmt-vrf scp pica8@10.10.50.22:/tftp/build/4.0.1/as7312_54x/onie-installer-picos-as7312_54x-4.0.1-cc8d268.bin.md5 /cftmp If sudo ip vrf exec mgmt-vrf is not added, find the next hop routing information from the default VRF. For the usage of VRF, refer to the VRF Configuration Guide.
Φ Download a file: file scp get remote-file <remote-file-path> [local-file local-file-path] ip-address <ip-address>:<port> [vrf <mgmt-vrf | vrf-name>] Φ Upload a file: file scp put local-file <local-file-path> [remote-file <remote-file-path>] ip-address <ip-address>:<port> [vrf <mgmt-vrf | vrf-name>] |
...
After finishing upgrade, the switch will reboot automatically, the system will come up running the new network operating system.
NOTE:
|
...