升级 NFX250 下一代和 NFX350 设备上的双磁盘分区
您可以使用以下命令升级 NFX250 NextGen 和 NFX350 设备上的磁盘分区:
-
命令
request vmhost software add package-name
。 -
命令
request system software add clean-install package-name
。 -
命令
request system zeroize
。 -
USB 映像安装方法。
升级磁盘分区 在 NFX350 设备上使用请求 vmhost 软件添加 package-name 命令
使用此方法升级磁盘时,设备将保留所有配置和日志信息。
要使用命令升级磁盘分区request vmhost software add package-name
:
-
验证磁盘的初始状态。
user@host> show vmhost version detail Partition set : primary Software version : 21.4I-20220531.0.1918 Host kernel release : 4.1.27-rt30-WR8.0.0.34_ovp Host kernel version : #1 SMP Mon Nov 29 03:34:19 PST 2021 Partition set : primary Software version : 21.4I-20220531.0.1918 Installed/Upgraded at : Thu Jun 2 05:09:21 PDT 2022 Status : Boot success Partition set : alternate Software version : 22.3I20220517_0906 Installed/Upgraded at : Wed May 18 21:45:46 PDT 2022 Status : Boot success Partition set : second primary Software version : 20.4R3.8 Installed/Upgraded at : Fri Jan 7 00:50:58 PST 2022 Status : Factory installation setup complete, ready for boot Partition set : second alternate Software version : 20.4R3.8 Installed/Upgraded at : Fri Jan 7 00:51:01 PST 2022 Status : Factory installation setup complete, ready for boot
-
使用支持双磁盘升级的 Junos OS 映像版本升级设备。
当系统提示重新启动时,键入
Yes
。user@host> request vmhost software add /var/public/jinstall-host-nfx-3-x86-64-21.4R2.8-secure-signed.tgz
-
设备重新启动后,验证磁盘分区的状态。输出显示磁盘 1 的备用分区上的映像已升级。备用分区现在是活动分区。
user@host> show vmhost version detail Partition set : alternate Software version : 21.4R2.8 Host kernel release : 4.1.27-rt30-WR8.0.0.34_ovp Host kernel version : #1 SMP Tue Feb 22 01:50:05 PST 2022 Partition set : primary Software version : 21.4I-20220531.0.1918 Installed/Upgraded at : Thu Jun 2 05:09:21 PDT 2022 Status : Boot success Partition set : alternate Software version : 21.4R2.8 Installed/Upgraded at : Sun Jul 3 22:38:50 PDT 2022 Status : Boot success Partition set : second primary Software version : 20.4R3.8 Installed/Upgraded at : Fri Jan 7 00:50:58 PST 2022 Status : Factory installation setup complete, ready for boot Partition set : second alternate Software version : 20.4R3.8 Installed/Upgraded at : Fri Jan 7 00:51:01 PST 2022 Status : Factory installation setup complete, ready for boot
-
再次升级设备以升级磁盘 1 的主分区。
当系统提示重新启动时,键入
Yes
。user@host> request vmhost software add /var/public/jinstall-host-nfx-3-x86-64-21.4R2.8-secure-signed.tgz
-
设备重新启动后,验证磁盘分区的状态。输出显示磁盘 1 的主分区上的映像已升级。磁盘 1 上的主分区和备用分区都运行相同的映像。请注意,主分区现在是活动分区。
user@host> show vmhost version detail Partition set : primary Software version : 21.4R2.8 Host kernel release : 4.1.27-rt30-WR8.0.0.34_ovp Host kernel version : #1 SMP Tue Feb 22 01:50:05 PST 2022 Partition set : primary Software version : 21.4R2.8 Installed/Upgraded at : Mon Jul 4 00:02:33 PDT 2022 Status : Boot success Partition set : alternate Software version : 21.4R2.8 Installed/Upgraded at : Sun Jul 3 22:38:50 PDT 2022 Status : Boot success Partition set : second primary Software version : 20.4R3.8 Installed/Upgraded at : Fri Jan 7 00:50:58 PST 2022 Status : Factory installation setup complete, ready for boot Partition set : second alternate Software version : 20.4R3.8 Installed/Upgraded at : Fri Jan 7 00:51:01 PST 2022 Status : Factory installation setup complete, ready for boot
-
要升级辅助磁盘,请切换到磁盘 2 的主分区。
注意:从磁盘 1 切换到磁盘 2 之前,请确保磁盘 2 上提供了所需的基本配置(如管理连接)。
user@host> request vmhost reboot disk2 primary
-
设备重新启动后,验证磁盘分区的状态。
user@host> show vmhost version detail Partition set : second primary Software version : 20.4R3.8 Host kernel release : 4.1.27-rt30-WR8.0.0.32_ovp Host kernel version : #1 SMP Thu Jul 8 23:25:47 PDT 2021 Partition set : primary Software version : 21.4R2.8 Installed/Upgraded at : Mon Jul 4 07:02:33 UTC 2022 Status : Boot success Partition set : alternate Software version : 21.4R2.8 Installed/Upgraded at : Mon Jul 4 07:51:48 UTC 2022 Status : Boot success Partition set : second primary Software version : 20.4R3.8 Installed/Upgraded at : Fri Jan 7 08:50:58 UTC 2022 Status : Boot success Partition set : second alternate Software version : 20.4R3.8 Installed/Upgraded at : Fri Jan 7 08:51:01 UTC 2022 Status : Factory installation setup complete, ready for boot
-
使用支持双磁盘升级的 Junos OS 映像版本升级设备。
user@host> request vmhost software add /var/public/jinstall-host-nfx-3-x86-64-21.4R2.8-secure-signed.tgz
-
升级后验证磁盘分区的状态。输出显示磁盘 2 的备用分区上的映像已升级。磁盘 2 的备用分区现在是活动分区。
user@host> show vmhost version detail Partition set : second alternate Software version : 21.4R2.8 Host kernel release : 4.1.27-rt30-WR8.0.0.34_ovp Host kernel version : #1 SMP Tue Feb 22 01:50:05 PST 2022 Partition set : primary Software version : 21.4R2.8 Installed/Upgraded at : Mon Jul 4 07:02:33 UTC 2022 Status : Boot success Partition set : alternate Software version : 21.4R2.8 Installed/Upgraded at : Mon Jul 4 07:51:48 UTC 2022 Status : Boot success Partition set : second primary Software version : 20.4R3.8 Installed/Upgraded at : Fri Jan 7 08:50:58 UTC 2022 Status : Boot success Partition set : second alternate Software version : 21.4R2.8 Installed/Upgraded at : Mon Jul 4 10:21:55 UTC 2022 Status : Boot success
-
升级磁盘 2 上的主分区。
user@host> request vmhost software add /var/public/jinstall-host-nfx-3-x86-64-21.4R2.8-secure-signed.tgz
-
升级后验证磁盘分区的状态。输出显示磁盘 2 的主分区上的映像已升级。磁盘 2 上的主分区和备用分区都运行相同的映像。磁盘 2 上的主分区现在是活动分区。
user@host> show vmhost version detail Partition set : second primary Software version : 21.4R2.8 Host kernel release : 4.1.27-rt30-WR8.0.0.34_ovp Host kernel version : #1 SMP Tue Feb 22 01:50:05 PST 2022 Partition set : primary Software version : 21.4R2.8 Installed/Upgraded at : Mon Jul 4 07:02:33 UTC 2022 Status : Boot success Partition set : alternate Software version : 21.4R2.8 Installed/Upgraded at : Mon Jul 4 07:51:48 UTC 2022 Status : Boot success Partition set : second primary Software version : 21.4R2.8 Installed/Upgraded at : Mon Jul 4 11:00:05 UTC 2022 Status : Boot success Partition set : second alternate Software version : 21.4R2.8 Installed/Upgraded at : Mon Jul 4 10:21:55 UTC 2022 Status : Boot success
升级磁盘分区 使用 vmhost 软件添加 package-name 请求在 NFX250 下一代设备上添加命令
使用此方法升级磁盘时,设备将保留所有配置和日志信息。
要使用命令升级磁盘分区request vmhost software add package-name
:
-
使用 Junos OS 映像版本升级设备,该版本支持使用命令进行
request vmhost software add package-name
双磁盘升级。当系统提示重新启动时,键入
Yes
。user@host> request vmhost software add /var/public/jinstall-host-nfx-3-x86-64-22.3I-20220428_dev_common.0.0158-secure-signed.tgz
-
验证磁盘的状态。输出显示备用分区上的映像已升级。备用分区现在是活动分区。
user@host> show vmhost version detail Partition set : alternate Software version : 22.3I-20220428_dev_common.0.0158 Host kernel release : 4.1.27-rt30-WR8.0.0.34_ovp Host kernel version : #1 SMP Sun Apr 24 23:33:52 PDT 2022 Partition set : primary Software version : 21.1R3.11 Installed/Upgraded at : Wed Dec 22 02:13:33 PST 2021 Status : Boot success Partition set : alternate Software version : 22.3I-20220428_dev_common.0.0158 Installed/Upgraded at : Thu Apr 28 20:47:21 PDT 2022 Status : Boot success
-
再次升级设备以升级主分区。
当系统提示重新启动时,键入
Yes
。user@host> request vmhost software add /var/public/jinstall-host-nfx-3-x86-64-22.3I-20220428_dev_common.0.0158-secure-signed.tgz
-
重新启动后,验证磁盘分区的状态。输出显示主分区上的映像已升级。主分区和备用分区现在运行相同的映像,请注意,主分区现在是活动分区。
user@host> show vmhost version detail Partition set : primary Software version : 22.3I-20220428_dev_common.0.0158 Host kernel release : 4.1.27-rt30-WR8.0.0.34_ovp Host kernel version : #1 SMP Sun Apr 24 23:33:52 PDT 2022 Partition set : primary Software version : 22.3I-20220428_dev_common.0.0158 Installed/Upgraded at : Wed Jul 13 23:56:23 PDT 2022 Status : Boot success Partition set : alternate Software version : 22.3I-20220428_dev_common.0.0158 Installed/Upgraded at : Thu Apr 28 20:47:21 PDT 2022 Status : Boot success
使用 clean-install 命令升级磁盘分区
此升级方法重置所有日志和配置信息,并在所有磁盘分区上加载指定的映像。
要使用命令升级磁盘分区 clean-install
:
-
验证磁盘的初始状态。
user@host> show vmhost version detail Partition set : primary Software version : 21.4R2.8 Host kernel release : 4.1.27-rt30-WR8.0.0.34_ovp Host kernel version : #1 SMP Tue Feb 22 01:50:05 PST 2022 Partition set : primary Software version : 21.4R2.8 Installed/Upgraded at : Mon Jul 4 00:02:33 PDT 2022 Status : Boot success Partition set : alternate Software version : 21.4R2.8 Installed/Upgraded at : Mon Jul 4 00:51:48 PDT 2022 Status : Boot success Partition set : second primary Software version : 21.4R2.8 Installed/Upgraded at : Mon Jul 4 04:00:05 PDT 2022 Status : Boot success Partition set : second alternate Software version : 21.4R2.8 Installed/Upgraded at : Mon Jul 4 03:21:55 PDT 2022 Status : Boot success
-
使用
clean-install
命令升级设备。user@host> request vmhost software add /var/public/jinstall-host-nfx-3-x86-64-21.4I-20220531.0.1918-secure-signed.tgz clean-install
-
升级后验证磁盘详细信息。输出显示所有磁盘分区上的映像都已升级。
user@host> show vmhost version detail Partition set : primary Software version : 21.4I-20220531.0.1918 Host kernel release : 4.1.27-rt30-WR8.0.0.34_ovp Host kernel version : #1 SMP Mon Nov 29 03:34:19 PST 2021 Partition set : primary Software version : 21.4I-20220531.0.1918 Installed/Upgraded at : Tue Jul 5 04:10:39 UTC 2022 Status : Boot success Partition set : alternate Software version : 21.4I-20220531.0.1918 Installed/Upgraded at : Tue Jul 5 04:16:37 UTC 2022 Status : Factory installation setup complete, ready for boot Partition set : second primary Software version : 21.4I-20220531.0.1918 Installed/Upgraded at : Tue Jul 5 04:17:27 UTC 2022 Status : Factory installation setup complete, ready for boot Partition set : second alternate Software version : 21.4I-20220531.0.1918 Installed/Upgraded at : Tue Jul 5 04:17:24 UTC 2022 Status : Factory installation setup complete, ready for boot
使用 request system zeroize 命令升级磁盘分区
此升级方法重置所有日志和配置信息,并将当前活动分区上运行的映像加载到所有其他磁盘分区上。
要升级磁盘分区:
- 删除路由引擎上的所有配置信息并重置所有键值。
user@host> request system zeroize
-
验证磁盘详细信息。输出显示所有磁盘分区上的映像都已升级。
user@host> show vmhost version detail Partition set : primary Software version : 21.4R2.8 Host kernel release : 4.1.27-rt30-WR8.0.0.34_ovp Host kernel version : #1 SMP Tue Feb 22 01:50:05 PST 2022 Partition set : primary Software version : 21.4R2.8 Installed/Upgraded at : Mon Jul 4 00:02:33 PDT 2022 Status : Boot success Partition set : alternate Software version : 21.4R2.8 Installed/Upgraded at : Mon Jul 4 00:51:48 PDT 2022 Status : Boot success Partition set : second primary Software version : 21.4R2.8 Installed/Upgraded at : Mon Jul 4 04:00:05 PDT 2022 Status : Boot success Partition set : second alternate Software version : 21.4R2.8 Installed/Upgraded at : Mon Jul 4 03:21:55 PDT 2022 Status : Boot success
使用 USB 升级磁盘分区
有关使用 USB 升级磁盘分区的信息,请参阅 KB31834。