禁用自动快照 - FSx for ONTAP

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

禁用自动快照

根据ONTAP文件系统中卷的默认快照策略,自动快FSx照是启用的。如果您不需要数据快照(例如,如果您使用的是测试数据),则可以通过将卷的快照策略设置为none使用 AWS Management Console、 AWS CLI 和API、和,来禁用快照 ONTAPCLI,如以下过程所述。

  1. 打开 Amazon FSx 控制台,网址为https://console.aws.amazon.com/fsx/

  2. 导航到 “文件系统”,然后选择要为其更新卷ONTAP的文件系统。

  3. 选择选项卡。

  4. 选择要更新的卷。

  5. 操作中,选择更新卷

    系统将显示更新卷对话框,其中包含该卷的当前设置。

  6. 对于 “快照策略”,选择 “”。

  7. 选择更新即可更新卷。

  • 使用 update-vol um UpdateVolumeAPIe AWS CLI 命令(或等效命令)将设置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. 使用 volume modifyONTAPCLI 命令将卷的快照策略设置为,none以禁用自动快照。用您的数据替换以下占位符值:

    • svm_name — 使用你的SVM名字。

    • 卷名 — 使用您的卷名。

    当系统提示继续操作时,请输入 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.