Go to main content

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

退出打印视图

更新时间: 2018 年 11 月
 
 

将复制反转回生产站点 (CLI)

将恢复站点中的所有更改都复制到生产站点后,再次反转复制,以恢复源与复制目标之间的原始复制关系。

  1. 从复制目标中,导航到 shares replication packages 并列出数据包。
    loader:> shares replication packages
    loader:shares replication packages> list
    
    ID          STATE DATA TIMESTAMP      SOURCE       DATASET
    package-002 idle  2015-10-02 19:26:37 hostsource   berries
    package-001 idle  2015-10-02 19:26:10 hostsource   berries
    package-004 idle  2015-10-02 20:53:51 hostsource   berries/blackberry
    package-003 recv  2015-10-02 20:59:52 hostsource   cherries/maraschino

    对于此数据集包含最新 data timestamp 的数据包是包含对应源数据集的最新数据的数据包。

  2. 选择要反转的复制数据包。
    loader:shares replication packages> select package-002
  3. 输入 pkgreverse
    host-prod:shares replication package-002> pkgreverse
  4. (u53ef选) 使用以下命令设置新项目名称并启用操作:
    host-prod:shares replication package-002 pkgreverse> set new_project_name=new-kmm3
                  new_project_name = new-kmm3
    host-prod:shares replication package-002 pkgreverse> set enable_action_upon_reversal=true
       enable_action_upon_reversal = true
    

    注 -  项目名称在执行反转操作的设备上必须唯一。如果生产站点中的设备上存在相同名称的项目,反转操作将失败。
  5. 输入 show 以确认属性,然后输入 commit
    host-prod:shares replication package-002 pkgreverse> show
    Properties:
                  new_project_name = new-kmm3
       enable_action_upon_reversal = true
    
    host-prod:shares replication package-002 pkgreverse> commit
    This action will move the contents of this package to a new local project
    configured to replicate back to the source. Any data or metadata changes made
    on the source since the last successful update will be lost when the new
    project is replicated back to the source. If replication actions on the source
    are not disabled, future updates to this package will fail.
    
  6. 根据使用的协议,将共享资源重新映射(SMB 客户机)或重新挂载(NFS 客户机)到生产站点中的设备。

相关主题