禁用自动快照 - FSx for ONTAP
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

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

禁用自动快照

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

  1. 通过以下网址打开 Amazon FSx 控制台:https://console.aws.amazon.com/fsx/

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

  3. 选择选项卡。

  4. 选择要更新的卷。

  5. 操作中,选择更新卷

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

  6. 对于快照策略,请选择

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

  • 使用 update- Amazon vol ume CLI 命令(或UpdateVolume等效的 API 命令)将设置noneSnapshotPolicy,如以下示例所示。

    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. 使用 C volume snapshot policy showONTAPLI 命令显示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 的名字。

    • 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.