存档

Posts Tagged 'SnapMirror'

SnapMirror Setup Script

March 14th, 2010 Chris Kranz 5 comments

I had the task of replicating an existing customers filer to their new DR system. This was quite a large system, and as much as creating SnapMirrors isn't particularly complex, it is time consuming. So as with many things I do, I wrote a script to help my achieve this task quicker, and go have yet another coffee.

You'll need pre-shared keys setup (as ever), but the rest is prompted for. There's no data validation (no surprise). The script will output 4 text files, one for creating/restricting all the volumes, one for the “snapmirror.conf”, on to be used in place of “snapmirror.conf” while you are doing the baseline initialization, and finally one to actually initialize the snapmirrors. There's no intelligence around concurrent streams, so initialization is still a bit of a juggling act and waiting game.

Please let me know if you find this useful.

#!/bin/bash

echo “Please enter the name of the PRIMARY filer: ”
read PRI_FILER

echo “Please enter the name of the DR filer: ”
read DR_FILER

ConnectString=”ssh -c 3des”
#ConnectString=”rsh”

SnapMirrorHour=22
SnapMirrorMinute=0
SnapMirrorStagger=5

echo “” > ${DR_FILER}_filer_volumes.txt
echo “” > ${DR_FILER}_snapmirror.conf
echo “” > ${DR_FILER}_sm_initialize.txt
echo “” > ${DR_FILER}_snapmirror_init.conf

`$ {连接字符串} $ PRI_FILER“AGGR状态”AGGR | awk的'!$ 2〜/国家/ {$ 1}'`

尺寸=`$ {连接字符串} $ PRI_FILER“DF - AH美元AGGR”| SED'S / \([0-9] [KMGT] \ B)/ \ 1 / G“|!awk的'$ 1〜/快照|总结/ {$ 2}'`
在`$ {连接字符串} $ PRI_FILER VOL“AGGR show_space AGGR”| awk的'$ 1〜/空间/ {打印$ 0}!“| awk的'$ 4〜/卷|文件|无/ {打印$ 1}'`

回声“卷创建$ {VOL​​没有} - S $ {AGGR} $ {大小}”>> $ {DR_FILER} _filer_volumes.txt
回声“VOL限制$ {VOL​​}”>> $ {DR_FILER} _filer_volumes.txt
回声“的SnapMirror初始化 - S $ {PRI_FILER}:$ {VOL​​} $ {DR_FILER}:$ {VOL​​}”>> $ {DR_FILER} _sm_initialize.txt
回声“$ {PRI_FILER}:$ {VOL​​} $ {DR_FILER}:$ {VOL​​} - $ {SnapMirrorMinute} $ {SnapMirrorHour} *”>>​​ $ {DR_FILER} _snapmirror.conf
回声“$ {PRI_FILER}:$ {VOL​​} $ {DR_FILER}:$ {VOL​​} - - - - - ”>> $ {DR_FILER} _snapmirror_init.conf

SnapMirrorMinute =`expr的美元SnapMirrorMinute + $ SnapMirrorStagger`

SnapMirror的

目录表

名称

SnapMirror的 - SnapMirror的活动日志

内容简介

在/ etc /日志/的SnapMirror

说明

SnapMirror的日志文件包含了这个文件管理器的SnapMirror活动日志。 生活在/ etc /根卷上的源和目标文件管理器日志文件。 当设置 ON选项snapmirror.log.enable时,所有的SnapMirror活动将被记录在此日志文件。 有关如何启用和禁用此选项的详细信息,请参阅选项。 逢星期日00:00,/等/日志/ SnapMirror的移动/ etc/log/snapmirror.0 / etc/log/snapmirror.0移动到/ etc/log/snapmirror.1等。 后缀可以达到5。 这个过程被称为旋转。 SnapMirror log entries are saved for a total of six weeks.

Each entry of the /etc/log/snapmirror file is a single line consisting of space-separated fields. All log entries begin with a type field and a timestamp field. The final field may be enclosed by parentheses, in which case it may contain spaces. The timestamp field contains a fixed number of spaces, and as such can be parsed as five space-delimited fields. Which fields appear, and in what order they appear in, is determined by the type field of log entry (which is the first field).

Following is a description of each field.

type Indicate the type of the entry, which also determines the format of the rest of the entry. It can be one of the following values:

日志
log facility activity

Format: type timestamp event_info…

sys
system-wide activity

Format: type timestamp event_info…

tgt
snapvault target activity

格式:timestamp类型量目标event_info ...

SRC
源活动

格式:timestamp类型的源目的地event_info ...

DST
目的地活动

格式:timestamp类型的源目的地event_info ...

CMD
用户命令活动

格式:timestamp类型的源目的地event_info ...

SCN
复制检查源活动

格式:timestamp类型的源目的地event_info ...

CHK
复制检查目的地活动。

格式:timestamp类型的源目的地event_info ...

全卷活动

格式:timestamp类型的卷event_info ...

SLK
softlock除了删除活动

格式:timestamp类型softlock event_info ...

时间戳
显示的ctime()的格式,例如:周五7月17日20时41分09秒格林尼治标准时间。 表示此事件是记录的时间。

指定卷本条目适用于的名称。

目标 ,这是这个条目的名称和目标类型。 目标是全卷的行动,一般快照创作。 这是两个colonseparated领域,显示如下:

target_type:target_name

目标名称可能是一个空字符串。

,这是源文件管理器的名称和要镜像的卷名称或配额树路径。 被指定为两个冒号分隔的字段的名称,具体如下:

主机路径

此字段可能是' - '时,不适用事件。

目的地
这是目标文件管理器的名称和卷名称或配额树的目的地的路径。 被指定为两个冒号分隔的字段, 字段中相同的名称。

此字段可能是' - '时,不适用事件。

event_info
此字段包含的是被记录的事件。 一些事件可能有括号中的额外信息。

请求 (IP地址 | 传输类型 )传输请求已经被送往(目标)或接收(源)。 在源端,提出请求的目标文件服务器的IP地址是包含在括号中。 在目标端,传输类型是包含在括号中。

开始转移的开始。

开始 (快照检查=#NUM,水平= {数据|校验},{检查|修复},{快速|全}模式)
复制开始检查或修复会议。 括号中包含的会话选项。 所有的选项出现在目标端日志,但只有“快照检查”选项出现在源端日志。

重新启动 (@ NUM KB)
开始重新启动转让。

结束 (NUM KB做)
完成传送。 以KB为转移的总规模是包含在括号中。

结束 (src_only = num_1,dst_only = num_2,不匹配= num_3)复制完成检查或修复会议。 这次会议的总结,是包含在括号中。 摘要目前只在目标端的日志。 源端的日志将不包含任何的摘要信息。

中止错误信息
一个转移被中止。 该错误信息是包含在括号中。

推迟原因
表示转移是由于资源的限制而推迟。 延期的原因是包含在括号中。

Wait_tape
一个SnapMirror的磁带操作正在等待下一个磁带。

New_tape
一个SnapMirror的磁带操作继续与新的磁带操作。

Sync_start
此日志条目指定的SnapMirror关系的同步镜像模式开始。

Sync_end( 原因
此日志条目指定的SnapMirror关系的同步镜像模式。 同步模式辍学的原因是包含在括号中。

Quiesce_start
停顿过程的开始。

Quiesce_end
停顿过程的完成。

Quiesce_failed( 理由
停顿过程中的失败。 失败的原因是包含在括号中。

Rollback_start
为配额树的SnapMirror或SnapVault的回滚进程的开始。

Rollback_end
为配额树的SnapMirror或SnapVault的回滚进程的完成。

Rollback_failed( 理由
为配额树的SnapMirror或SnapVault的失败回滚过程。 失败的原因是包含在括号中。

Coalesce_start( 快照
一开始,合并为一个SnapVault的配额树的过程。 联合运作的基础快照是包含在括号中。

Coalesce_end
完成合并为一个SnapVault的配额树的过程。

Coalesce_failed( 理由
一个失败的合并为一个SnapVault的配额树的过程。 失败的原因是包含在括号中。

Target_start
一个SnapVault的目标开始。

Target_end
一个SnapVault的目标完成。

Target_failed( 理由
一个SnapVault的目标失败。 失败的原因是包含在括号中。

Start_logging
SnapMirror的日志被启用。

End_logging
SnapMirror的日志被禁用。

SnapMirror_on( 事业
SnapMirror的是这台主机上启用。 括号中指定的操作或过程,造成SnapMirror将成为启用。

SnapMirror_off( 事业
在此主机上禁用的SnapMirror。 括号中指定的操作或过程中造成的SnapMirror将成为残疾人。

SnapVault_on( 事业
SnapVault的是这台主机上启用。 括号中指定的操作或过程中造成的SnapVault,以变为启用。

SnapVault_off( 事业
SnapVault的是在此主机上禁用。 括号中指定的操作或过程中造成的SnapVault,以成为残疾人。

Resume_command
用户发出的SnapMirror恢复命令。

Break_command
用户发出的SnapMirror break命令。

Release_command
用户发出的SnapMirror发布命令。

Abort_command

Abort_command( 类型
用户发出的SnapMirror abort命令。 类型将只能目前,如果中止与发行,改变中止类型的附加 ​​选项。

Resync_command( 共同快照
用户发出的SnapMirror resync命令。 resync操作的共同快照是包含在括号中。

Restore_resync_command( 共同快照 )用户发出的SnapVault恢复- r命令。 resync操作的共同快照是包含在括号中。

Migrate_command
用户发出的SnapMirror迁移命令。

Request_check(snapshot_name)
单一快照复制过程中检查会话的要求。 这是源端的日志条目。 检查每个快照复制检查会议将其条目。 快照的名称是包含在括号中。

Checking_snapshot 源snapshot_name(时间戳 ,cpcount = num_2,snapid = ID)dest_snapshot_name(时间戳 ,cpcount = 计数 ,snapid = ID)一个单一快照的比较,在复制过程中检查的开始。 这是记录在源和目标。

Abort_check
复制的SnapMirror或SnapVault的检查会议中止。 中止的原因是包含在括号中。

Abort_check_command
用户发出的复制检查abort命令。 相应的日志文件条目出现CMD 类型

Data_differ(blk_num FILE_PATH | VBN VBN})
复制检查发现一个数据块不匹配。 块编号和inode的路径或卷的块数(VBN)是包含在括号中。

Unique_in_src(entry_path entry_type)复制检查发现一个条目只在 包括括号中的条目类型和进入路径。

Unique_in_dst(entry_path entry_type)复制检查发现一个条目只有在目前的目标 包括括号中的条目类型和进入路径。

Size_differ( 路径
复制检查发现,在指定的inode的文件大小不匹配。 inode的路径是包含在括号中。

Type_differ( 路径
复制检查发现一个inode的类型不匹配。 inode的路径是包含在括号中。

UID_differ( 路径
复制检查发现为指定的inode的用户ID不匹配。 inode的路径是包含在括号中。

GID_differ( 路径
复制检查发现一个组ID不匹配指定的inode。 inode的路径是包含在括号中。

Perm_differ( 路径
复制检查发现一个指定的inode或dosbit不匹配的权限。 inode的路径是包含在括号中。

Atime_differ( 路径
复制检查发现,在指定的inode的最后一次访问时间不匹配。 inode的路径是包含在括号中。

Mtime_differ( 路径
复制检查发现不匹配,在指定的inode的最后修改时间。 inode的路径是包含在括号中。

Ctime_differ( 路径
复制检查发现在过去指定的inode大小/状态改变的时候不匹配。 inode的路径是包含在括号中。

Crtime_differ( 路径
复制检查发现在创建时指定的inode不匹配。 inode的路径是包含在括号中。

Rdev_differ( 路径
复制检查发现为指定的inode的设备数量不匹配。 inode的路径是包含在括号中。

DOSbits_differ( 路径
复制检查发现一个DOS位不匹配指定的inode。 inode的路径是包含在括号中。

ACL_differ( 路径
复制检查发现NT或NFS V4的ACL不匹配指定的inode。 inode的路径是包含在括号中。

Hardlink_differ( 路径
复制检查发现为指定inode的固网,但在目标上的inode不匹配之间的联系。 inode的路径是包含在括号中。

Qtree_oplock_differ( 路径
复制检查发现操作锁定为一个配额树的设置不匹配。 配额树的路径是包含在括号中。

Qtree_security_differ( 路径
复制检查发现一个配额树的安全设置不匹配。 配额树的路径是包含在括号中。

Hole_uses_disk_space( 路径
复制检查发现指定的inode不必要的磁盘使用情况,然而,这是不是不匹配。 inode的路径是包含在括号中。

Convert_command
用户发出的SnapMirror转换命令。

Older_snapshot
这是早于当前的基础快照快照更新。

Snapshot_delete( 快照的名称
快照是从本卷中删除。 快照名称是包含在括号中。

Snapshot_replace( 快照的名称
一个SnapVault的快照已取代SIS的操作后,一个具有相同名称的新快照。 快照名称是包含在括号中。

FILER_REBOOTED
文件管理器重新启动。

WORM_LOG_FAIL( 理由
写入WORM日志文件失败。 失败的原因是包含在括号中。

WORM_LOG_FAILURE_RECOVER_START
开始恢复失败的WORM日志条目。

WORM_LOG_FAILURE_RECOVER_END
恢复失败的WORM日志条目结束。

Softlock_add( 操作
添加一个softlock。 操作,增加了softlock是包含在括号中。

Softlock_add_pending( 操作
增加一条,作为一个softlock挂起softlock。 操作,增加了softlock是包含在括号中。

Softlock_delete( 操作
一个softlock被删除。 删除softlock运作是包含在括号中。

Softlock_delete_pending( 操作 )挂起softlock被删除。 删除它的运作是包含在括号中。

Softlock_mark_pending( 操作
一个softlock被标记为待。 标志着它的操作是包含在括号中。

举例

一个典型的入口,在/ etc /日志/ SnapMirror的样子:
  DST周五7月17日22时五十分18秒格林尼治标准​​时间filer1:srcvol filer2:dstvol请求(更新) 

上面的例子显示了更新的要求,从文件管理器的SnapMirror关系的目标方面记录:srcvol filer2:dstvol在记录时间内发生的。

一个典型的复制检查会话看起来像在目标上的/ etc /日志/ SnapMirror的

  CHK周三01月19日1时07分39秒格林尼治标准​​时间伍尔夫:/ vol/vol1的米尔顿:/ vol/vol1的请求(检查)CHK星期三01月19日1时07分39秒格林尼治标准​​时间伍尔夫:/ vol/vol1的米尔顿:/ vol/vol1的启动(快照检查= 2,水平=数据,检查,充分)CHK CHK周三01月19日1时07分39秒格林尼治标准​​时间伍尔夫:/ vol/vol1的米尔顿:/ vol/vol1的Checking_snapshot米尔顿(0033587346)_vol1.5(1月18日...星期三01月19日1时07分48秒格林尼治标准​​时间伍尔夫:/ vol/vol1的米尔顿:/ vol/vol1的Checking_snapshot nightly.0(1月18日00:00,cpcount = ... CHK周三1月19日1时07分57秒格林尼治标准​​时间伍尔夫:/ vol/vol1的米尔顿:/ vol/vol1的结束(src_only = 0,dst_only = 0,不匹配= 0) 

一个典型的复制检查会议在/ etc /日志/的SnapMirror看起来像:

  SCN周三01月19日0点58分27秒格林尼治标准​​时间伍尔夫:/ vol/vol1的米尔顿:/ vol/vol1的请求(172.29.19.15)SCN周三01月19日零时58分27秒格林尼治标准​​时间伍尔夫:/ vol/vol1的米尔顿:/ vol/vol1的周三01月19日零时58分27秒格林尼治标准​​时间伍尔夫SCN:/ vol/vol1的米尔顿:/ vol/vol1的Request_check(米尔顿(0033587346)_vol1.5)SCN周三1月19日格林尼治标准​​时间0时58分27秒开始(快照检查= 2)伍尔夫:/ vol/vol1的米尔顿:/ vol/vol1的Checking_snapshot米尔顿(0033587346)_vol1.5(1月18日... ... SCN周三01月19日0时58分36秒格林尼治标准​​时间伍尔夫:/ vol/vol1的米尔顿:/ vol/vol1的Request_check(nightly. 0)SCN周三01月19日0时58分36秒格林尼治标准​​时间伍尔夫:/ vol/vol1的米尔顿:/ vol/vol1的nightly.1 Checking_snapshot(1月18日00:00,cpcount = ... SCN周三1月19日0点58分45秒格林尼治标准​​时间伍尔夫: / vol/vol1的米尔顿:/ vol/vol1的末端 

一个典型的softlock /日志记录在/ etc / SnapMirror的看起来像:

   SLK周三5月10日3时06分15秒格林尼治标准​​时间state.softlock.vol1.0000011e.054.filer1:VOL3 Softlock_add(转让)SLK周三5月10日3点06分15秒格林尼治标准​​时间state.softlock.vol1.0000011b.054.filer1:VOL3 Softlock_delete(转让)SLK周三5月10日3时06分15秒格林尼治标准​​时间state.softlock.vol1.0000011b.054.filer1:VOL3 Softlock_delete(恢复)SLK周三5月10日3点06分15秒格林尼治标准​​时间state.softlock.vol1.0000011b.054 filer1:VOL3 Softlock_delete(释放)SLK周三5月10日3时06分15秒格林尼治标准​​时间state.softlock.vol1.0000011b.054.filer1:VOL3 Softlock_delete(Clean_softlocks)SLK周三5月10 3时06分15秒格林尼治标准​​时间state.softlock.vol1 0.0000011 b.054.filer1:VOL3 Softlock_add(RSM_forward)SLK周三5月10日三时06分15秒格林尼治标准​​时间state.softlock.vol1.0000011b.054.filer1:VOL3 Softlock_delete(RSM_forward)SLK周三5月10日3时06分15秒格林尼治标准​​时间状态softlock.vol1.0000011b.054.filer1:VOL3 Softlock_delete(Snapmirror_destinations)SLK周三5月10日3点06分15秒格林尼治标准​​时间state.softlock.vol1.0000011b.054.filer1:VOL3 Softlock_delete_pending(转让)SLK周三5月10 03:06 :15 GMT state.softlock.vol1.0000011b.054.filer1:VOL3 Softlock_add_pending(转让)SLK周三5月10日3点06分15秒格林尼治标准​​时间state.softlock.vol1.0000011b.054.filer1:VOL3 Softlock_mark_pending(转让) 

档案

在/ etc /日志/的SnapMirror
当前周的SnapMirror的日志文件。

[0-5]的/ etc /日志/ SnapMirror的。
前几个星期的SnapMirror的日志文件。

SEE ALSO

选项​​,SnapMirror的SnapVault的


目录表







































































Categories: Manual Pages Tags: , , , ,

SnapMirror的

July 7th, 2009 Chris Kranz No comments

目录表

名称

snapmirror – volume, and qtree mirroring

内容简介

snapmirror { on | off }

snapmirror status [ options ] [ volume | qtree ... ]

snapmirror initialize [ options ] destination

snapmirror update [ options ] destination

snapmirror quiesce destination

snapmirror resume destination

snapmirror break [ options ] destination

snapmirror resync [ options ] destination

snapmirror destinations [ option ] [ source ]

snapmirror release source destination

snapmirror { store | retrieve } volume tapedevices

snapmirror use destination tapedevices

snapmirror throttle <n> destination

snapmirror abort [ options ] destination

snapmirror migrate [ options ] source destination

说明

The snapmirror command is used to control SnapMirror, a method of mirroring volumes and qtrees. It allows the user to enable and disable scheduled and manual data transfers, request information about transfers, start the initializing data transfer, start an update of a mirror, temporarily pause updates to a mirror, break mirror relationships, resynchronize broken mirrors, list destination information, release child mirrors, store volume images to tape, retrieve volume images from tape, and abort ongoing transfers.

SnapMirror can be used to replicate volumes or qtrees. The processes and behaviors involved are slightly (and sometimes subtly) different between the various kinds of data mirroring.

The SnapMirror process is destination-driven. The snapmirror initialize command starts the first transfer which primes the destination with all the data on the source. Prior to the initial transfer, the destination must be ready to be overwritten with the data from the source; destination volumes must be restricted (see vol ), and destination qtrees must not yet exist.

For asynchronous mirrors, the destination periodically requests an update from the source, accepts a transfer of data, and writes those data to disk. These update transfers only include changes made on the source since the last transfer. The SnapMirror scheduler initiates these transfers automatically according to schedules in the snapmirror.conf file.

Synchronous mirrors will initially behave asynchronously, but will transition to synchronous mode at first opportunity. These mirrors may return to asynchronous mode on error (eg a network partition between the mirroring filers) or at the request of the user.

The snapmirror update command can be used to initiate individual transfers apart from the scheduled ones in snapmirror.conf .

After the initial transfer, the destination is available to clients, but in a read-only state. The status of a destination will show that it is snapmirrored (see aggr , vol , or qtree for more details on displaying the destination state).

To use the destination for writing as well as reading, which is useful when a disaster makes the source unavailable or when you wish to use the destination as a test volume/qtree, you can end the SnapMirror relationship with the snapmirror break command. This command changes the destination's status from snapmirrored to broken-off , thus making it writable. The snapmirror resync command can change a former destination's status back to snapmirrored and will resynchronize its contents with the source. (When applied to a former source, snapmirror resync can turn it into a mirror of the former destination. In this way, the roles of source and destination can be reversed.)

A filer keeps track of all destinations, either direct mirrors or mirrors of mirrors, for each of its sources. This list can be displayed via the snapmirror destinations command. The snapmirror release command can be used to tell a filer that a certain direct mirror will no longer request updates.

To save network bandwidth, tape can be used to prime a new mirror volume instead of the snapmirror initialize command. The snapmirror store command dumps an image of the source to tape. The snapmirror retrieve command restores a volume image from tape and prepares the volume for update transfers over the network. If multiple tapes are used to create a volume image, the snapmirror use command is used to instruct a waiting store or retrieve process to write output or accept input to/from a new tape device. The store and retrieve commands cannot be used with qtrees.

The snapmirror migrate command is used on an existing source and destination pair to make the destination volume a writable "mimic" of the source. The destination assumes the NFS filehandles of the source, helping the filer administrator to avoid NFS re-mounting on the client side.

The snapmirror.conf file on the destination filer's root volume controls the configuration and scheduling of SnapMirror on the destination. See snapmirror.conf for more details on configuration and scheduling of SnapMirror.

Access to a source is controlled with the snapmirror.access option on the source filer. See options and protocolaccess (8) for information on setting the option.

(If the snapmirror.access option is set to "legacy”, access is controlled by the snapmirror.allow file on the source filer's root volume. See snapmirror.allow for more details.)

SnapMirror is a licensed service, and a license must be obtained before the snapmirror command can be used. SnapMirror must be licensed on both source and destination filers. See license for more details.

SnapMirror is supported on regular vfilers, as well as the physical filer named vfiler0. Use vfiler context or vfiler run to issue snapmirror commands on a specific vfiler. See vfiler for details on how to issue commands on vfilers. The use of SnapMirror on vfilers requires a MultiStore license.

vfiler使用时,一些限制。 The vfiler must be rooted on a volume and SnapMirror sources and destinations cannot be qtrees in shared volumes. Tape devices and Synchronous SnapMirror are not supported on vfilers. For a qtree SnapMirror, the vfiler must own the containing volume of the Qtree.

Each vfiler has its own /etc/snapmirror.conf file in its root volume. SnapMirror can be turned on or off on a vfiler independently. SnapMirror commands issued on a vfiler can only operate on volumes or qtrees it has exclusive ownership of.

For backward compatibility, the physical filer (vfiler0) can operate on all volumes and all qtrees, even if they are owned by vfilers. It is highly recommanded, however, that all storage units (volumes and qtrees) be mirrored from either vfiler0 or the hosting vfiler, not both. When vfiler storage units are mirrored via vfiler0, leave snapmirror off on the vfiler.

USAGE

The snapmirror command has many subcommands. Nearly every command takes a destination argument. This argument takes three different forms. The form used for a particular invocation depends on whether you're specifying a volume or a qtree.

Volumes are specified by their name:

 vol1 

Qtrees are specified by their fully-qualified path:

 /vol/vol1/qtree 

There is a special path that can be used to SnapMirror all the data in a volume which does not reside in a qtree. This path can only be used as a SnapMirror source, never a SnapMirror destination. The path is specified as:

 /vol/vol1/- 

All commands which don't say otherwise can take any of these forms as an argument.

The snapmirror subcommands are:

on

Enables SnapMirror data transfers and turns on the SnapMirror scheduler. This command must be issued before initiating any SnapMirror data transfers with the initialize , update , resync , store , or retrieve subcommands. This command also turns on the SnapMirror scheduler, which initiates update transfers when the time matches one of the schedules in the snapmirror.conf file. This command must be issued on the source side for the filer to respond to update requests from destinations.

off

Aborts all active SnapMirror data transfers and disables the commands which initiate new transfers ( initialize , update , resync , store , and retrieve ), and turns the SnapMirror scheduler off.

The on/off state of SnapMirror persists through reboots, and is reflected by the snapmirror.enable option. This option can be set off and on, and doing so has the exact same effect as the snapmirror on or snapmirror off commands.

status [ -l | -t | -q ] [ volume | qtree ... ]

报告所有源和/或目的地在这个文件管理器的SnapMirror关系的地位。 此命令还报告是否SnapMirror的是或关闭。 如果任何配额树参数的命令,只有匹配的源或目标的SnapMirror关系将报道。 如果参数是无效的,不会有任何状态输出。

不带任何选项,每个关系中的地位短期形式显示出来。 这显示了本地端的关系状态,是否传送过程中(如果有的话,该转让的进展情况),和镜子滞后,即镜子背后的源滞后的时间。 这是一个简单的区别,当前时间和最后成功转移的源端的时间戳。 滞后时间将始终至少尽可能最后成功转移的时间,除非源和目标上的时钟不同步(在这种情况下,甚至有可能是负的)。

如果是- l选项,输出显示每个的SnapMirror关系的更详细的信息。 如果A *显示关系在短短的SnapMirror的状态命令的形式输出,然后多余的信息有关这种关系的特殊地位,是可见的,只有与- l选项。

如果给出了- t选项,输出显示之间的关系是积极的。 如果源或目标是参与一个关系被视为积极:

1。 或从网络的数据传输。 2。 读取或写入到磁带设备。 3。 等待更换磁带。
4。 执行本地磁盘上的处理或清理。

如果给出了- q选项,输出显示卷和配额树,停顿或静止。 QUIESCE命令,下面,这意味着什么。

SnapMirror的状态的更多信息,请参见示例部分。

vfiler,status命令显示相关vfiler只的项。 在物理文件管理器,所有vfilers的积极转移条目显示。 只显示无效转让有关vfiler。 得到全面和更具可读性的SnapMirror传输列表的首选方法是运行vfiler运行* SnapMirror的地位 通过所有vfilers,并列出其转让的迭代器。

初始化 [- S] [- K 千字节 ] [- S src_snap] [- C create_dest_snap] [- W] 的目的地

通过网络启动的初始转移。 最初的转让无论是在网络上或从磁带需要更新转移之前可以发生。 必须在目标文件管理器发出初始化命令。 如果目标是一个卷,它必须受到限制(见卷如何检查和限制卷的信息)。 如果目标是配额树,它必须尚不存在(见配额树如何列出配额树的信息)。 如果配额树已经存在,它必须将其改名或删除(使用NFS或CIFS客户端),或SnapMirror的初始化配额树将无法正常工作。

如果SnapMirror的状态命令报告中止初次转让已重新启动检查点,初始化条命令将离开的地方重新开始传输。

- s选项指定源文件管理器和卷或配额树路径,在类似格式des_吨ination参数。 源必须为在snapmirror.conf文件中的目的地的条目相匹配。 如果不匹配,操作打印一条错误消息并中止。 如果- S选项没有设置,使用的是源,在snapmirror.conf文件中的目的地的指定的。 如果没有这样的条目,操作打印一条错误消息并中止。

- k选项集数据通过网络传输的每秒千字节的最高速度。 它是用来扼杀磁盘,CPU和网络使用。 此选项只设置一个传输速度的最大值,它并不能保证转移会那么快。 如果这个选项没有设置,文件管理器传输数据,这 snapmirror.conf文件中的关系(见snapmirror.conf)的KBS设置。 但是,如果不设置此选项,并没有这种关系 snapmirror.conf 文件的KBS设置,文件管理器一样快,因为它可以传输数据。

- c选项只适用于一个配额树初始化。 使用此选项,SnapMirror的命名create_dest_snap目的地后的初始化已成功完成(因此,它并没有竞争与任何持续更新)创建一个快照。 SnapMirror的不锁或删除此快照。create_dest_snap不能hourly.x,nightly.x,或weekly.x,因为这些名称是保留预定快照。

- s选项仅适用于一个配额树初始化。 它指定名为src_snap的SnapMirror传输的配额树快照,而不是创建一个源快照和新的快照传送的配额树。 此选项是用来传输一个特定的快照的内容,例如,它可以将一个数据库在一个稳定的,一致的状态,而采取的快照。 SnapMirror的不锁或删除src_snap。src_snap不能hourly.x,nightly.x,weekly.x,snapshot_for_backup.x或snapshot_for_volcopy.x。

- w选项将导致该命令不返回,一旦最初的转让开始。 相反,它会等待,直到传输完成(或失败),此时将打印完成状态,然后返回。

更新[- S ] [- K 千字节 ] [- S src_snap] [- C create_dest_snap] [- W] 的目的地

对于异步镜像,更新是立即开始从源头到目的地 ,更新的内容源的镜像。

对于同步镜像,快照创建源卷上变得可见目标卷的客户。

必须在目标文件管理器发出更新命令。

- S选项设置传送更新工程,因为它为初始化

- k选项设置油门,在每秒千字节的转移,,用于更新相同,因为它为初始化

- c选项仅适用于配额树更新。 使用此选项的SnapMirror目标create_dest_snap更新完成后,(因此,它并没有竞争与任何持续更新)创建一个快照。 SnapMirror的不锁或删除此快照。create_dest_snap不能hourly.x,nightly.x,或weekly.x,因为这些名称是保留预定快照。

- s选项仅适用于配额树更新。 它指定名为src_snap的SnapMirror传输的配额树快照,而不是创建一个源快照和新的快照传送的配额树。 此选项是用来传输一个特定的快照的内容,例如,它可以将一个数据库在一个稳定的,一致的状态,而采取的快照。 SnapMirror的不锁或删除src_snap。src_snap不能hourly.x,nightly.x,weekly.x,snapshot_for_backup.x或snapshot_for_volcopy.x。

- w选项将导致该命令不返回一旦增量开始传输。 相反,它会等待,直到传输完成(或失败),此时将打印完成状态,然后返回。

静默 目的地

允许在建工程转让的目标完成后,新的转移是不允许启动。 将采取同步模式同步镜子。 更新此卷或配额树的任何进一步的请求将失败,直到SnapMirror的恢复命令适用于它。

此命令具有特殊的意义配额树目的地。 现正由SnapMirror的转移过程中修改的一个配额树的目的地将在它的变化。 这些变化将不会出口到NFS或CIFS客户。 但是,如果在此期间采取的一个快照,快照将包含配额树静默的过渡内容,配额树,将带来一个过渡状态,通过整理或撤消转移的任何更改 。SnapMirror的状态可以报告是否一个配额树是静止或没有。 停顿过程可能需要一段时间才能完成,而SnapMirror的配额树的内容进行更改。 配额树是静止而采取的任何快照将包含一个出口NFS和CIFS客户的内容相匹配,配额树的形象。

恢复 的目标

简历传输到目的地 SnapMirror的恢复命令可用于中止正在进行的SnapMirror停顿或撤消先前完成的SnapMirror停顿 命令恢复的目的地静止状态或静止停顿操作之前,不管它是什么。

打破[- F] 的目的地

打破通过一个snapmirrored目标变成一个正常的读/写卷或配额树一个的SnapMirror关系。 此命令必须在目标文件管理器发出。

- f选项势力之间snaplocked量关系的SnapMirror决裂 ,而不提示为构象。

此命令不会修改snapmirror.conf的文件。 任何预定转移到一个破碎的镜子将失败。

卷,此命令具有同等效力卷选项关闭命令snapmirrored,并会从卷中删除 snapmirrored选项。 fs_size_fixed音量选项,仍将上,它必须从量回收任何磁盘空间的SnapMirror可复制截断手动删除。 (这两卷选项的更​​多信息,请参见“选项”一节和卷)。

一个目的地配额树必须停顿,才可以被打破。

重新同步[- N] [- F] [- S ] [- K 千字节 ] [- S src_snap] [- C create_dest_snap] [- W] 的目的地

重新同步前源断离目的地,将 snapmirrored状态的目标,并使其更新转移的准备。 必须在目标文件管理器发出resync命令。

resync命令,可能会导致对目标数据丢失。 因为它是有效地利用desti_ ñ ATION源副本,任何修改,取得突破后目标将被取消。

对于以前的镜像卷,resync命令有效执行最新的快照,这是共同的源和目标的目标的一个SnapRestore(见卷)。 在大多数情况下,这是最后的快照从源传输到目的地,但它可以是任何的SnapMirror复制的源和目的地的快照。 如果新的数据已写入到目标,因为最新的共同创建快照,该数据将丢失在resync操作。

对于以前的镜像配额树SnapMirror的SnapMirrorcreated从最新的目标卷上的快照文件系统的数据恢复。 与体积的情况下不同,它需要这最后一个快照,以便执行重新同步。

SnapRestore或配额树数据恢复完成后,resync命令启动更新传输。

- n选项报告resync命令的执行会做,但不执行命令。

- f选项强制不提示确认的情况下进行操作。

- S选项设置传送 ,工程同步 ,因为它为初始化

- k选项设置油门,在千字节每秒的传输,, 工程同步,因为它初始化。

- c选项仅适用于对一个配额树重新同步 有了这个选项的SnapMirror快照创建一个名为目标 create_dest_snap后重新同步传输完成(因此,它并没有竞争与任何持续更新) 。 SnapMirror的不锁或删除此快照。create_dest_snap不能hourly.x,nightly.x,或weekly.x,因为这些名称是保留预定快照。

- s选项仅适用于一个重新同步到配额树。 它指定名为src_snap的SnapMirror传输的配额树快照,而不是创建一个源快照和新的快照传送的配额树。 此选项是用来传输一个特定的快照的内容,例如,它可以将一个数据库在一个稳定的,一致的状态,而采取的快照。 SnapMirror的不锁或删除src_snap。src_snap不能hourly.x,nightly.x,weekly.x,snapshot_for_backup.x或snapshot_for_volcopy.x。

- w选项将导致该命令不返回,一旦重新同步开始传输。 相反,它会等待,直到传输完成(或失败),此时将打印完成状态,然后返回。 如果还指定了- n选项,这个选项没有效果。

目的地[- S] [ 来源 ]

列出这个文件管理器上的来源目前已知的所有目的地。 卷,该命令还列出任何级联目的地,这些都是直达目的地的副本的任何卷。 此命令将列出所有它知道的后裔。

- s选项包括在保留上为每个目标源卷的快照上市名。

如果指定了一个特定的源,该卷的唯一目的地将陆续上市。 可以是一个卷的名称或配额树的路径。

释放 源文件管理器体积 | 文件管理器配额树 }

推荐的SnapMirror一定直接镜不再要求更新。

如果某一个目标是不再要求更新,你必须告诉的SnapMirror,以便将不再保留该目标的快照。 此命令将删除不再需要复制到该目的地的快照,并可以用来清理SnapMirror的突破后目标端 ​​发出的SnapMirror,创建快照。

参数,目标是要释放源卷或配额树。 Destination参数应目标Filer和目标卷的名称或目标文件管理器和目标配额树的路径。 从这个命令的参数设置为目的地SnapMirror的命令输出,您可以使用一条线。

存储[- G 几何 ] 目的地tapedevices

转储tapedevices指定目标卷的形象。 这很像SnapMirror的初始化命令,而是从源卷到磁带设备。 您可以使用磁带和检索命令,任何限制卷上执行初始,吸转移。

使用- g选项上的SnapMirror存储优化为特定目标的传统卷磁带。 几何参数是一个字符串,它描述的预期目标的传统卷几何。 它可以收购上使用传统的卷SnapMirror的检索- g命令。 使用此选项可以SnapMirror的检索性能显着提高。 - g选项是唯一与传统卷的有效。

只有卷可以存储或从磁带中检索。 配额树不能被存储或从磁带中检索。

这个命令 tapedevices领域是一个有效的磁带设备commaseparated的清单。 磁带设备名的更多信息,请参阅磁带。

Tape devices are not supported on vfilers. This command runs on the physical filer only.

retrieve { destination tapedevices | -h tapedevice | -g volume }

Restores the image on the tapedevices to the desti_ n ation specified. This is much like the snapmirror initialize command, but from a tape device to a destination volume. If destination is part of a SnapMirror relationship with the source volume from the store performed to create these tapes, the two volumes can be mirrored as if volume had been primed via an initial transfer over the network.

You can use the -h flag to read the header off of the single tapedevice specified. This will provide information on the tape source and index.

The -g option provides the volume geometry string for the specified volume . This string, when given to the snapmirror store -g command, will dramatically improve snapmirror retrieve performance to this volume .

The tapedevices field of this command is a commaseparated list of valid tape devices. See tape for more information on tape device names.

This feature only works for volumes. Qtrees cannot be stored to or retrieved from tape.

Tape devices are not supported on vfilers. This command runs on the physical filer only.

use destination tapedevices

Continues a tape transfer to destination with the specified tapedevices .

If a store or retrieve operation runs out of tape, it will prompt the user to provide another tape. After another tape has been provided, the use command is invoked to tell the SnapMirror process where to find it.

The destination field is specified by filer : volume in the case of retrieve , and filer : tapedevices in the case of store .

The tapedevices field of this command is a commaseparated list of valid tape devices. See tape for more information on tape device names.

Tape devices are not supported on vfilers. This command runs on the physical filer only.

throttle <n> destination

Modifies the throttle value for the snapmirror transfer to the destination with the specified value in kilobytes per second. This sets the maximum speed at which the data is trasfered over the network for the current transfer. A value of zero can be used to disable throttling.

The new value will be used only for the current transfer. The next scheduled transfer will use the kbs value specified in the snapmirror.conf file. If the value for the kbs option in the snapmirror.conf is changed while transfer is going on, then the new value will take effect within two minutes.

abort [ -h ] destination

Aborts currently executing transfers to all specified destination s. It may take a few minutes for a transfer to clean up and abort. This does not stop new updates from starting. If you are interested in stopping further updates use the snapmirror quiesce command.

Any transfer with a restart checkpoint (you can view this via the snapmirror status command) may be restartable; to clear out the restart checkpoint and force any subsequent transfer to start with a fresh snapshot on the source, you can use abort -h on the destination. The -h option specifies that this is a hard abort; the restart checkpoint will be cleared out in addition to the transfer being stopped.

The abort command can be invoked from either the source or the destination filer. However, the -h option is only effective on the destination filer. The option will be ignored if specified on the source filer.

migrate [ -n ] [ -f ] [ -k kilobytes ] [ source_filer :] source_volume [ destination_filer :] desti t ion_volume

snapmirror migrate is run on the filer which holds the source volume. It must be run on two volumes which are already the source and destination of a SnapMirror pair.

snapmirror migrate will transfer data and NFS filehandles from the source_volume to the desti t ion_filer 's destination_volume (if no filer is specified, then migrate assumes the volume is local). If source_filer is specified, then the migrate destination will use that network interface to connect up to the source filer for the transfer of information.

The first thing migrate will do is check the source and destination sides for readiness. Then, it will stop NFS and CIFS service to the source. This will prevent changes to the source volume's data, which will make it appear to clients as though nothing has changed during the migration. It will run a regular SnapMirror transfer between the two volumes. At the end of the transfer, it will migrate the NFS filehandles, bring the source offline, and make the destination volume writable.

The -n flag will make a test run; that is, it will run all the pre-transfer checks, but stop short of transferring data. The -f flag will not prompt the user for confirmation. The -k flag will throttle the speed at which the transfer runs (at kilobytes kilobytes per second), in a manner similar to that used in the snapmirror update command.

簇的注意事项

If one filer in a cluster failover pair goes down, any active transfers are aborted. The SnapMirror scheduler and services will continue for volumes on the downed filer. The configurations of the SnapMirror relationships are taken from the downed filer's snapmirror.access option or snapmirror.allow and snapmirror.conf files.

EXAMPLES

Here are a few examples of use of the snapmirror command:

The following example turns the scheduler on and off:

 toaster> snapmirror on toaster> snapmirror status Snapmirror is on. toaster> snapmirror off toaster> snapmirror status Snapmirror is off. toaster> 

The following example presents the snapmirror status with transfers running. Two are idle destinations (both from fridge); one of these has a restart checkpoint, and could be restarted if the setup of the two volumes has not changed since the checkpoint was made. The transfer from vol1 to arc2 has just started, and is in the initial stages of transferring. The transfer from toaster to icebox is partially completed; here, we can see the number of megabytes transferred.

 toaster> snapmirror status Snapmirror is on. Source Destination State Lag Status fridge:home toaster:arc1 Snapmirrored 22:09:58 Idle toaster:vol1 toaster:arc2 Snapmirrored 01:02:53 Transferring toaster:vol2 icebox:saved Uninitialized – Transferring (128MB done) fridge:users toaster:arc3 Snapmirrored 10:14:36 Idle with restart checkpoint (12MB done) toaster> 

The following example presents detailed status for one of the above snapmirror relationships specified as argument to the command. It displays extra information about base snapshot, transfer type, error message, and last transfer, etc.

 toaster> snapmirror status -l arc1 Snapmirror is on. Source: fridge:home Destination: toaster:arc1 Type: Volume Status: Idle Progress: – State: Snapmirrored Lag: 22:09:58 Mirror Timestamp: Wed Aug 8 16:53:04 GMT 2001 Base Snapshot: toaster(0001234567)_arc1.1 Current Transfer Type: – Current Transfer Error: – Contents: Replica Last Transfer Type: Initialize Last Transfer Size: 1120000 KB Last Transfer Duration: 00:03:47 Last Transfer From: fridge:home 

The following example shows how to get all the volumes and qtrees that are quiesced or quiescing on this filer with the status command.

 filer> snapmirror status -q Snapmirror is on. vol1 has quiesced/quiescing qtrees: /vol/vol1/qt0 is quiesced /vol/vol1/qt1 is quiescing vol2 is quiescing 

The following example starts writing an image of vol1 on toaster to the tape on tape device rst0a and continues with the tape on rst1a . When the second tape is used up, the example shows how to resume the store using a new tape on rst0a .

 toaster> snapmirror store vol1 rst0a, rst1a snapmirror: Reference Snapshot: snapmirror_tape_5.17.100_21:47:28 toaster> SNAPMIRROR: store to toaster:rst0a, rst1a has run out of tape. toaster> snapmirror use toaster:rst0a, rst1a rst0a toaster> Wed May 17 23:36:31 GMT [worker_thread:notice]: snapmirror: Store from volume 'vol1′ to tape was successful (11 MB in 1:03 minutes, 3 tapes written). 

The following example retrieves the header of the tape on tape device rst0a . It then retrieves the image of vol1 from the tape on tape device rst0a .

 toaster> snapmirror retrieve -h rst0a Tape Number: 1 WAFL Version: 12 BareMetal Version: 1 Source Filer: toaster Source Volume: vol0 Source Volume Capacity: 16MB Source Volume Used Size: 11MB Source Snapshot: snapmirror_tape_5.17.100_21:47:28 toaster> toaster> snapmirror retrieve vol8 rst0a SNAPMIRROR: retrieve from tape to toaster:vol8 has run out of tape. toaster> snapmirror use toaster:vol8 rst0a SNAPMIRROR: retrieve from tape to toaster:vol8 has run out of tape. toaster> snapmirror use toaster:vol8 rst0a toaster> snapmirror status Snapmirror is on. Source Destination State Lag Status toaster:rst1a, rst0a toaster:dst1 Unknown – Transferring (17MB done) toaster> Wed May 17 23:54:29 GMT [worker_thread:notice]: snapmirror: Retrieve from tape to volume 'vol8′ was successful (11 MB in 1:30 minutes). 

The following example examines the status of all transfers, then aborts the transfers to volm1 and volm2 , and checks the status again. To clear the restart checkpoint, snapmirror abort is invoked again.

 toaster> snapmirror status Snapmirror is on. Source Destination State Lag Status fridge:home toaster:volm1 Uninitialized – Transferring (10GB done) fridge:mail toaster:volm2 Snapmirrored 01:00:31 Transferring (4423MB done) toaster> snapmirror abort toaster:volm1 volm2 toaster> snapmirror status Snapmirror is on. Source Destination State Lag Status fridge:home toaster:volm1 Snapmirrored 00:01:25 Idle fridge:mail toaster:volm2 Snapmirrored 01:03:11 Idle with restart checkpoint (7000MB done) toaster> snapmirror abort toaster:volm2 toaster> snapmirror status Snapmirror is on. Source Destination State Lag Status fridge:home toaster:volm1 Snapmirrored 00:02:35 Idle fridge:mail toaster:volm2 Snapmirrored 01:04:21 Idle 

The following example examines the status of all transfers, then aborts the transfers to volm1 and volm2 with the -h option and checks the status again. No restart checkpoint is saved.

 toaster> snapmirror status Snapmirror is on. Source Destination State Lag Status fridge:home toaster:volm1 Uninitialized – Transferring (10GB done) fridge:mail toaster:volm2 Snapmirrored 01:00:31 Transferring (4423MB done) toaster> snapmirror abort -h toaster:volm1 toaster:volm2 toaster> snapmirror status Snapmirror is on. Source Destination State Lag Status fridge:home toaster:volm1 Snapmirrored 00:02:35 Idle fridge:mail toaster:volm2 Snapmirrored 01:04:21 Idle 

Here is an example of the use of the snapmirror migrate command:

 toaster> snapmirror migrate home mirror negotiating with destination…. 

This SnapMirror migration will take local source volume home and complete a final transfer to destination toaster:mirror using the interface named toaster. After that, open NFS filehandles on the source will migrate to the destination and any NFS filehandles open on the destination will be made stale. Clients will only see the migrated NFS filehandles if the destination is reachable at the same IP addresss as the source. The migrate process will not take care of renaming or exporting the destination volume.

As a result of this process, the source volume home will be taken offline, and NFS service to this filer will be stopped during the transfer. CIFS service on the source volume will be terminated and CIFS will have to be set up on the destination.

 Are you sure you want to do this? yes nfs turned off on source filer performing final transfer from toaster:home to mirror…. (monitor progress with “snapmirror status”) transfer from toaster:home to mirror successful starting nfs filehandle migration from home to mirror source volume home brought offline source nfs filehandles invalidated destination toaster:mirror confirms migration migration complete toaster> vol status Volume State Status Options root online normal root, raidsize=14 mirror online normal home offline normal toaster> vol rename home temp home renamed to temp you may need to update /etc/exports toaster> vol rename mirror home mirror renamed to home you may need to update /etc/exports toaster> exportfs -a 

NOTES

If a source volume is larger than the replica destination, the transfer is disallowed.

Notes on the snapmirror migrate command:

The migrate command is only a partial step of the process. It is intended to work when an administrator desires to move the data of one volume to another, possibly because they want to move to a new set of disks, or to a larger volume without adding disks.

We intend that migrate be run in as controlled an environment as possible. It is best if there are no dumps or SnapMirror transfers going on during the migration.

The clients may see stale filehandles or unresponsive NFS service while migrate is running. This is expected behavior. Once the destination volume is made writable, the clients will see the data as if nothing has happened.

migrate will not change exports or IP addresses; the new destination volume must be reachable in the same way as the source volume once was.

CIFS service will need to be restarted on the migrate destination.

选项

Here are SnapMirror-related options (see options , protocolaccess , snapmirror , and snapmirror.allow for details on these options):

snapmirror.access
Controls SnapMirror access to a filer.

snapmirror.checkip.enable
Controls SnapMirror IP address checking using snapmirror.allow .

snapmirror.delayed_acks.enable
Controls a SnapMirror networking option.

replication.volume.transfer_limits
Controls increased stream counts. This option is provided to revert stream counts to legacy limits.

replication.volume.reserved_transfers
Guarantees that specified number of volume SnapMirror source/destination transfers always start. This option will reduce the maximum limit on all other transfers types and will be equivalent to maximum number of transfers possible.

snapmirror.enable
Turns SnapMirror on and off. SnapMirror can only be enabled on vfilers which are rooted on volumes.

snapmirror.log.enable
Turns SnapMirror logging on and off.

replication.volume.use_auto_resync
Turns auto resync functionality on and off for Synchronous SnapMirror relations. This option if enabled on Synchronous SnapMirror, destination will update from the source using the latest common base snapshot deleting all destination side snapshots newer than the common base snapshot.

Here are SnapMirror-related volume pseudo-options (see vol for more details):

snapmirrored
Designates that the volume is read-only.

fs_size_fixed
Effectively truncates the filesystem on the destination volume to the size of the source.

Options snapmirror.access , snapmirror.checkip.enable , and snapmirror.enable can be manipulated independently on a per-vfiler basis.

档案

/etc/snapmirror.allow
This file controls SnapMirror's access to a source filer. See snapmirror.allow , for details.

/etc/snapmirror.conf
This file controls SnapMirror schedules and relationships. See snapmirror.conf for details.

/etc/log/snapmirror
This file logs SnapMirror activity. See snapmirror for details.

SEE ALSO

 aggr license options qtree vol tape(4) protocolaccess(8) snapmirror(5) snapmirror.allow(5) snapmirror.conf(5) 


目录表















Categories: Manual Pages Tags: , , , ,

snapmirror.conf basics

April 4th, 2009 Chris Kranz No comments

This search seems to come up quite a lot, so I thought I'd cover it quickly. I'm going to steer away from covering SnapMirror as a whole, and just look at the format of the snapmirror.conf file. I will also steer away from Synchronous SnapMirror as I'm not a huge fan, I prefer SyncMirror!

First, you can find it in /etc/snapmirror.conf. Edit it using either rdfile / wrfile (see “ Basic file manipulation on a filer ” for a bit more on these), or map to /vol/etc and edit them with your favourite text editor (but not Windows Notepad please!). Once you get used to the formatting, you'll be writing these with your eyes closed! Having said that, I usually need to refer to something for reference!

The basic layout is…

source_filer:volume_name destination_filer:volume_name options min hour dom dow

This drops it down into very simple terms, a good reference to start with. The “volume_name” can of course be a QTree if you are doing qsm, but I will concentrate on VSM for now.

The options section is often left blank. Any blank entry from options through the schedule will be filled in with “-”. So if you are setting up SnapManager for Exchange or SQL, you would create a relationship with this setting, do a baseline, then get SMx to manage the replication. Leaving the option as a single “-” assumes you accept the default for all settings. If you define one setting, the others are assumed to stay the defaults.

The options you can choose from are…

  • “kbs=” to limit the transfer speeds to whatever number you define here. This is in kilobytes, so remember to convert it for WAN speeds.

的SnapMirror复制调度的电子表格

February 21st, 2009 Chris Kranz 1 comment

I created an Excel spreadsheet as I was tasked with creating a SnapMirror replication schedule for a customer that only had an 8meg line. The problem was that the replication would fail if more than 1 transferred happened at the same time. So I needed a way of calculating the rate of change, and designing the replication based on this.

The spreadsheet will calculate the snapmirror.conf schedule, but will also give you the commands to create, restrict and initialize the volumes.

VN:F [1.9.11_1134]
这篇文章评分:
评分:0.0 / 10(0票)

Waiting and the Progress Bar

January 22nd, 2009 Chris Kranz No comments

I sent a twitter out last night from my car as I sat in Holyhead waiting for my ferry to Dublin (we live an exotic life). How much of our lives do we waste waiting around for stuff? As an Englishman (in the loosest possible sense), I know how to queue and I do so very politely and quietly!

But then this British past time of queueing and waiting has transcended into the IT world. How many times have you sat there watching a progress bar as something installs, or you wait for something to copy. What happened to multi-tasking?

VN:F [1.9.11_1134]
这篇文章评分:
评分:0.0 / 10(0票)

Categories: General Tags: , ,

SnapMirror failover

January 22nd, 2009 Chris Kranz 8 comments

So I helped a customer a few months ago (before SRM) to script a complete site failover. It will bring the DR site online within about 30 minutes, the scripts are a bit clunky and need a massive re-design, so I thought I'd post the originals here.

This, I think, is a great example of how flexible the NetApp systems are in that you can quickly and easily setup SSH access from a management host and script your heart away! Soon as I get the hang of the API, I'm sure there'll be plenty more info coming along too.

This script will bring all volumes online on the DR filer, what's more, an volume that is labelled as “_vm” at the end (which is a nice naming convention to use for all VMware volumes anyway), will get re-mapped to a new igroup you choose and already have setup for the DR ESX servers.

I've modified this script slightly since writing it to remove filer names, so I don't expect it to work out of the box, as with my other scripts, it's just meant to as an example of how this can be achieved.

VN:F [1.9.11_1134]
这篇文章评分:
评分:0.0 / 10(0票)

Categories: Command Line Tags: , , , ,

Bad Behavior has blocked 1182 access attempts in the last 7 days.

© 2009-2012 克里斯克兰兹所有权利
This site is not affiliated or sponsored in anyway by NetApp or any other company mentioned within.