Go to main content

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

退出打印视图

更新时间: 2018 年 11 月
 
 

设置 NFS 服务器的导出路径 (CLI)

  1. 标识或创建复制目标。
  2. 创建复制操作,设置 export_path 并对新操作执行 commit 操作。
    source:shares default replication> action
    source:shares default action (uncommitted)> set target=target_a
                           target = target_a (uncommitted)
    source:shares default action (uncommitted)> set pool=pool2
                             pool = pool2 (uncommitted)
    source:shares default action (uncommitted)> set export_path=nfs://nfs_server/export/init_repl
                      export_path = nfs://nfs_server/export/init_repl (uncommitted)
    source:shares default action (uncommitted)>commit

    注 -  可以选择设置调度或连续复制模式,这样将在导出和导入操作完成后启动更新。
  3. 导航回到刚刚创建的复制操作,并查看当前状态。
    source:shares default replication> ls
    Actions:
                   TARGET          STATUS     NEXT
    action-000  target_a         idle       Export replication data
    
        
    source:shares default replication> last
    source:shares default action-000> ls
    Properties:
                               id = 96366bf2-0b3c-4eec-e85b-e36e1b5bc18c
                           target = target_a
                          enabled = true
                       continuous = false
                    include_snaps = true
                    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 = nfs://nfs_server/export/init_repl
                            state = idle
                state_description = Idle (export pending)
                   export_pending = true
                          offline = false
                      next_update = Export replication data
                        last_sync = <unknown>
                         last_try = <unknown>
                      last_result = <unknown>

后续步骤