-
Snapmirror
操作手册
目录
1Snapmirror
介绍
.............................
..................................................
....................................
2
2
准备工作
.
......................................
..................................................
....................................
2
3
已验证内容
.
.....................................
..................................................
.................................
2
4
操作步骤
.
......................................
..................................................
....................................
3
4.1
配
置
snapmirror
相关参数
<
/p>
........................................
..............................................
3
5.
接管测试
.
.....................................
..................................................
.....................................
4
6.
.
.......................................
..................................................
.................
错
误!未定义书签。
1Snapmirror
介绍
NetApp
SnapMirror
软件具有强大的功能,而且易于使用和管理,它满足了当前的全
球性企业对灾难恢复和
数据分布解决方案的需要,
SnapMirror
软件将尽可
能地为关键应用
程序提供最高的数据可用性和最快的恢复速度。
SnapMirror
技术将数据镜像到一个或多个网络
Filer
上。
SnapMirror
不断地更新镜
像数据,
以确保数据是最新的,
并且能够用于进行灾难恢复、<
/p>
减少磁带备份、
发布只读数据、
在非生产
性
Filer
上进行测试、执行联机数据迁移等等。
2
准备工作
1.
准备存储设备,下面的
pri
表示
主存储,
sec
表示被存储
rror license
3.
确定
源
vol
的大小及
lun
的大小
3
已验证内容
1.
源存储和目标存储上的卷分别保留几个快照
2.
源存储和目标存储上的卷的快照属性设置
Snap sched
Snap reserve
vol options create_ucode on
vol options convert_ucode on
vol options fractional_reserve 0
3.
源存储:
host:volname
,其中
host
可以是
h
ostname
,也可以是
ip
地址<
/p>
目的存储:
hostname
:
volname
主机名必须是
hostname
4.
在做
snapmirror
中,源卷会产生一个快照,目标卷会有两个快照
< br>
在同步时,源卷的快照会传送到目标卷来同步数据。目标卷保留的快照是最近的
两个
快照。
4
操作步骤
4.1
配置
snapmirror
相关
参数
s *
允许所有存储设备可以访问
/etc/
在目的存储上执行
编辑<
/p>
snapmirror
配置文件
在此文件中设置
snapmirror
的执行
方式,同步,半同步或者异步,在设置异步传输时
需要设置传输时间,包括如下几种时间
:
minute
,
hour
,
day-of-
month
,
day_
o
f-week
。
Each field consists of one or more
numbers or ranges. If a field contains more than
one
value, the values
are
separated from each other by a comma. A field
consisting solely
of an asterisk
(‘‘*’’) is
the same as
a
field enumerating all possible legal values for
that field. A field consisting solely of a dash
p>
(‘‘
-
’’)
represents a null value; any
schedule
with a dash in one
of its fields will never run any scheduled
transfers. Values in a field can
take
any of
the following forms:
number
first-last
first-last/step
A value with
a dash in it specifies a range; it is treated as
containing all the values between
first
and
last
,
inclusive.
A
range
value
with
a
slash
specifies
skips
of
step
size
in
the
range.
For
example, the
value of the
entry ‘‘0
-
23/4’’ would be
the same as that of the entry
‘‘0,4,8,12,16,20’’.
minute
Which minutes in each hour to update
on. Values are from 0 to 59.
hour
Which hours in the day to update on.
Values are from 0 to 23.
day-of-month
Which days in the month to update on.
Values are from 1 to 31.
day-of-week
Which days in the week to update on.
Values are from 0 (Sunday) to 6 (Saturday).
3.
编辑
/etc/hosts
文件
先
rdfile
/etc/hosts
,然后
wrfile /etc/hos
ts
,将
ip
地址与存储的主机名的对
应关系添加
到
hosts
表中。
4.
初始化传输配置
snapmirror initialize
-S
pri
:
vol1
sec
:
vol2
rror
failover
Each connection definition is
a single line giving a name to one or two pairs of
IP addresses
along with
a
mode of operation for the connection. The lines
are specified in the following format:
name
=
mode(
source_ip_addr1
,
dest_ip_addr1
) (
source_ip_addr2
,
dest_ip_addr2
)