更新设备软件

如果您订购的是支持在线转移的设备,则可以更新 Transfer Appliance 软件。

开始之前,请按照相关说明准备服务账号密钥,以便进行在线转移。

更新软件会同时重新开始在线传输。

运行 ta update 以更新下列软件:

  • 操作系统
  • 二进制文件
  • Docker 容器

您可以通过将相应的标志传递给 ta update 来单独更新每个项:

ta update --os --binaries --containers

成功的响应如以下示例所示。


Updating containers on the appliance...
This may take several minutes to finish...

Online containers are updated successfully on the appliance.
Updating binaries on the appliance...
This may take several minutes to finish...

Binaries are updated successfully on the appliance.
Updating Operating System on the appliance...
This may take several minutes to finish…

Operating System was updated successfully.
Appliance will now reboot in a minute.
The boot up process after reboot may take several minutes.

如果未启用在线转移,系统会返回以下示例响应:


Appliance is not configured for online mode, thus not updating online containers.
Updating binaries on the appliance...
This may take several minutes to finish...

Binaries are updated successfully on the appliance.
Updating Operating System on the appliance...
This may take several minutes to finish…

Operating System was updated successfully.
Appliance will now reboot in a minute.
The boot up process after reboot may take several minutes.

操作系统回滚

如果更新后的操作系统存在问题,您可以选择回滚操作系统。通过操作系统回滚,您可以将设备的操作系统从更新后的操作系统回滚到更新前的操作系统。

  • 若要回滚操作系统,必须先进行操作系统更新。
  • 若要回滚操作系统,当前操作系统的版本必须高于上一个操作系统的版本。
  • 对于每项操作系统更新,只能回滚一次操作系统。

您可以通过运行以下命令执行操作系统回滚:

ta os rollback

成功响应如下例所示。


Operating System was rollbacked successfully.

Appliance will now reboot in a minute.

The boot up process after reboot may take several minutes.

Please do not run any additional commands until the appliance has finished rebooting