I hope you all enjoyed my tutorial on how to "Provision a CIFS Share for SMB 3.0 Environments (Windows Server 2012) using SCVMM 2012 R2" .
In this blog post , I would demonstrate how you can leverage NetApp SMI-S Provider for SCVMM 2012 R2 based Storage Live Migration using ODX based copy.
Copy offload provides a mechanism to perform full-file or subfile copies between two directories residing on remote servers, where the server can be the same or different. Here, the copy is created by copying data between the servers (or the same server if both source and destination files are on the same server) without the client reading the data from the source and writing to the destination.
This reduces the client/server processor/memory utilization and minimizes network I/O bandwidth. With Windows Server 2012, Microsoft introduces a copy offload mechanism, which allows you to offload the activity of copying files between two servers to the storage system.
Data ONTAP SMI-S 5.1 supports ODX with the System Center 2012 R2, Windows Server 2012 and clustered Data ONTAP 8.2.1.
We would start by creating two cluster shared volumes (csvlun1, csvlun2) on a storage pool / volume residing on Clustered Data ONTAP 8.2.1 using SCVMM 2012 R2 console and map it to the Hyper-V cluster, for more details on how to create CSV's and map them to Hyper-V hosts please refer to my previous blog on how "Use NetApp SMI-S Provider for Hyper-V Hosts Storage Management using SCVMM 2012 R2 (Create and Map LUN's to Hyper-V hosts in SCVMM)"
Once these LUN's get mapped to the Hyper-V cluster, they would show up under disks in Failover Cluster Manager.
Next create a highly available VM using SCVMM 2012 R2 console and place it on csvlun1 (C:\ClusterStorage\Volume3). Create the VM using a HA template or vhdx placed in the VMM library.
Once the VM get created we will proceed with its migration, we would "Storage Live Migrate" the VM from the current csvlun1 (C:\ClusterStorage\Volume3) to csvlun2 (C:\ClusterStorage\Volume4).
On the SCVMM console, right click select the VM and click on "Migrate Storage", select the storage location for VM configuration as "C:\ClusterStorage\Volume4", click on next and move.
Wait for the job to complete and verify that the storage migration got successfully completed. SCVMM offload's the live and live storage migration job to the platform(in this case HyperV) and it uses ODX transfers if the underlying storage supports it.
SCVMM 2012 R2 does not have the capability yet to show that in VMM jobs’ details.
Once the Migration completes verify that the storage migration got successfully completed and the new storage location for the vhdx files shows up as csvlun2 (C:\ClusterStorage\Volume4).
Similarly you can execute storage live migrate VM's across SMB shares and utilize ODX benefits.
I hope that you have enjoyed this blog entry and have found this information helpful.
In my next blog i would show you steps on how you can use SMI-S for rapid provisioning of vm's using Library server based SAN-COPY using SCVMM2012R2.