本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
將 AWS ParallelCluster 受管儲存轉換為外部儲存
瞭解如何將 AWS ParallelCluster 受管儲存轉換為外部儲存裝置。
這些程序以下列範例組態檔案片段為基礎。
... - MountDir: /fsx Name: fsx StorageType: FsxLustre FsxLustreSettings: StorageCapacity: 1200 DeletionPolicy: Delete ...
將 AWS ParallelCluster 受管儲存轉換為外部儲存
-
在叢集配置檔案
Retain
中DeletionPolicy
將設定為。... - MountDir: /fsx Name: fsx StorageType: FsxLustre FsxLustreSettings: StorageCapacity: 1200 DeletionPolicy: Retain ...
-
若要設定
DeletionPolicy
變更,請執行下列命令。pcluster update-cluster -n
cluster-name
-ccluster-config.yaml
-
從叢集配置檔移除
SharedStorage
段落。... ...
-
若要將受管理的外部變更
SharedStorage
為外部SharedStorage
並將其從叢集中斷連結,請執行下列命令。pcluster update-cluster -n
cluster-name
-ccluster-config.yaml
-
您的共用儲存裝置現在是外部的,而且已從叢集中分離。
-
若要將外部檔案系統附加至原始叢集或其他叢集,請依照下列步驟執行。
-
取得 Lustre 檔案系統識別碼的 FSx。
-
若要使用 AWS CLI 執行下列命令,尋找名稱包含原始叢集名稱的檔案系統,並記下檔案系統 ID。
aws fsx describe-file-systems
-
若要使用 AWS Management Console,請登入並瀏覽至 https://console.aws.amazon.com/fsx/
。在檔案系統清單中,尋找名稱包含原始叢集名稱的檔案系統,並記下檔案系統 ID。
-
-
更新檔案系統安全性群組規則,以提供檔案系統和叢集子網路的存取權。您可以在 Amazon FSx 主控台中找到檔案系統安全群組名稱和 ID。
將規則新增至檔案系統安全性群組,該群組允許來自頭節點和運算節點 IP CIDR 範圍或首碼的輸入和輸出 TCP 流量。指定輸入和輸出 TCP 流量的通訊埠 988、1021、1022 及 1023。
如需詳細資訊,請參閱第 2 版AWS Command Line Interface 使用者指南中的 SharedStorageFsxLustreSettings//FileSystemId和建立、設定和刪除 Amazon EC2 的安全群組。
-
將
SharedStorage
區段新增至叢集配置。... - MountDir: /fsx Name: fsx-external StorageType: FsxLustre FsxLustreSettings: FileSystemId: fs-02e5b4b4abd62d51c ...
-
若要將外部共用儲存裝置新增至叢集,請執行下列命令。
pcluster update-cluster -n
cluster-name
-ccluster-config.yaml
-