已阅读5页,还剩1页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Snapmirror操作手册目录1Snapmirror介绍22准备工作23已验证内容24操作步骤24.1配置snapmirror相关参数25.接管测试36.31Snapmirror介绍NetApp SnapMirror 软件具有强大的功能,而且易于使用和管理,它满足了当前的全球性企业对灾难恢复和数据分布解决方案的需要,SnapMirror 软件将尽可能地为关键应用程序提供最高的数据可用性和最快的恢复速度。SnapMirror 技术将数据镜像到一个或多个网络 Filer 上。 SnapMirror 不断地更新镜像数据,以确保数据是最新的,并且能够用于进行灾难恢复、减少磁带备份、发布只读数据、在非生产性 Filer 上进行测试、执行联机数据迁移等等。2准备工作1.准备存储设备,下面的pri表示主存储,sec表示被存储2.snapmirror license3.确定源vol的大小及lun的大小3已验证内容1.源存储和目标存储上的卷分别保留几个快照2.源存储和目标存储上的卷的快照属性设置Snap sched 0 0 0Snap reserve 0 vol options create_ucode onvol options convert_ucode onvol options fractional_reserve 03.源存储 :host:volname,其中host可以是hostname,也可以是ip地址目的存储:hostname:volname主机名必须是hostname4.在做snapmirror中,源卷会产生一个快照,目标卷会有两个快照在同步时,源卷的快照会传送到目标卷来同步数据。目标卷保留的快照是最近的两个快照。4操作步骤4.1配置snapmirror相关参数1.options snapmirror.access * 允许所有存储设备可以访问2.wrfile /etc/snapmirror.conf 在目的存储上执行编辑snapmirror配置文件在此文件中设置snapmirror的执行方式,同步,半同步或者异步,在设置异步传输时需要设置传输时间,包括如下几种时间:minute ,hour, day-of-month, day_of-week。Each field consists of one or more numbers or ranges. If a field contains more than one value, the valuesare separated from each other by a comma. A field consisting solely of an asterisk (*) is the same asa field enumerating all possible legal values for that field. A field consisting solely of a dash (-)represents a null value; any schedulewith a dash in one of its fields will never run any scheduled transfers. Values in a field can take any ofthe following forms:numberfirst-lastfirst-last/stepA value with a dash in it specifies a range; it is treated as containing all the values between first andlast, 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-monthWhich days in the month to update on. Values are from 1 to 31.day-of-weekWhich days in the week to update on. Values are from 0 (Sunday) to 6 (Saturday).3.编辑/etc/hosts文件先rdfile /etc/hosts,然后wrfile /etc/hosts,将ip地址与存储的主机名的对应关系添加到hosts表中。4.初始化传输配置snapmirror initialize -S pri:vol1 sec:vol25.snapmirror failoverEach connection definition is a single line giving a name to one or two pairs of IP addresses along witha 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 )name This is the name of the connection you would like to define. This name is to be used as the sourcefiler in relationship definitions.mode The mode is optional and specifies the mode in which two IP address pairs will be used. Twomodes are allowed multiplexing and failover mode and are specified by using the multi and failoverkeywords. If not specified, multiplexing mode is used.The multiplexing mode causes snapmirror to use both paths at the same time. If one should fail, it willswitch to use the remaining path only and use both again should the failing path be repaired.Failover mode causes snapmirror to use the first path as the desired path and only use the second path should problems arise with the first path.source_ip_addr1 source_ip_addr2 dest_ip_addr1 dest_ip_addr2 These are resolvable network names or IP addresses that define a path through the network between the source and the destination. The source addresses are the IP addresses of interfaces to use on the source and respectively for the destination. The pairing denotes a path from source to destination.Eg:fridge-con = failover(fridge-gig,icebox-gig)(fridge-slow,icebox-slow)fridge-con:db icebox:db syncor:fridge-con = multipath(fridge-gig,icebox-gig)(fridge-slow,icebox-slow)fridge-con:db icebox:db * * * *5.接管测试1.模拟源lun损坏2.用目的lun接替其工作在sec上执行:snapmirror quiesce vol2snapmirror break vol2(执行此命令以后sec的lun才可以执行写操作)将sec上的lun online及map3.源lun恢复工作,将目的lun上新增的数据恢复到源lun上使用snapmirror反向同步操作在pri上执行操作:snapmirror resync -S sec:vol2 pri:vol1将新增的数据同步到pri 4.删除3中创建的反向同步镜像关系:在pri上执行snapmirror break vol1在sec上执行snapmirror release vol2 pri:vol15.恢复原来的镜像关系,在sec上执行snapmirror resync -S pri:vol1 sec:vol2 snapmirror status查看snapmirror状态6.其他问题1.在/etc/hosts表中,排在前面的地址如果ping不通则不会去找后边的地址ping,即使后边的地址是通的,如下:pri rdfile /etc/hosts#Auto-generated by setup Sat May 18 20:03:47 CST 2013127.0.0.1 localhost10.0.0.123 pri pri-ns010.0.0.125 pri pri-ns110.0.0.124 sec10.0.0.126 secsec rdfile /etc/hosts#Auto-generated by setup Sat May 18 20:04:29 CST 2013127.0.0.1 localhost10.0.0.124 sec sec-ns010.0.0.126 sec sec-ns110.0.0.125 pri10.0.0.123 priPri是主存储,sec是备存储。如果将pri的10.0.0.125端口down掉,则备存储无法向主存储发起snapmirror请求,镜像会失败,如果是10.0.0.123端口down掉,则不会,镜像关系还正常。7.做法二:/etc/hosts配置(使用mode配置)在hosts表中存储的是ip地址与配置此地址的接口名的对应关系,如下所示:pri rdfile /etc/hosts10.0.0.123 pri-ns010.0.0.125 pri-ns110.0.0.124 sec-ns010.0.0.126 sec-ns1sec rdfile /etc/hosts10.0.0.123 pri-ns010.0.0.125 pri-ns110.0.0.124 sec-ns010.0.0.126 sec-ns1sec rdfile /etc/snapmirror.confpri=failover(pri-ns0,sec-ns0) (pri-ns1,sec-ns1)pri:vol1 sec:vol2 - * * * *sec options snapmirror.accesssnapmirror.access host=pri-ns0,pri-ns1 /etc/snapmirror.conf配置如下:sec rdfile /etc/snapmirror.confpri=failover(pri-ns0,sec-ns0) (pri-ns1,sec-ns1)pri:vol1 sec:vol2 - * * * *当pri-ns0接口down以后,根据failover配置会进行接管操作,使snapmirror
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年上海大学单招职业技能测试题库附答案详解(综合题)
- 2026年云南林业职业技术学院单招职业技能考试题库附参考答案详解(培优)
- 2026年云南城市建设职业学院单招职业倾向性考试题库完整答案详解
- 2026年伊犁职业技术学院单招职业倾向性测试题库带答案详解(黄金题型)
- 2026年仙桃职业学院单招职业适应性测试题库含答案详解(基础题)
- 2026年上海师范大学天华学院单招综合素质考试题库及1套参考答案详解
- 2026年云南省思茅市单招职业适应性测试题库及参考答案详解1套
- 2026年云南省怒江傈僳族自治州单招职业适应性测试题库带答案详解(培优)
- 2026年云南体育运动职业技术学院单招职业技能考试题库带答案详解(b卷)
- 2026年云南交通运输职业学院单招职业技能测试题库含答案详解(培优)
- 全球合作伙伴营销洞察报告
- 2026年山东交通职业学院单招职业技能考试题库及答案详解一套
- (新版!)“十五五”教育事业发展专项规划
- DRG支付改革对医院运营的影响及应对
- 2026年湖南环境生物职业技术学院单招职业倾向性测试题库必考题
- 胸痛患者护理健康宣教
- 熔盐储热材料研发-洞察与解读
- 供热管网系统运行工国家职业标准(征求意见稿)
- 基因组学与基因表达数据分析-洞察阐释
- ICD起搏器术前护理
- 超临界二氧化碳循环发电机组启动调试导则
评论
0/150
提交评论