码迷,mamicode.com
首页 > Web开发 > 详细

Move VMDK files to different datastores using vSphere web client

时间:2016-07-13 12:02:25      阅读:311      评论:0      收藏:0      [点我收藏+]

标签: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" />

 

Procedure

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!