flashcopy做起来非常简单,只需点击几下就搞定。要按照下面这个步骤来操作。

To create a FlashCopy drive:


1. Stop/suspend host application I/Os.


2. Launch the Create FlashCopy Logical Drive wizard.


3. Create the FlashCopy Logical Drive using the wizard.


4. Restart the application.




1、右击Lun,选择“create flashcopy logical drive”


IBM copy service--flashcopy 实验_第1张图片

2、



3、


IBM copy service--flashcopy 实验_第2张图片

4、这里只是为了演示就选择“simple”,当然advanced 配置起来也很简单


IBM copy service--flashcopy 实验_第3张图片


5、The FlashCopy repository logical drive is created to store FlashCopy metadata (data about the FlashCopy) and any copy-on-write data needed during the life of the FlashCopy logical drive. By default the FlashCopy repository logical drive’s capacity is set to 20% of the base logical drive's capacity. In general, this capacity is sufficient.


默认情况下,flashcopy repository lun 是base lun的20%


IBM copy service--flashcopy 实验_第4张图片


6、到这一步flashcopy就创建完了  

IBM copy service--flashcopy 实验_第5张图片

7、如图中的Day1-1就是flashcopy lun,Day1-R1就是flashcopy repository lun  

IBM copy service--flashcopy 实验_第6张图片


Tips:


1、flashcopy repository lun不得小于8MB


2、如果IO很大,flashcopy 可以设置的大点


当然flashcopy的目的其中之一就是可以用来做数据恢复,下面就讲述使用flashcopy 来恢复数据的两种方式:    



rollback 步骤

很悲催,之前做实验的时候截图都记下来了,但是在写这个blog时从原先记录文档中剪切的,但是到了这里就没了,悲剧的是原图又被我删掉了。。。没办法,只能记录些大体的步骤了。

《方法一》--通过repository lun的rollback功能恢复

1、源lun通过iscsi挂载给主机,标示为“E”盘,然后对源lun做flashcopy

2、删除几个文件

3、卸载卷E

4、对flashcopy lun 执行rollback

文件成功恢复

Tips: 在执行rollback之前,一定要卸载掉挂载的卷。


《方法二》--直接使用repository 来恢复

还有一种方式是通过repository lun来恢复,即在误删除文件后,将repository lun挂载到主机,此时主机可继续读写lun,数据写到repository 中。文件也能成功恢复。

Tips:在Storage Manager中将lun_1-1这个repository lun映射到主机,移除lun_1和主机间的映射。