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

自動配置 ONTAP FlexGroup Volume

貢獻者 netapp-barbe netapp-lenida netapp-thomi netapp-dbagwell netapp-aherbin netapp-aaron-holt johnlantz

建立 FlexGroup Volume 時,您可以選擇讓 ONTAP 透過選取基礎本機層(集合體)來自動佈建 FlexGroup Volume 。本機層是根據最佳實務做法來選擇,以達到最佳效能和容量。

開始之前

叢集中的每個節點必須至少有一個本機層。

註

建立將分層儲存非使用中資料的 FlexGroup Volume 時,每個節點必須至少有一個本機層,且已啟用 FabricPool 。

關於這項工作

ONTAP 會選取兩個本機層,每個節點上可用空間最大,以建立 FlexGroup Volume 。如果兩個本機層不可用, ONTAP 會為每個節點選取一個本機層,以建立 FlexGroup Volume 。

從 ONTAP 9.15.1 開始,當您自動配置 FlexGroup Volume 時, ONTAP 會使用平衡放置( BP )來選擇本機層和 FlexGroup 成員(組成) Volume 配置。BP 的一個層面是在建立「無」保證(精簡配置)的 FlexGroup 磁碟區時,它如何限制過度資源配置的本機層。整體 FlexGroup 磁碟區的大小受限於本機層的可用空間量,但限制高於保證「 Volume 」(磁碟區)(完整配置)的 FlexGroup 磁碟區。當您使用 REST API 或 ONTAP CLI 建立 FlexGroup Volume auto-provision-as 時、資源配置可能會因為空間不足而失敗、因為這種限制。您可以建立較小的 FlexGroup 磁碟區、或使用參數來避免這種 "建立 FlexGroup Volume 並手動選取本機層" aggr-list 情況。

步驟
  1. 配置FlexGroup 供應功能:

    volume create -vserver svm_name -volume fg_vol_name –auto-provision-as flexgroup -size fg_size [–encrypt true] [-qos-policy-group qos_policy_group_name] [-support-tiering true] [-granular-data advanced]

    從 ONTAP 9.16.1 開始,您可以 (`-granular-data advanced`在 CLI 中啟用"進階容量平衡"),在檔案大於 10GB 時,在多個 FlexGroup 成員磁碟區中寫入資料。

    從 ONTAP 9.5 開始,您可以在啟用 FabricPool 的本機層上建立 FlexGroup 磁碟區。若要在啟用 FabricPool 的本機層上自動佈建 FlexGroup Volume ,您必須將參數設定 -support-tiering`為 `true。磁碟區保證一律必須設定為 none for FabricPool 。您也可以指定FlexGroup 針對該卷的分層原則和分層最低冷卻期。

    您可以指定 FlexGroup 磁碟區的處理量上限( QoS 上限)。這會限制 FlexGroup 磁碟區所能耗用的效能資源。從ONTAP S得9.4開始、您可以指定處理量層(QoS下限)和適用於FlexGroup 整個過程的調適QoS。

    如果您想要在 FlexGroup 磁碟區上啟用加密,可以將參數設定 -encrypt`為 `true。若要建立加密磁碟區、您必須安裝Volume加密授權和金鑰管理程式。

    註 您必須在FlexGroup 建立時啟用對靜止磁碟區的加密。您無法在現有FlexGroup 的支援資料區啟用加密功能。

    size 參數指定 FlexGroup 磁碟區大小、單位為 KB 、 MB 、 GB 、 TB 或 PB 。

    以下範例說明如何配置大小為 400 TB 的 FlexGroup Volume :

    cluster-1::> volume create -vserver vs0 -volume fg –auto-provision-as flexgroup -size 400TB
    Warning: The FlexGroup "fg" will be created with the following number of constituents of size 25TB: 16.
    The constituents will be created on the following aggregates: aggr1,aggr2
    Do you want to continue? {y|n}: y
    [Job 34] Job succeeded: Successful

    以下範例說明如何建立QoS原則群組、以利處理量上限、以及如何將其套用FlexGroup 至某個流通量:

    cluster1::> qos policy-group create -policy group pg-vs1 -vserver vs1 -max-throughput 5000iops
    cluster-1::> volume create -vserver vs0 -volume fg –auto-provision-as flexgroup -size 400TB -qos-policy-group pg-vs1
    Warning: The FlexGroup "fg" will be created with the following number of constituents of size 25TB: 16.
    The constituents will be created on the following aggregates: aggr1,aggr2
    Do you want to continue? {y|n}: y
    [Job 34] Job succeeded: Successful

    以下範例說明如何在啟用 FabricPool 的本機層上,配置大小為 400 TB 的 FlexGroup Volume :

    cluster-1::> volume create -vserver vs0 -volume fg –auto-provision-as flexgroup -size 400TB -support-tiering true -tiering-policy auto
    Warning: The FlexGroup "fg" will be created with the following number of constituents of size 25TB: 16.
    The constituents will be created on the following aggregates: aggr1,aggr2
    Do you want to continue? {y|n}: y
    [Job 34] Job succeeded: Successful

    FlexGroup 磁碟區是在叢集中的每個節點上建立,每個節點上有八個成員磁碟區。成員磁碟區會在每個節點上兩個最大的本機層之間平均分配。

    根據預設、 FlexGroup Volume 是使用建立的 volume 空間保證設定、 AFF 系統除外。對於 AFF 系統、依預設會使用建立 FlexGroup Volume none 空間保證。

  2. 使用連接路徑掛載 FlexGroup Volume :

    volume mount -vserver vserver_name -volume vol_name -junction-path junction_path

    cluster1::> volume mount -vserver vs0 -volume fg2 -junction-path /fg2
完成後

您應該從FlexGroup 用戶端掛載此功能。

如果您執行ONTAP 的是32位或更早版本的版本、而且儲存虛擬機器(SVM)同時設定了NFSv3和NFSv4、FlexGroup 則從用戶端安裝此支援卷可能會失敗。在這種情況FlexGroup 下、您必須在從用戶端掛載完這個版本時、明確指定NFS版本。

# mount -t nfs -o vers=3 192.53.19.64:/fg2 /mnt/fg2
# ls /mnt/fg2
file1  file2