Go to main content

Oracle® ZFS Storage Appliance 管理指南,发行版 OS8.8.x

退出打印视图

更新时间: 2021 年 8 月
 
 

设置复制开始和完成警报 (CLI)

调度更新的开始和完成警报的数量可能会掩盖其他重要警报。使用此过程可禁用或启用复制开始和完成警报。

完成警报提供关于每个复制更新的统计信息。在 CLI 中,复制操作的 stats 节点提供最近完成的更新的统计信息或此复制操作的累积总计的统计信息。

  1. 转到 configuration services replication,然后输入 get 命令。
    hostname:> configuration services replication
    hostname:configuration services replication> get
                          <status> = online
        enable_start_finish_alerts = true
  2. 禁用或启用发布开始/完成警报。
    • 要禁用开始/完成警报,请将 enable_start_finish_alerts 属性的值设置为 false
      hostname:configuration services replication> set enable_start_finish_alerts=false
          enable_start_finish_alerts = false (uncommitted)
      hostname:configuration services replication> commit
    • 要启用开始/完成警报,请将 enable_start_finish_alerts 属性的值设置为 true

      要查看警报,请输入 maintenance logs,然后输入 select alertshow

  3. 重新输入 get 命令以确认值正确。

相关主题

要指定定制警报操作,请参见添加警报操作 (CLI),并将 category 属性设置为以下值之一:

  • replication

  • replication_source

  • replication_target