标签:vmdk
With VMware vSphere 5.5 it’s possible to move VMDK files to different datastores leaving the VM powered on with no service interruption using the Storage vMotion feature.
A scenario where disks location has to be reconfigured occurs when a SQL Server is configured with Data, Logs and TempDB stored on same LUN with Lazy Zeroed VMDK format. To improve its performance, moving the VMDk files in dedicated LUNs it’s a possible configuration to consider.
Since SQL Server on VMware best practices suggest to create dedicated LUNs for Data, Transaction Log and TempDB creating VMDK files with Thick Provision Eager Zeroed format, the process needs to move some virtual disks to different datastores.
Before moving the disks, look at the current SQL Server configuration through Server Manager > Disks (Windows 2012 in this example) because the disk number is not the same as assigned by VMware. In the example disks to move are identified by the numbers 1, 4, 5 > Log, TempDB and Data.
<img class="aligncenter" style="margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;" title="movevmdk02" src=\‘#\‘" //nolabnoparty.com/wp-content/uploads/2014/05/movevmdk02.jpg" alt="movevmdk02" width="600" height="299" border="0" />Looking at the VM Hardware configuration in vSphere Web Client, disks to move are currently located in the datastore named ts421_lun01_raid5.
<img class="aligncenter" style="margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;" title="movevmdk03" src=\‘#\‘" //nolabnoparty.com/wp-content/uploads/2014/05/movevmdk03.jpg" alt="movevmdk03" width="409" height="556" border="0" />
To proceed with move, from vSphere Web Client right click the virtual machine to migrate VMDK files then select Migrate option.
<img class="aligncenter" style="margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;" title="movevmdk04" src=\‘#\‘" //nolabnoparty.com/wp-content/uploads/2014/05/movevmdk04.jpg" alt="movevmdk04" width="409" height="403" border="0" />To hot move VMDKs to different datastores without service interruption, VMware vSphere 5.5 has a feature called Storage vMotion. Select Change datastore option then click Next.
<img class="aligncenter" style="margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;" title="movevmdk05" src=\‘#\‘" //nolabnoparty.com/wp-content/uploads/2014/05/movevmdk05.jpg" alt="movevmdk05" width="600" height="352" border="0" />Since we need to move only some specific disks, click Advanced button.
<img class="aligncenter" style="margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;" title="movevmdk06" src=\‘#\‘" //nolabnoparty.com/wp-content/uploads/2014/05/movevmdk06.jpg" alt="movevmdk06" width="600" height="352" border="0" />For each disk to move, click in Storage field the datastore parameter to change then select Browse.
<img class="aligncenter" style="margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;" title="movevmdk07" src=\‘#\‘" //nolabnoparty.com/wp-content/uploads/2014/05/movevmdk07.jpg" alt="movevmdk07" width="600" height="352" border="0" />Select the correct destination datastore then click OK.
<img class="aligncenter" style="margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;" title="movevmdk08" src=\‘#\‘" //nolabnoparty.com/wp-content/uploads/2014/05/movevmdk08.jpg" alt="movevmdk08" width="600" height="600" border="0" />You can change the Disk format during move as well by clicking the current format (Same format as source) and selecting the new format (i.e. Thick Provision Eager Zeroed).
<img class="aligncenter" style="margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;" title="movevmdk09" src=\‘#\‘" //nolabnoparty.com/wp-content/uploads/2014/05/movevmdk09.jpg" alt="movevmdk09" width="600" height="352" border="0" />When Storage and Disk format parameters have been set, click Next to continue.
<img class="aligncenter" style="margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;" title="movevmdk10" src=\‘#\‘" //nolabnoparty.com/wp-content/uploads/2014/05/movevmdk10.jpg" alt="movevmdk10" width="600" height="352" border="0" />Review selections then click Finish to start migration.
<img class="aligncenter" style="margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;" title="movevmdk11" src=\‘#\‘" //nolabnoparty.com/wp-content/uploads/2014/05/movevmdk11.jpg" alt="movevmdk11" width="600" height="352" border="0" />The Recent Tasks panel shows the migration ongoing status.
<img class="aligncenter" style="margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;" title="movevmdk12" src=\‘#\‘" //nolabnoparty.com/wp-content/uploads/2014/05/movevmdk12.jpg" alt="movevmdk12" width="202" height="126" border="0" />When process completes successfully, the green check is shown.
<img class="aligncenter" style="margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;" title="movevmdk13" src=\‘#\‘" //nolabnoparty.com/wp-content/uploads/2014/05/movevmdk13.jpg" alt="movevmdk13" width="203" height="110" border="0" />Checking the VMDKs location, the files are now stored to datastores previously set.
<img class="aligncenter" style="margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;" title="movevmdk14" src=\‘#\‘" //nolabnoparty.com/wp-content/uploads/2014/05/movevmdk14.jpg" alt="movevmdk14" width="409" height="556" border="0" />Looking at the SQL Server Disks configuration, nothing has changed and no service interruption has been experienced.
<img class="aligncenter" style="margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;" title="movevmdk15" src=\‘#\‘" //nolabnoparty.com/wp-content/uploads/2014/05/movevmdk15.jpg" alt="movevmdk15" width="600" height="299" border="0" />Storage vMotion is a great feature useful to optimize systems maintenance allowing the migration of VMDK files to different datastores and with different disk formats in one shot. Not bad, isn’t it?
Move VMDK files to different datastores using vSphere web client
标签:vmdk
原文地址:http://549687.blog.51cto.com/539687/1825997