rem ** Deactivate the snapshop date /T time /T rem 'removevlun' to de-export from the host and 'removevv' to delete the snap. rem admsnap flush -o k: removevlun DMSDOCSSNAP 100 MIGSCOM01 rem naviseccli -h 172.16.8.250 storagegroup -removesnapshot -gname MIGSCOM01 -snapshotname DMSDOCSSNAP -o removevv DMSDOCSSNAP date /T time /T rem admsnap flush -o l: removevlun DMSINDEX3SNAP 101 MIGSCOM01 rem naviseccli -h 172.16.8.250 storagegroup -removesnapshot -gname MIGSCOM01 -snapshotname DMSINDEX3SNAP -o removevv DMSINDEX3SNAP date /T time /T rem admsnap flush -o n: removevlun DMSINDEX2SNAP 102 MIGSCOM01 rem naviseccli -h 172.16.8.250 storagegroup -removesnapshot -gname MIGSCOM01 -snapshotname DMSINDEX2SNAP -o removevv DMSINDEX2SNAP date /T time /T rem admsnap flush -o r: removevlun DMSDOCS2SNAP 103 MIGSCOM01 rem naviseccli -h 172.16.8.250 storagegroup -removesnapshot -gname MIGSCOM01 -snapshotname DMSDOCS2SNAP -o removevv DMSDOCS2SNAP date /T time /T rem admsnap flush -o t: removevlun DMSSQLLOGSNAP 104 MIGSCOM01 rem naviseccli -h 172.16.8.250 storagegroup -removesnapshot -gname MIGSCOM01 -snapshotname DMSSQLLOGSNAP -o removevv DMSSQLLOGSNAP date /T time /T rem admsnap flush -o v: removevlun DMSSQLINDEXSNAP 105 MIGSCOM01 rem naviseccli -h 172.16.8.250 storagegroup -removesnapshot -gname MIGSCOM01 -snapshotname DMSSQLINDEXSNAP -o removevv DMSSQLINDEXSNAP date /T time /T rem admsnap flush -o W: removevlun DMSSQLSERVERSNAP 106 MIGSCOM01 rem naviseccli -h 172.16.8.250 storagegroup -removesnapshot -gname MIGSCOM01 -snapshotname DMSSQLSERVERSNAP -o removevv DMSSQLSERVERSNAP date /T time /T rem admsnap flush -o o: removevlun DMSDOCS3SNAP 107 MIGSCOM01 rem naviseccli -h 172.16.8.250 storagegroup -removesnapshot -gname MIGSCOM01 -snapshotname DMSDOCS3SNAP -o removevv DMSDOCS3SNAP date /T time /T rem admsnap flush -o x: removevlun DMSINDEXSNAP 108 MIGSCOM01 rem naviseccli -h 172.16.8.250 storagegroup -removesnapshot -gname MIGSCOM01 -snapshotname DMSINDEXSNAP -o removevv DMSINDEXSNAP date /T time /T devcon rescan sleep 30 devcon rescan date /T time /T Script that runs on the DMS cluster: rem ** take the resources offline and move to MIGDMS01 date /t time /t start /wait cluster group livelink /offline start /wait cluster group livelink /move:%computername% start /wait cluster group index /offline start /wait cluster group index /move:%computername% start /wait cluster group "SQL Server (MSSQLSERVER)" /offline start /wait cluster group "SQL Server (MSSQLSERVER)" /move:%computername% rem ** bring the disks online on this computer date /t time /t start /wait cluster resource "Disk l:" /online start /wait cluster resource "Disk n:" /online start /wait cluster resource "Disk o:" /online start /wait cluster resource "Disk r:" /online start /wait cluster resource "Disk t:" /online start /wait cluster resource "Disk V:" /online start /wait cluster resource "Disk W:" /online start /wait cluster resource "Disk X:" /online start /wait cluster resource "Disk Y:" /online rem ** flush the drives, stop and start the snapshot session date /t time /t rem admsnap flush -o l: rem admsnap flush -o n: rem admsnap flush -o o: rem admsnap flush -o r: rem admsnap flush -o t: rem admsnap flush -o v: rem admsnap flush -o w: rem admsnap flush -o x: rem admsnap flush -o y: rem admsnap stop -s DMSINDEX3SNAP -o l: rem admsnap stop -s DMSINDEX2SNAP -o n: rem admsnap stop -s DMSDOCS3SNAP -o o: rem admsnap stop -s DMSDOCS2SNAP -o r: rem admsnap stop -s DMSSQLLOGSNAP -o t: rem admsnap stop -s DMSSQLINDEXSNAP -o v: rem admsnap stop -s DMSSQLSERVERSNAP -o w: rem admsnap stop -s DMSINDEXSNAP -o x: rem admsnap stop -s DMSDOCSSNAP -o y: rem admsnap start -s DMSINDEX3SNAP -o l: rem admsnap start -s DMSINDEX2SNAP -o n: rem admsnap start -s DMSDOCS3SNAP -o o: rem admsnap start -s DMSDOCS2SNAP -o r: rem admsnap start -s DMSSQLLOGSNAP -o t: rem admsnap start -s DMSSQLINDEXSNAP -o v: rem admsnap start -s DMSSQLSERVERSNAP -o w: rem admsnap start -s DMSINDEXSNAP -o x: rem admsnap start -s DMSDOCSSNAP -o y: rem ** take the disks back offline date /t time /t start /wait cluster resource "Disk l:" /offline start /wait cluster resource "Disk n:" /offline start /wait cluster resource "Disk o:" /offline start /wait cluster resource "Disk r:" /offline start /wait cluster resource "Disk t:" /offline start /wait cluster resource "Disk V:" /offline start /wait cluster resource "Disk W:" /offline start /wait cluster resource "Disk X:" /offline start /wait cluster resource "Disk Y:" /offline rem ** start the resources on their specified nodes date /t time /t start /wait cluster group "SQL Server (MSSQLSERVER)" /online:migdms01 start /wait cluster group livelink /online:migdms01 start /wait cluster group index /move:migdms02 start /wait cluster group index /online:migdms02 Script that mounts the new Snapshots on MIGSCOM01 rem ** Activate the snapshop with the correct drive letters date /T time /T rem createsv commands below. RW snap by default. The 'parent_vv' is the VV you wish to take a snap of via 'showvv'. rem naviseccli -h 172.16.8.250 storagegroup -addsnapshot -gname MIGSCOM01 -snapshotname DMSDOCSSNAP createsv DMSDOCSSNAP parent_vv rem naviseccli -h 172.16.8.250 storagegroup -addsnapshot -gname MIGSCOM01 -snapshotname DMSINDEX3SNAP createsv DMSINDEX3SNAP parent_vv rem naviseccli -h 172.16.8.250 storagegroup -addsnapshot -gname MIGSCOM01 -snapshotname DMSINDEX2SNAP createsv DMSINDEX2SNAP parent_vv rem naviseccli -h 172.16.8.250 storagegroup -addsnapshot -gname MIGSCOM01 -snapshotname DMSDOCS2SNAP createsv DMSDOCS2SNAP parent_vv rem naviseccli -h 172.16.8.250 storagegroup -addsnapshot -gname MIGSCOM01 -snapshotname DMSSQLLOGSNAP createsv DMSSQLLOGSNAP parent_vv rem naviseccli -h 172.16.8.250 storagegroup -addsnapshot -gname MIGSCOM01 -snapshotname DMSSQLINDEXSNAP createsv DMSSQLINDEXSNAP parent_vv rem naviseccli -h 172.16.8.250 storagegroup -addsnapshot -gname MIGSCOM01 -snapshotname DMSSQLSERVERSNAP createsv DMSSQLSERVERSNAP parent_vv rem naviseccli -h 172.16.8.250 storagegroup -addsnapshot -gname MIGSCOM01 -snapshotname DMSINDEXSNAP createsv DMSINDEXSNAP parent_vv rem naviseccli -h 172.16.8.250 storagegroup -addsnapshot -gname MIGSCOM01 -snapshotname DMSDOCS3SNAP createsv DMSDOCS3SNAP parent_vv sleep 60 date /T time /T devcon rescan date /T time /T sleep 30 date /T time /T rem createvlun commands below. Hard coded LUN numbers 100-108. rem admsnap activate -s DMSDOCSSNAP -d k: createvlun DMSDOCSSNAP 100 MIGSCOM01 rem admsnap activate -s DMSINDEX3SNAP -d l: createvlun DMSINDEX3SNAP 101 MIGSCOM01 rem admsnap activate -s DMSINDEX2SNAP -d n: createvlun DMSINDEX2SNAP 102 MIGSCOM01 rem admsnap activate -s DMSDOCS2SNAP -d r: createvlun DMSDOCS2SNAP 103 MIGSCOM01 rem admsnap activate -s DMSSQLLOGSNAP -d t: createvlun DMSSQLLOGSNAP 104 MIGSCOM01 rem admsnap activate -s DMSSQLINDEXSNAP -d v: createvlun DMSSQLINDEXSNAP 105 MIGSCOM01 rem admsnap activate -s DMSSQLSERVERSNAP -d W: createvlun DMSSQLSERVERSNAP 106 MIGSCOM01 rem admsnap activate -s DMSINDEXSNAP -d x: createvlun DMSINDEXSNAP 107 MIGSCOM01 rem admsnap activate -s DMSDOCS3SNAP -d o: createvlun DMSDOCS3SNAP 108 MIGSCOM01 date /T time /T devcon rescan date /T time /T net share k$=k: net share l$=l: net share n$=n: net share o$=o: net share r$=r: net share t$=t: net share v$=v: net share w$=w: net share x$=x: date /T time /T