本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
停用自動快照
FSx for ONTAP 檔案系統中磁碟區的預設快照政策會啟用自動快照。如果您不需要資料的快照 (例如,如果您使用的是測試資料),您可以將磁碟區的快照政策設定為使用 、 API 和 CLI 來停用快照,如下列程序所述。 none
AWS Management Console AWS CLI ONTAP
在 https://console.aws.amazon.com/fsx/
:// 開啟 Amazon FSx 主控台。 -
導覽至檔案系統,然後選擇您要更新磁碟區的 ONTAP 檔案系統。
-
選擇磁碟區索引標籤。
-
選擇您要更新的磁碟區。
-
針對動作,選擇更新磁碟區。
更新磁碟區對話方塊會顯示磁碟區目前的設定。
-
針對快照政策,選擇無。
-
選擇更新以更新磁碟區。
-
使用 update-volume AWS CLI 命令 (或同等的 UpdateVolume API 命令),將 設定為
SnapshotPolicy
none
,如下列範例所示。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
預設政策來關閉自動快照。
使用
volume snapshot policy show
ONTAP CLI 命令來顯示 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 ---------------------- ----- ---------------------- ------------------- - - - -
-
使用
volume modify
ONTAP ClI 命令將磁碟區的快照政策設定為 none
,以停用自動快照。將下列預留位置值取代為您的資料:-
— 使用 SVM 的名稱。svm_name
— 使用磁碟區的名稱。vol_name
出現繼續提示時,輸入
y
。::>
volume modify -vserver
svm_name
-volumevol_name
-snapshot-policy noneWarning: 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 volumevol_name
of Vserversvm_name
. -