Skip to main content
简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。

Linux:在所有主机上下载并安装RPM或DEB软件包

贡献者

如果在Linux主机上部署了任何StorageGRID节点、请在开始升级之前、在每个主机上下载并安装额外的RPM或DEB软件包。

下载升级、Linux和修补程序文件

从网格管理器执行StorageGRID 升级时、系统会提示您首先下载升级归档和任何所需的修补程序。但是、如果您需要下载文件来升级Linux主机、则可以通过提前下载所有必需的文件来节省时间。

步骤
  1. 转到。 "NetApp 下载: StorageGRID"

  2. 选择用于下载最新版本的按钮,或者从下拉菜单中选择其他版本并选择 * 执行 * 。

    StorageGRID 软件版本采用以下格式: 11.x.y 。StorageGRID 修补程序采用以下格式: 11.x.y.z

  3. 使用您的 NetApp 帐户的用户名和密码登录。

  4. 如果出现警告/须知通知,请记下热修补程序编号,然后选中该复选框。

  5. 阅读最终用户许可协议(EUA),选中复选框,然后选择*Accept & Continue*(接受并继续)。

    此时将显示选定版本的下载页面。此页面包含三列。

  6. 从第二列(*升级StorageGRID *)下载两个文件:

    • 最新版本的升级归档文件(这是标记为*vmware、SG1000或SG100主管理节点*的部分中的文件)。虽然在执行升级之前不需要此文件、但现在下载它可以节省时间。

    • 或格式的RPM或 .zip`DEB归档文件 `.tgz。如果您在服务笔记本电脑上运行Windows、请选择此 `.zip`文件。

      • Red Hat Enterprise Linux StorageGRID-Webscale-version-RPM-uniqueID.zip ++ StorageGRID-Webscale-version-RPM-uniqueID.tgz

      • Ubuntu或Debian
        StorageGRID-Webscale-version-DEB-uniqueID.zip StorageGRID-Webscale-version-DEB-uniqueID.tgz

  7. 如果由于需要修补程序而需要同意警告/必须注意的通知,请下载该修补程序:

    1. 返回到 "NetApp 下载: StorageGRID"

    2. 从下拉列表中选择修补程序编号。

    3. 再次同意警告通知和EULA。

    4. 下载并保存修补程序及其自述文件。

      开始升级时、系统将提示您上传StorageGRID 升级页面上的修补程序文件。

在所有Linux主机上安装归档文件

在升级StorageGRID 软件之前、请执行以下步骤。

步骤
  1. 从安装文件中提取 RPM 或 Deb 软件包。

  2. 在所有 Linux 主机上安装 RPM 或 Deb 软件包。

    请参见安装说明中的StorageGRID 主机服务安装步骤:

    新软件包将作为附加软件包进行安装。

删除先前版本的安装归档

要释放Linux主机上的空间、您可以删除不再需要的早期StorageGRID版本的安装归档文件。

步骤
  1. 删除旧的StorageGRID安装归档文件。

Red Hat
  1. 捕获已安装的StorageGRID软件包的列表: dnf list | grep -i storagegrid

    示例:

    [root@rhel-example ~]# dnf list | grep -i storagegrid
    StorageGRID-Webscale-Images-11-6-0.x86_64 11.6.0-20220210.0232.8d56cfe @System
    StorageGRID-Webscale-Images-11-7-0.x86_64 11.7.0-20230424.2238.1a2cf8c @System
    StorageGRID-Webscale-Images-11-8-0.x86_64 11.8.0-20240131.0139.e3e0c87 @System
    StorageGRID-Webscale-Images-11-9-0.x86_64 11.9.0-20240826.1753.4aeeb70 @System
    StorageGRID-Webscale-Service-11-6-0.x86_64 11.6.0-20220210.0232.8d56cfe @System
    StorageGRID-Webscale-Service-11-7-0.x86_64 11.7.0-20230424.2238.1a2cf8c @System
    StorageGRID-Webscale-Service-11-8-0.x86_64 11.8.0-20240131.0139.e3e0c87 @System
    StorageGRID-Webscale-Service-11-9-0.x86_64 11.9.0-20240826.1753.4aeeb70 @System
    [root@rhel-example ~]#
  2. 删除以前的StorageGRID软件包: dnf remove images-package service-package

    注意 请勿删除当前正在运行的StorageGRID版本或计划升级到的StorageGRID版本的安装归档。

    您可以安全地忽略显示的警告。它们是指在安装较新的StorageGRID软件包时已被替换的文件。

    示例:

    [root@rhel-example ~]# dnf remove StorageGRID-Webscale-Images-11-6-0.x86_64 StorageGRID-Webscale-Service-11-6-0.x86_64
    Updating Subscription Management repositories.
    Unable to read consumer identity
    
    This system is not registered with an entitlement server. You can use subscription-manager to register.
    
    Dependencies resolved.
    ============================================================================
    Package            Architecture      Version           Repository  Size
    ============================================================================
    Removing:
    StorageGRID-Webscale-Images-11-6-0 x86_64 11.6.0-20220210.0232.8d56cfe @System 2.7 G
    StorageGRID-Webscale-Service-11-6-0 x86_64 11.6.0-20220210.0232.8d56cfe @System 7.5 M
    
    Transaction Summary
    ============================================================================
    Remove 2 Packages
    
    Freed space: 2.8 G
    Is this ok [y/N]: y
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
      Preparing: 1/1
      Running scriptlet: StorageGRID-Webscale-Service-11-6-0-11.6.0-20220210.0232.8d56cfe.x86_64  1/2
      Erasing: StorageGRID-Webscale-Service-11-6-0-11.6.0-20220210.0232.8d56cfe.x86_64  1/2
    warning: file /usr/lib64/python2.7/site-packages/netapp/storagegrid/vendor/latest/netaddr/strategy/ipv6.pyc: remove failed: No such file or directory
    warning: file /usr/lib64/python2.7/site-packages/netapp/storagegrid/vendor/latest/netaddr/strategy/ipv4.pyc: remove failed: No such file or directory
    warning: file /usr/lib64/python2.7/site-packages/netapp/storagegrid/vendor/latest/netaddr/strategy/eui64.pyc: remove failed: No such file or directory
    warning: file /usr/lib64/python2.7/site-packages/netapp/storagegrid/vendor/latest/netaddr/strategy/eui48.pyc: remove failed: No such file or directory
    warning: file /usr/lib64/python2.7/site-packages/netapp/storagegrid/vendor/latest/netaddr/strategy/__init__.pyc: remove failed: No such file or directory
    warning: file /usr/lib64/python2.7/site-packages/netapp/storagegrid/vendor/latest/netaddr/ip/sets.pyc: remove failed: No such file or directory
    warning: file /usr/lib64/python2.7/site-packages/netapp/storagegrid/vendor/latest/netaddr/ip/rfc1924.pyc: remove failed: No such file or directory
    warning: file /usr/lib64/python2.7/site-packages/netapp/storagegrid/vendor/latest/netaddr/ip/nmap.pyc: remove failed: No such file or directory
    warning: file /usr/lib64/python2.7/site-packages/netapp/storagegrid/vendor/latest/netaddr/ip/iana.pyc: remove failed: No such file or directory
    warning: file /usr/lib64/python2.7/site-packages/netapp/storagegrid/vendor/latest/netaddr/ip/glob.pyc: remove failed: No such file or directory
    warning: file /usr/lib64/python2.7/site-packages/netapp/storagegrid/vendor/latest/netaddr/ip/__init__.pyc: remove failed: No such file or directory
    warning: file /usr/lib64/python2.7/site-packages/netapp/storagegrid/vendor/latest/netaddr/fbsocket.pyc: remove failed: No such file or directory
    warning: file /usr/lib64/python2.7/site-packages/netapp/storagegrid/vendor/latest/netaddr/eui/ieee.pyc: remove failed: No such file or directory
    warning: file /usr/lib64/python2.7/site-packages/netapp/storagegrid/vendor/latest/netaddr/eui/__init__.pyc: remove failed: No such file or directory
    warning: file /usr/lib64/python2.7/site-packages/netapp/storagegrid/vendor/latest/netaddr/core.pyc: remove failed: No such file or directory
    warning: file /usr/lib64/python2.7/site-packages/netapp/storagegrid/vendor/latest/netaddr/contrib/subnet_splitter.pyc: remove failed: No such file or directory
    warning: file /usr/lib64/python2.7/site-packages/netapp/storagegrid/vendor/latest/netaddr/contrib/__init__.pyc: remove failed: No such file or directory
    warning: file /usr/lib64/python2.7/site-packages/netapp/storagegrid/vendor/latest/netaddr/compat.pyc: remove failed: No such file or directory
    warning: file /usr/lib64/python2.7/site-packages/netapp/storagegrid/vendor/latest/netaddr/__init__.pyc: remove failed: No such file or directory
    
      Erasing: StorageGRID-Webscale-Images-11-6-0-11.6.0-20220210.0232.8d56cfe.x86_64   2/2
      Verifying: StorageGRID-Webscale-Images-11-6-0-11.6.0-20220210.0232.8d56cfe.x86_64  1/2
      Verifying: StorageGRID-Webscale-Service-11-6-0-11.6.0-20220210.0232.8d56cfe.x86_64  2/2
    Installed products updated.
    
    Removed:
      StorageGRID-Webscale-Images-11-6-0-11.6.0-20220210.0232.8d56cfe.x86_64
      StorageGRID-Webscale-Service-11-6-0-11.6.0-20220210.0232.8d56cfe.x86_64
    
    Complete!
    [root@rhel-example ~]#
Ubuntu 和 Debian
  1. 捕获已安装的StorageGRID软件包列表: dpkg -l | grep storagegrid

    示例:

    root@debian-example:~# dpkg -l | grep storagegrid
    ii  storagegrid-webscale-images-11-6-0  11.6.0-20220210.0232.8d56cfe amd64 StorageGRID Webscale docker images for 11.6.0
    ii  storagegrid-webscale-images-11-7-0  11.7.0-20230424.2238.1a2cf8c.dev-signed amd64 StorageGRID Webscale docker images for 11.7.0
    ii  storagegrid-webscale-images-11-8-0  11.8.0-20240131.0139.e3e0c87 amd64 StorageGRID Webscale docker images for 11.8.0
    ii  storagegrid-webscale-images-11-9-0  11.9.0-20240826.1753.4aeeb70 amd64 StorageGRID Webscale docker images for 11.9.0
    ii  storagegrid-webscale-service-11-6-0 11.6.0-20220210.0232.8d56cfe amd64 StorageGRID Webscale host services for 11.6.0
    ii  storagegrid-webscale-service-11-7-0 11.7.0-20230424.2238.1a2cf8c amd64 StorageGRID Webscale host services for 11.7.0
    ii  storagegrid-webscale-service-11-8-0 11.8.0-20240131.0139.e3e0c87 amd64 StorageGRID Webscale host services for 11.8.0
    ii  storagegrid-webscale-service-11-9-0 11.9.0-20240826.1753.4aeeb70 amd64 StorageGRID Webscale host services for 11.9.0
    root@debian-example:~#
  2. 删除以前的StorageGRID软件包: dpkg -r images-package service-package

    注意 请勿删除当前正在运行的StorageGRID版本或计划升级到的StorageGRID版本的安装归档。

    示例:

    root@debian-example:~# dpkg -r storagegrid-webscale-service-11-6-0 storagegrid-webscale-images-11-6-0
    (Reading database ... 38190 files and directories currently installed.)
    Removing storagegrid-webscale-service-11-6-0 (11.6.0-20220210.0232.8d56cfe) ...
    locale: Cannot set LC_CTYPE to default locale: No such file or directory
    locale: Cannot set LC_MESSAGES to default locale: No such file or directory
    locale: Cannot set LC_ALL to default locale: No such file or directory
    dpkg: warning: while removing storagegrid-webscale-service-11-6-0, directory '/usr/lib/python2.7/dist-packages/netapp/storagegrid/vendor/latest' not empty so not removed
    Removing storagegrid-webscale-images-11-6-0 (11.6.0-20220210.0232.8d56cfe) ...
    root@debian-example:~#
  1. 删除StorageGRID容器映像。

Docker
  1. 捕获已安装容器映像的列表: docker images

    示例:

    [root@docker-example ~]# docker images
    REPOSITORY           TAG            IMAGE ID       CREATED         SIZE
    storagegrid-11.9.0   Admin_Node     610f2595bcb4   2 days ago      2.77GB
    storagegrid-11.9.0   Storage_Node   7f73d33eb880   2 days ago      2.65GB
    storagegrid-11.9.0   API_Gateway    2f0bb79526e9   2 days ago      1.82GB
    storagegrid-11.8.0   Storage_Node   7125480de71b   7 months ago    2.54GB
    storagegrid-11.8.0   Admin_Node     404e9f1bd173   7 months ago    2.63GB
    storagegrid-11.8.0   Archive_Node   c3294a29697c   7 months ago    2.39GB
    storagegrid-11.8.0   API_Gateway    1f88f24b9098   7 months ago    1.74GB
    storagegrid-11.7.0   Storage_Node   1655350eff6f   16 months ago   2.51GB
    storagegrid-11.7.0   Admin_Node     872258dd0dc8   16 months ago   2.48GB
    storagegrid-11.7.0   Archive_Node   121e7c8b6d3b   16 months ago   2.41GB
    storagegrid-11.7.0   API_Gateway    5b7a26e382de   16 months ago   1.77GB
    storagegrid-11.6.0   Admin_Node     ee39f71a73e1   2 years ago     2.38GB
    storagegrid-11.6.0   Storage_Node   f5ef895dcad0   2 years ago     2.08GB
    storagegrid-11.6.0   Archive_Node   5782de552db0   2 years ago     1.95GB
    storagegrid-11.6.0   API_Gateway    cb480ed37eea   2 years ago     1.35GB
    [root@docker-example ~]#
  2. 删除先前StorageGRID版本的容器映像: docker rmi image id

    注意 请勿删除当前正在运行的StorageGRID版本或计划升级到的StorageGRID版本的容器映像。

    示例:

    [root@docker-example ~]# docker rmi cb480ed37eea
    Untagged: storagegrid-11.6.0:API_Gateway
    Deleted: sha256:cb480ed37eea0ae9cf3522de1dadfbff0075010d89c1c0a2337a3178051ddf02
    Deleted: sha256:5f269aabf15c32c1fe6f36329c304b6c6ecb563d973794b9b59e8e5ab8cccafa
    Deleted: sha256:47c2b2c295a77b312b8db69db58a02d8e09e929e121352bec713fa12dae66bde
    [root@docker-example ~]#
Podman
  1. 捕获已安装容器映像的列表: podman images

    示例:

    [root@podman-example ~]# podman images
    REPOSITORY                    TAG           IMAGE ID      CREATED        SIZE
    localhost/storagegrid-11.8.0  Storage_Node  7125480de71b  7 months ago   2.57 GB
    localhost/storagegrid-11.8.0  Admin_Node    404e9f1bd173  7 months ago   2.67 GB
    localhost/storagegrid-11.8.0  Archive_Node  c3294a29697c  7 months ago   2.42 GB
    localhost/storagegrid-11.8.0  API_Gateway   1f88f24b9098  7 months ago   1.77 GB
    localhost/storagegrid-11.7.0  Storage_Node  1655350eff6f  16 months ago  2.54 GB
    localhost/storagegrid-11.7.0  Admin_Node    872258dd0dc8  16 months ago  2.51 GB
    localhost/storagegrid-11.7.0  Archive_Node  121e7c8b6d3b  16 months ago  2.44 GB
    localhost/storagegrid-11.7.0  API_Gateway   5b7a26e382de  16 months ago  1.8 GB
    localhost/storagegrid-11.6.0  Admin_Node    ee39f71a73e1  2 years ago    2.42 GB
    localhost/storagegrid-11.6.0  Storage_Node  f5ef895dcad0  2 years ago    2.11 GB
    localhost/storagegrid-11.6.0  Archive_Node  5782de552db0  2 years ago    1.98 GB
    localhost/storagegrid-11.6.0  API_Gateway   cb480ed37eea  2 years ago    1.38 GB
    [root@podman-example ~]#
  2. 删除先前StorageGRID版本的容器映像: podman rmi image id

    注意 请勿删除当前正在运行的StorageGRID版本或计划升级到的StorageGRID版本的容器映像。

    示例:

    [root@podman-example ~]# podman rmi f5ef895dcad0
    Untagged: localhost/storagegrid-11.6.0:Storage_Node
    Deleted: f5ef895dcad0d78d0fd21a07dd132d7c7f65f45d80ee7205a4d615494e44cbb7
    [root@podman-example ~]#