Linux :在所有主機上下載並安裝 RPM 或 Deb 套件
如果在 Linux 主機上部署了任何 StorageGRID 節點、請在開始升級之前、先在這些主機上下載並安裝額外的 RPM 或 Deb 套件。
下載升級、 Linux 和 Hotfix 檔案
當您從 Grid Manager 執行 StorageGRID 升級時、系統會提示您下載升級歸檔和任何必要的 Hotfix 作為第一步。不過、如果您需要下載檔案來升級 Linux 主機、您可以事先下載所有必要的檔案、以節省時間。
-
選取下載最新版本的按鈕、或從下拉式功能表中選取其他版本、然後選取*執行*。
下列格式的軟件版本:11.x.y。StorageGRID下列格式的更新程式為:11.x.y.z。StorageGRID
-
以您NetApp帳戶的使用者名稱和密碼登入。
-
如果出現「注意」 / 「 MustRead 」通知、請記下 Hotfix 編號、然後選取核取方塊。
-
閱讀終端使用者授權合約( EULA )、選取核取方塊、然後選取 * 接受並繼續 * 。
此時將顯示所選版本的下載頁面。頁面包含三欄。
-
從第二欄( * 升級 StorageGRID * )下載兩個檔案:
-
最新版本的升級歸檔文件(這是標有 * VMware 、 SG1000 或 SG100 主要管理節點 * 的部分中的檔案)。雖然在您執行升級之前不需要此檔案、但現在下載將可節省時間。
-
RPM 或 Deb 歸檔
.tgz
`.zip`格式。如果您在服務筆記型電腦上執行 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
-
-
-
如果您因為需要 Hotfix 而需要同意「注意」 / 「 MustRead 」通知、請下載 Hotfix :
-
從下拉式清單中選取 Hotfix 編號。
-
再次同意「注意」通知和 EULA 。
-
下載並儲存 Hotfix 及其 README 。
當您開始升級時、系統會提示您上傳 StorageGRID 升級頁面上的 Hotfix 檔案。
在所有 Linux 主機上安裝歸檔
在升級 StorageGRID 軟體之前、請先執行這些步驟。
-
從安裝檔案擷取RPM或Dub套件。
-
在所有Linux主機上安裝RPM或Deb套件。
請參閱安裝說明中的 StorageGRID 主機服務安裝步驟:
新的套件會以其他套件的形式安裝。
移除舊版的安裝封存
若要釋放 Linux 主機上的空間、您可以移除不再需要的舊版 StorageGRID 安裝歸檔。
-
移除舊的 StorageGRID 安裝封存。
-
擷取安裝的 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 ~]#
-
移除先前的 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 ~]#
-
擷取已安裝的 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:~#
-
移除先前的 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:~#
-
移除 StorageGRID Container 映像。
-
擷取已安裝的容器映像清單:
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 ~]#
-
移除舊版 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 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 ~]#
-
移除舊版 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 ~]#