Skip to main content
本繁體中文版使用機器翻譯,譯文僅供參考,若與英文版本牴觸,應以英文版本為準。

自動化StorageGRID 功能組態

貢獻者

部署完網格節點之後、您可以自動化StorageGRID 設定該系統。

您需要的產品
  • 您可以從安裝歸檔中得知下列檔案的位置。

    檔案名稱 說明

    configure-storagegrid.py

    Python指令碼用於自動化組態

    configure-storagegrid.sample.json

    用於指令碼的範例組態檔

    configure-storagegrid.blank.json

    與指令碼搭配使用的空白組態檔

  • 您已建立 configure-storagegrid.json 組態檔。若要建立此檔案、您可以修改範例組態檔 (configure-storagegrid.sample.json)或空白組態檔 (configure-storagegrid.blank.json)。

關於這項工作

您可以使用 configure-storagegrid.py Python指令碼和 configure-storagegrid.json 組態檔、以自動化StorageGRID 您的整個系統組態。

註 您也可以使用Grid Manager或安裝API來設定系統。
步驟
  1. 登入您用來執行Python指令碼的Linux機器。

  2. 切換至您擷取安裝歸檔的目錄。

    例如:

    cd StorageGRID-Webscale-version/platform

    其中 platformdebsrpms`或 `vsphere

  3. 執行Python指令碼並使用您建立的組態檔。

    例如:

    ./configure-storagegrid.py ./configure-storagegrid.json --start-install
結果

恢復套件 .zip 檔案會在組態程序期間產生、並下載至您執行安裝與組態程序的目錄。您必須備份「恢復套件」檔案、以便StorageGRID 在一個或多個網格節點故障時、恢復該系統。例如、將其複製到安全的備份網路位置、以及安全的雲端儲存位置。

重要 必須保護恢復套件檔案、因為其中包含可用於從StorageGRID 該系統取得資料的加密金鑰和密碼。

如果您指定應該產生隨機密碼、則需要擷取 Passwords.txt 歸檔並尋找存取StorageGRID 您的支援系統所需的密碼。

######################################################################
##### The StorageGRID "recovery package" has been downloaded as: #####
#####           ./sgws-recovery-package-994078-rev1.zip          #####
#####   Safeguard this file as it will be needed in case of a    #####
#####                 StorageGRID node recovery.                 #####
######################################################################

系統會在顯示確認訊息時安裝及設定您的系統。StorageGRID

StorageGRID has been configured and installed.