IBM Copy Service--Flashcopy Introduction

简介:

IBM提供了3种copy service的高级特性 
1、flashcopy 
2、volumecopy 
3、Enhanced remote mirroring(ERM)

本篇主要讲述flashcopy,volumecopy和ERM会在接下来的篇章中讲述。 
(1)、先来看下flashcopy在redbook中的描述

  A FlashCopy is a virtual logical drive that is a point-in-time (PiT) image of a real logical drive. The FlashCopy is the logical equivalent of its complete physical source, at the time created, but it requires less physical disk space and is created quickly when compared to the time required to create a full copy of the source.(Flashcopy是一个真实lun的PiT image,它只需要很少的物理磁盘空间,和创建完整的copy相比,flashcopy创建的很快,因为repository只用于存储自从它创建以来改变操作)。

  The real logical drive that is copied is known as the base logical drive. You can create up to four FlashCopies from each base logical drive. When you create a FlashCopy, the controller suspends write operations to the base logical drive for a few seconds as it creates a FlashCopy repository logical drive. The repository is a physical logical drive where FlashCopy metadata and copy-on-write data are stored.【当创建flashcopy时,控制器暂停源卷的写操作几秒钟,因为它在创建flashcopy repository lun。这个repository是储存flashcopy元数据和copy-on-write数据的物理LUN】

Using the FlashCopy feature requires less disk space, because the repository logical drive is used for storing only data change operations that have been made since its creation. Because the FlashCopy is not a full physical copy, if the source logical drive is damaged, the FlashCopy logical drive itself cannot be used for recovery.【flashcopy只占用磁盘很少空间,因为flashcopy不是完整的物理拷贝,因此如果源卷damaged,flashcopy也不能用于恢复】

(2)、Flashcopy能用于以下一些目的:

----Performing backup images

----Creating a temporary test image

----Creating a source image for a VolumeCopy operation that can be copied without extended effects to the production operations.

 

(3)、具体原理如下图,正如上面所说的,repository lun只存储了一些metadata pointer map和copy-on-wirte的数据。由于不是真正的copy数据,因此创建速度很快。

Image(3)

  
当创建flashcopy时,控制器暂停源卷的写操作几秒钟,因为它在创建flashcopy repository lun。这个repository是储存flashcopy元数据和copy-on-write数据的物理LUN。 由此我们可以猜测,如果base lun的数据改变较频繁,那么repository lun增长的也会较快,在创建flashcopy时默认大小是base lun的20%,但是这个数值可以调整,也可在flashcopy创建完成之后调整。但是万一repository 满了,但管理员还不知道怎么办呢?会有两种策略: 
1、base Lun继续写,flashcopy lun不再valid,这是默认策略,这种方式可以保证应用继续写数据。 
2、base lun不能写,flashcopy lun 依旧是valid,因为没有新的copy-on-write数据生成,这种方式为了保证repository lun是可用于恢复的,就禁止主机应用再往base lun上继续写数据。

  
(4)、对base lun 使用defragmentation,会导致base lun每个数据块的copy-on-write,这会导致当defragmentation完成时,flashcopy repository lun满了。为了阻止这种情况发生,在base lun defragmentation时,要保证flashcopy repository lun是base lun的105%。这是保证 base lun每个数据块copy-on-write的最小值。

注:defragmentation,按照字面意思即“碎片整理”,但这不是我们经常听说的文件系统层面的碎片整理,具体的内容会在《IBM DS Storage Other function》中讲述。

 

(5)、recreate flashcopy

如果不需要flashcopy了,可以disable它,不一定非得删除。如果哪一天想对同样的base lun创建flashcopy,可以使用re-create

recreate flashcopy会删除原先repository lun上所有的copy-on-write数据。

recreating flashcopy invalidates the current FlashCopy and creates a new point-in time copy。 

 

PS:flashcopy做起来很简单,具体的操作及其用于恢复的步骤请见下篇《IBM copy service-Flashcopy 实验》




本文转自 taojin1240 51CTO博客,原文链接:http://blog.51cto.com/taotao1240/1002206,如需转载请自行联系原作者
目录
相关文章
|
12月前
|
开发工具
IBM Watson提供的认知计算服务介绍
IBM Watson提供的认知计算服务介绍
|
传感器 人工智能 自然语言处理
IBM Watson 持续扩张,认知计算正悄然改变我们的生活
在去年 IBM 发布的一则很有创意的广告中,Watson 用 IBM 最新的认知计算机咨询单元与 Bob Dylan 聊了半分钟。Watson 说它每秒能读 8 亿页,并识别出 Dylan 作品中常用的主题,比如时间流逝和爱情消逝。
299 0
|
物联网 区块链 网络架构
带你读《基于区块链的物联网项目开发》之一:了解物联网并在IBM Watson物联网平台上开发
本书首先概述当前业务场景中的物联网概念,帮助读者在IBM Watson物联网平台上开发自己的设备,并使用Watson和Intel Edison创建物联网解决方案。之后介绍如何利用Hyperledger框架开发区块链网络,以及如何创建自己的集成区块链和物联网解决方案。接下来的章节讲述了如何在IBM Cloud平台利用物联网来实现端到端的区块链解决方案。最后,你将掌握如何将物联网和区块链技术融合,利用实践和驱动程序来开发实用集成解决方案。
|
人工智能
IBM Watson被曝给出错误癌症治疗建议,是悲剧还是误会?丨科技云·视角
曾经是公众心目中“人工智能”代名词的IBM Watson,在近4年砸下几百亿美元的研发投入后,前景反而愈发暗淡。医生抱怨Watson给出错误判断,多家医院终止了与Watson肿瘤相关项目,Watson真的能治病吗? 近日,外媒Stat News爆出了IBM的一份内部文件,其中提及Watson计算机经常给出错误的癌症治疗建议,比如给一个已经大出血的癌症病人开了有可能会导致出血的药。
9328 0
|
人工智能
IBM Watson健康部门裁员:花重金收购的医疗科技公司成重灾区
消息人士称,IBM Watson Health正在裁员50%至70%,之前收购的三家医疗科技公司的员工成为这次裁员的重灾区。同时,AI医疗行业数据不完整、隐私等问题,以及巨头之间的竞争,都给IBM Watson Health造成了压力。
1680 0
|
机器学习/深度学习 人工智能 物联网