Data Domain:如何将集合复制转换为 mtree 复制

Summary: 本文介绍如何使用 CLI 将集合复制转换为 mtree 复制。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

如何将集合复制转换为 mtree 复制 

 

用途:     
说明如何使用 CLI 将集合复制转换为 mtree 复制。

适用于:     

  • 所有 Data Domain 系统

  • 软件版本 5.1 及更高版本


解决方案:     

  • 在开始此过程之前,关闭任何备份或写入 Data Domain 的任何内容至少 20-40 分钟。

  • 确认文件系统清理未安排在转换过程的同一天运行,因为清理可能会将大量数据发送到目标 Data Domain,并可能延迟以下步骤中的快照复制。(请注意,如果在转换之前已开始清理,则即使已停止清理,您可能仍有大量数据需要传输。请特别注意下面的“Sync'ed-as-of time:”。)   

  • 在此过程中,源和目标 Data Domain 上的文件系统均处于禁用状态。   

  • 在开始此过程之前,请验证复制是否同步,并且在中断集合复制之前,两个 Data Domain 上的所有 mtree 中都有一个通用快照。下面将介绍此过程。

 

过程:      

  1. 确认复制处于同步状态。在源 Data Domain 中,运行以下示例中所示的命令:     
示例:     

sysadmin@Dell01# replication show detailed-stats rctx://0
CTX:                              
0 Destination:                      
col://Dell02.localdomain 发送的压缩后字节数:        592,530,416,032,056
Post-compressed bytes received:    11,616,432,972
Post-compressed bytes remaining:   <0---请注意,剩余字节数为 0
Sync'ed-as-of time:                Wed Mar 29 08:59 <---Note this time should match the current time and date of the Data Domain

sysadmin@Dell01# date
Wed Mar 29 09:00:02 EDT 2017
sysadmin@Dell01#
  1. 识别需要建立 mtree 复制的 mtree。在下面的示例中,有两个 mtree:Mybackup和备份。在这种情况下,必须为 mtree 复制设置的唯一 mtree 是 Mybackup mtree。备份 mtree 是默认设置,如果不更改目标/目标系统上的 mtree 名称,则无法设置将 mtree 复制到目标。如果更改了目标系统上的名称,则可以执行此操作。如果需要在源上的备份 mtree 和目标上的备份 mtree 之间进行复制,则必须配置基于目录的复制。 

 

示例:     

sysadmin@Dell01# mtree list
Name Pre-Comp (GiB) Status
--------------------- -------------- ------
/data/col1/mybackup 3248783.0 RW
/data/col1/backup 394.5 RW
--------------------- -------------- ------
D :删除
Q :配额定义的
RO :只
读 RW :读写
RD:Replication Destination RLGE
:已启用保留锁定治理的
RLGD:Retention-Lock Governance 已禁用
RLCE:Retention-Lock Compliance 已启用
sysadmin@Dell01#

  1. 创建通用快照。对于 mtree 复制,重新同步过程需要通用快照。快照名称并不重要。如果有多个 mtree,则必须对每个 mtree 重复此步骤。  

 

示例:      

sysadmin@Dell01# snapshot create snapshot-A-3-29 mtree /data/col1/Mybackup retention 1day
Snapshot “snapshot-A-3-29” for mtree “/data/col1/Mybackup” created, will be retained until Mar 30 2017 08:58.

sysadmin@Dell01# snapshot list mtree /data/col1/Mybackup
sysadmin@Dell01#

MTree 的快照信息:/data/col1/mybackup
----------------------------------------------
Name Pre-Comp (GiB) Create Date Retain Until status
--------------- -------------- ----------------- ----------------- ------
snapshot-a-3-29 3248783.0 Mar 29 2017 08:58 Mar 30 2017 08:58
--------------- -------------- ----------------- ----------------- ------

Snapshot Summary
-------------------
Total:            
1 Not expired:      
1 Expired:          
0 sysadmin@Dell01#

  1.  执行复制同步。此过程完成两件事:1) 它启动复制过程,将新创建的快照推送到目标 Data Domain;2) 它还确保在中断集合复制之前一切都同步。

示例:     

sysadmin@Dell01# replication sync
0 files flushed.
电流=905268072 sync_target=905268072头=905268072
sysadmin@Dell01#

  1. 在目标 Data Domain 上,验证新创建的快照是否显示在系统上。对使用 mtree 复制设置的所有 mtree 重复此步骤。 

示例:     

sysadmin@Dell02# snapshot list mtree /data/col1/Mybackup
MTree 的快照信息:/data/col1/mybackup
----------------------------------------------
Name Pre-Comp (GiB) Create Date Retain Until status
--------------- -------------- ----------------- ----------------- ------
snapshot-a-3-29 3248783.0 Mar 29 2017 08:58 Mar 30 2017 08:58
--------------- -------------- ----------------- ----------------- ------

Snapshot Summary
-------------------
Total:            
1 Not expired:      
1 Expired:          
0 sysadmin@Dell01#

Note:如果有多个 mtree,您可以使用以下命令快速列出所有快照: snapshot list mtree * 

  1. 检查快照是否显示在两个 Data Domain 上,并且同步时间为最新。如果不确定,则在禁用文件系统之前再次运行复制同步命令。禁用源和目标 Data Domain 上的文件系统。

示例:     

来源:     

sysadmin@Dell01#filesys disable

此操作将禁用文件系统。
禁用文件系统时,应用程序可能会遇到中断

        是否确定?(是|否|?)[no]:是的

,好的,继续。

请稍候。。。。。。。。。。。。。。
文件系统现已禁用。
sysadmin@Dell01#

Destination:     

sysadmin@Dell02# filesys disable

此操作将禁用文件系统。
禁用文件系统时,应用程序可能会遇到中断

        是否确定?(是|否|?)[no]:是的

,好的,继续。

请稍候。。。。。。。。。。。。。。
文件系统现已禁用。
sysadmin@Dell01#

  1. 禁用文件系统后,集合复制现在可能会被中断。在源和目标 Data Domain 上执行以下操作。尽管集合复制始终指定为上下文 0,但最佳做法始终是执行 replication show config,以便破坏正确的上下文。

示例:     

来源:      

sysadmin@Dell01# replication show config
CTX Source Destination Connection Low-bw-optim Encryption Enabled Max-repl-
Host and Port streams
--- ------------------------- ------------------------- ------------------------------- ------------ ---------- ------- ---------
0 col://Dell01.localdomain col://Dell02.localdomain Dell02.localdomain (default) disabled enabled yes -
--- ------------------------- ------------------------- ------------------------------- ------------ ---------- ------- ---------
DD System default Max-repl-streams per context:16
sysadmin@Dell01#

sysadmin@Dell01# replication break rctx://0
“replication break”命令会不可撤销地关闭复制
,并使此系统成为正常的恢复程序。将无法
重新连接到当前目标。要重新配置
复制,需要一个空目标。
        是否确定?(是|否|?)[no]:是的

,好的,继续。
sysadmin@Dell01#

Destination:    

sysadmin@Dell02# replication show config
CTX Source Destination Connection Low-bw-optim Encryption Enabled Max-repl-
Host and Port streams
--- ------------------------- ------------------------- ------------------------------- ------------ ---------- ------- ---------
0 col://Dell01.localdomain col://Dell02.localdomain Dell02.localdomain (default) disabled enabled yes -
--- ------------------------- ------------------------- ------------------------------- ------------ ---------- ------- ---------
DD System default Max-repl-streams per context:16
sysadmin@Dell01#

sysadmin@Dell02# replication break rctx://0
'replication break' 命令会不可撤销地关闭
复制,并使此系统成为正常的恢复程序。
如果不使用“filesys destroy”命令销毁
其所有数据,将无法使此系统再次成为目标。
        是否确定?(是|否|?)[no]:是的

,好的,继续。
sysadmin@Dell01#

  1. 在源和目标 Data Domain 上启用文件系统。

示例:      

来源:      

sysadmin@Dell01# filesys enable
Please wait......................
文件系统现已启用。
sysadmin@Dell01#

Destination:      

sysadmin@Dell02# filesys enable
Please wait.....................
文件系统现已启用。
sysadmin@Dell01#

  1. 执行 mtree 列表以显示您的 mtree 列表,以列出必须配置 mtree 复制的 mtree。

示例:       

sysadmin@Dell01# mtree list
Name Pre-Comp (GiB) Status
--------------------- -------------- ------
/data/col1/mybackup 3248783.0 RW
/data/col1/backup 394.5 RW
--------------------- -------------- ------
D :删除
Q :配额定义的
RO :只
读 RW :读写
RD:Replication Destination RLGE
:已启用保留锁定治理的
RLGD:Retention-Lock Governance 已禁用
RLCE:Retention-Lock Compliance 已启用
sysadmin@Dell01#

  1. 为必须配置复制的 mtree 设置复制。对必须配置复制的所有 mtree 重复此过程。在源和目标 Data Domain 上运行相同的命令,如下所示。

示例:      

sysadmin@Dell01# replication add source mtree://< Source DD/data/>col1/<Mtree Name name> destination mtree://< Name of source DD/>data/col1/<Mtree Name
>
Source:      

sysadmin@Dell01# replication add source mtree://Dell01.localdomain/data/col1/Mybackup destination mtree://Dell02.localdomain/data/col1/Mybackup
sysadmin@Dell01#

Destination:      

sysadmin@Dell02# replication add source mtree://Dell01.localdomain/data/col1/Mybackup destination mtree://Dell02.localdomain/data/col1/Mybackup
sysadmin@Dell01#

  1. 在源和目标 Data Domain 上运行 replication show config,以确保在两端正确配置复制。

示例:      

来源:      

sysadmin@Dell01# replication show config
CTX Source Destination Connection Low-bw-optim Encryption Enabled Max-repl-
Host and Port streams
--- ------------------------------------------------ ------------------------------------------------ ------------------------------- ------------ ---------- ------- ---------
1 mtree://Dell01.localdomain/data/col1/Mybackup mtree://Dell02.localdomain/data/col1/Mybackup Dell02.localdomain (default) disabled disabled no 16
--- ------------------------------------------------ ------------------------------------------------ ------------------------------- ------------ ---------- ------- ---------
DD System default Max-repl-streams per context:16
sysadmin@Dell01#

目的地:      

sysadmin@Dell02# replication show config
CTX Source Destination Connection Low-bw-optim Encryption Enabled Max-repl-
Host and Port streams
--- ------------------------------------------------ ------------------------------------------------ ------------------------------- ------------ ---------- ------- ---------
1 mtree://Dell01.localdomain/data/col1/Mybackup mtree://Dell02.localdomain/data/col1/Mybackup Dell02.localdomain (default) disabled disabled no 16
--- ------------------------------------------------ ------------------------------------------------ ------------------------------- ------------ ---------- ------- ---------
DD System default Max-repl-streams per context:16
sysadmin@Dell01#

  1. 重新同步新创建的复制上下文。重新同步过程仅在源 Data Domain 上执行。对每个上下文重复此过程。

示例:      

来源:      

sysadmin@Dell01# replication resync rctx://1
“replication resync”命令会不可撤销地删除与源不同的目标数据
。将无法恢复丢失的数据。
中止重新同步不会将数据恢复到以前的状态。
        是否确定?(是|否|?)[no]:是的

,好的,继续。

(00:09) 正在等待重新同步开始...
(00:11) 重新同步已开始。
使用“复制监视 rctx://1”监视进度。
sysadmin@Dell01#

sysadmin@Dell01# replication watch rctx://2
使用 Control-C 停止监视。

(00:00) 复制重新同步已开始...
(00:02) initializing:
(00:14) 100% complete, pre-comp:     0 KB/s,网络:     0 KB/秒
(00:14) 复制重新同步已完成。
sysadmin@Dell01#

  1. 完成此过程后,在源上运行复制状态命令。由于在开始此过程之前,所有对 Data Domain 的写入都已停止,因此一切都应在几分钟内同步。在下面的示例中,上下文 1 处于同步状态,并且连接处于空闲状态。这表示复制处于同步状态。 

示例:      

sysadmin@Dell01# replication status
CTX Destination Enabled Connection Sync'ed-as-of-time
--- ------------------------------------------------ ------- ---------- ------------------
1 mtree://Dell02.localdomain/data/col1/Mybackup yes idle Wed Mar 29 09:53
--- ------------------------------------------------ ------- ---------- ------------------
sysadmin@Dell01#

  1. 重新打开备份应用程序。

Affected Products

Data Domain

Products

Data Domain
Article Properties
Article Number: 000022584
Article Type: How To
Last Modified: 16 Dec 2024
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.