停用自動快照 - FSx for OnTAP

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

停用自動快照

自動快照會根據預設的快照原則為您的 FSx for ONTAP 檔案系統中的磁碟區啟用。如果您不需要資料的快照 (例如,如果您使用的是測試資料),可以透過將磁碟區的快照政策設定為none使用 AWS Management Console、 AWS CLI 和 API 和 ONTAP CLI 來停用快照,如下列程序所述。

  1. 開啟 Amazon FSx 主控台,網址為 https://console.aws.amazon.com/fsx/

  2. 瀏覽至檔案系統,然後選擇您要更新磁碟區的 ONTAP 檔案系統。

  3. 選擇磁碟區索引標籤。

  4. 選擇您要更新的磁碟區。

  5. 針對「動作」,選擇「更新磁碟區

    隨即顯示磁碟區目前設定的「更新磁碟區」對話方塊。

  6. 針對 [快照] 原則,選擇 []。

  7. 選擇 [更新] 以更新磁碟區。

  • 使用更新磁碟區 AWS CLI 命令 (或等效的 UpdateVolumeAPI 命令) 將設定SnapshotPolicynone,如下列範例所示。

    aws fsx update-volume \ --volume-id fsvol-1234567890abcdefa \ --name new_vol \ --ontap-configuration CopyTagsToBackups=true,JunctionPath=/new_vol, \ SizeInMegabytes=2048,SnapshotPolicy=none, \ StorageEfficiencyEnabled=true, \ TieringPolicy=all

將磁碟區的快照政策設定為使用none預設原則來關閉自動快照。

  1. 使用 volume snapshot policy showONTAPCLI 命令顯示none原則。

    ::> snapshot policy show -policy none Vserver: FsxIdabcdef01234567892 Number of Is Policy Name Schedules Enabled Comment ------------------------ --------- ------- ---------------------------------- none 0 false Policy for no automatic snapshots. Schedule Count Prefix SnapMirror Label ---------------------- ----- ---------------------- ------------------- - - - -
  2. 使用 ClI 命volume modifyONTAP令將磁碟區的快照原則設定none為停用自動快照。以您的資料取代下列預留位置值:

    • svm_name— 使用您的 SVM 的名稱。

    • vol_name— 使用您的卷的名稱。

    當系統提示您繼續時,請輸入y

    ::> volume modify -vserver svm_name -volume vol_name -snapshot-policy none Warning: You are changing the Snapshot policy on volume "vol_name" to "none". Snapshot copies on this volume that do not match any of the prefixes of the new Snapshot policy will not be deleted. However, when the new Snapshot policy takes effect, depending on the new retention count, any existing Snapshot copies that continue to use the same prefixes might be deleted. See the 'volume modify' man page for more information. Do you want to continue? {y|n}: y Volume modify successful on volume vol_name of Vserver svm_name.