FLASHCOPY

SMcli 192.168.19.35 192.168.19.36 -p vmware -c "recreateFlashCopy logicalDrive[\"ERM_QDISK-1\"\"ERM_Datavg-1\"\"ERM_Undovg-1\"] warningThresholdPercent=70;"

VC

SMcli 192.168.19.35 192.168.19.36 -p vmware -c "recopy volumeCopy target[\"V_Qdisk\"] source[\"ERM_QDISK-1\"] copyPriority=highest;"

SMcli 192.168.19.35 192.168.19.36 -p vmware -c "recopy volumeCopy target[\"V_Datavg\"] source[\"ERM_Datavg-1\"] copyPriority=highest;"

SMcli 192.168.19.35 192.168.19.36 -p vmware -c "recopy volumeCopy target[\"V_Undovg\"] source[\"ERM_Undovg-1\"] copyPriority=highest;"

STOP FC

SMcli 192.168.19.35 192.168.19.36 -p vmware -c "disableFlashCopy logicalDrive [\"ERM_QDISK-1\"\"ERM_Datavg-1\"\"ERM_Undovg-1\"];"



1.假设环境参数

Controller IP : 192.168.128.101 / 192.168.128.102

Valume Name : Volume (Source)

Volume -V1 (Target)

Volume -1 (FlashCopy)

2.主要命令

(1) Create Flashcopy(建立一个Flashcopy)

SMcli 192.168.128.101 192.168.128.102 -c "create FlashCopyLogicalDrive baseLogicalDrive=\"Volume\";"

(2) Recreate Flashcopy(重新建立Flashcopy,空间为原Volume 的20%)

SMcli 192.168.128.101 192.168.128.102 -c "recreateFlashCopy logicalDrive[\"Volume-1\"]

warningThresholdPercent=20;"

(3) Stop Flashcopy(停止Flashcopy)

SMcli 192.168.128.101 192.168.128.102 -c "disableFlashCopy logicalDrive [\"Volume \"];"

(4) Create VolumeCopy (建立VolumeCopy Copy 的优先值:低)

SMcli 192.168.128.101 192.168.128.102 -c "start logicaldrivecopy source=\"Volume-1\" target=\"Volume-V1\" copyPriority=low;"

(5) Show VolumeCopy(列出VolumeCopy)

SMcli 192.168.128.101 192.168.128.102 -c "show volumeCopy allLogicalDrives;"

(6) Stop VolumeCopy(停止VolumeCopy)

SMcli 192.168.128.101 192.168.128.102 -c "stop volumeCopy target[\"Volume-V1\"]

source[\"Volume-1\"];"

(7) Set VolumCopy (设定VolumeCopy 的优先值)

SMcli 192.168.128.101 192.168.128.102 -c "set volumeCopy target[\"Volume-V1\"] source[\"Volume-1\"] copyPriority=highest targetReadOnlyEnabled=false;"

3.批处理与自动排程

(1) Recreate Flashcopy(ReFlashcopy_01.bat)

SMcli 192.168.128.101 192.168.128.102 -c "recreateFlashCopy logicalDrive[\"Volume-1\"]

warningThresholdPercent=20 repositoryFullPolicy=failBaseWrites;"

(2) Recreate VolumeCopy(ReVolumeCopy_01.bat)

SMcli 192.168.128.101 192.168.128.102 -c "start logicaldrivecopy source=\"Volume-1\" target=\"Volume-V1\" copyPriority=low;"

(3) Stop Flashcopy(StopFlashcopy _01.bat)

SMcli 192.168.128.101 192.168.128.102 -c "disableFlashCopy logicalDrive [\"Volume \"];"