Go to main content

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

退出打印视图

更新时间: 2018 年 11 月
 
 

监视复制延迟和 RPO (CLI)

如果进行异步复制,将源中的数据写入其在目标上的副本时,会发生时间延迟。可以设置警告和错误警报以在即将发生复制延迟或复制延迟超过复制点目标 (replication point objective, RPO) 时通知管理员。这些警报提示管理员检查网络问题、应用程序问题以及使用分析来检查存储设备的运行状况。

创建或编辑复制操作时可以设置复制延迟警报。

要设置复制延迟警报,请执行以下操作:

  1. 导航到项目或共享资源,然后输入 action
    host_source:shares New_Project replication> action
  2. 通过输入 get 来显示属性。
    host_source:shares New_Project action (uncommitted)> get
                     origin_pkg_id =
                            target = replication-target
                              pool = demo_pool
                           enabled = true
                        continuous = false
                     include_snaps = true
       retain_user_snaps_on_target = false
                             dedup = false
      include_clone_origin_as_data = false
                     max_bandwidth = unlimited
                        bytes_sent = 0
                    estimated_size = 0
               estimated_time_left = 00:00:00
                average_throughput = 0B/s
                           use_ssl = true
                       compression = on
                       export_path =
                             state = idle
                 state_description = Idle (no update in progress)
                    export_pending = false
                           offline = false
                       next_update = Sync now
                       replica_lag = P1H30M
            replica_data_timestamp = Wed Feb 15 2016 12:12:05 GMT+0000 (UTC)
                         last_sync = Wed Feb 15 2016 22:32:59 GMT+0000 (UTC)
                          last_try = Wed Feb 15 2016 22:32:59 GMT+0000 (UTC)
                       last_result = success
          recovery_point_objective =
         replica_lag_warning_alert =
           replica_lag_error_alert =
    
  3. 为此操作设置 RPO 和副本延迟属性,如下例所示:
    host_source:shares New_Project action (uncommitted)> set recovery_point_objective=50min
                             recovery_point_objective = 50 minutes (uncommitted)
    host_source:shares New_Project action (uncommitted)> set replica_lag_warning_alert=50
                                 replica_lag_warning = 50% (uncommitted)
    host_source:shares New_Project action (uncommitted)> set replica_lag_error_alert=180
                         replica_lag_error = 180% (uncommitted)

    有关所有属性的说明,请参见复制操作属性

  4. 提交此操作的更改。
    host_source:shares New_Project action (uncommitted)> commit
  5. 要查看操作的当前属性,请输入 ls。输出的 RPO 和副本延迟部分如下例所示:
    host_source:shares New_Project action (uncommitted)> ls
    .
    .
                       replica_lag = P1H30M
            replica_data_timestamp = Wed Feb 15 2016 12:12:05 GMT+0000 (UTC)
                         last_sync = Wed Feb 15 2016 22:32:59 GMT+0000 (UTC)
                          last_try = Wed Feb 15 2016 22:32:59 GMT+0000 (UTC)
                       last_result = success
          recovery_point_objective = 50 minutes
         replica_lag_warning_alert = 50%
           replica_lag_error_alert = 180%

相关主题