IBM copy service--flashcopy 實驗

IBM copy service--flashcopy 實驗

2012-09-27 11:34:41

標籤:recovery IBM DS copy service flashcopy rollback

原創作品,允許轉載,轉載時請務必以超鏈接形式標明文章 原始出處 、作者信息和本聲明。否則將追究法律責任。http://taotao1240.blog.51cto.com/731446/1007957

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”


Image(6)

2、


Image(7)


3、


Image(8)

4、這裏只是爲了演示就選擇“simple”,當然advanced 配置起來也很簡單


Image(9)


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%


Image(10)


6、到這一步flashcopy就創建完了 

Image(11)

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

Image(12)


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之前,一定要卸載掉掛載的卷,否則在執行rollback後會執行各種奇怪的問題!在測試中我就遇到了這個問題。

《方法二》--直接使用repository 來恢復

還有一種方式是通過repository lun來恢復,即在誤刪除文件後,將repository lun掛載到主機,此時主機可繼續讀寫lun,數據寫到repository 中。文件也能成功恢復。

Tips:在Storage Manager中將lun_1-1這個repository lun映射到主機,移除lun_1和主機間的映射。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章