{"id":9152,"date":"2014-06-02T07:01:17","date_gmt":"2014-06-02T06:01:17","guid":{"rendered":"http:\/\/nolabnoparty.com\/?p=9152"},"modified":"2023-07-16T11:22:04","modified_gmt":"2023-07-16T09:22:04","slug":"move-vmdk-files-different-datastores","status":"publish","type":"post","link":"https:\/\/nolabnoparty.com\/en\/move-vmdk-files-different-datastores\/","title":{"rendered":"Move VMDK files to different datastores"},"content":{"rendered":"<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border: 0px;\" title=\"movevmdk01\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/05\/movevmdk01.jpg\" alt=\"movevmdk01\" width=\"602\" height=\"202\" border=\"0\" \/><\/p>\n<p>With VMware vSphere 5.5 it\u2019s possible to move VMDK files to different datastores leaving <strong>the VM powered on<\/strong> with no service interruption using the Storage vMotion feature.<\/p>\n<p>A scenario where disks location has to be reconfigured occurs when a SQL Server is configured with Data, Logs and TempDB stored on <strong>same LUN<\/strong> with <strong>Lazy Zeroed VMDK format<\/strong>. To improve its performance, moving the VMDk files in dedicated LUNs it's a possible configuration to consider.<!--more--><\/p>\n<p>Since SQL Server on VMware best practices suggest to create <strong>dedicated LUNs<\/strong> for Data, Transaction Log and TempDB creating VMDK files with <strong>Thick Provision Eager Zeroed format<\/strong>, the process needs to move some virtual disks to different datastores.<\/p>\n<p>Before moving the disks, look at the current <strong>SQL Server<\/strong> configuration through <strong>Server Manager &gt; Disks<\/strong> (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 &gt; Log, TempDB and Data.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"movevmdk02\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/05\/movevmdk02.jpg\" alt=\"movevmdk02\" width=\"600\" height=\"299\" border=\"0\" \/><\/p>\n<p>Looking at the <strong>VM Hardware<\/strong> configuration in vSphere Web Client, disks to move are currently located in the datastore named <em>ts421_lun01_raid5<\/em>.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"movevmdk03\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/05\/movevmdk03.jpg\" alt=\"movevmdk03\" width=\"409\" height=\"556\" border=\"0\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Procedure<\/h2>\n<p>To proceed with move, from <strong>vSphere Web Client<\/strong> right click the virtual machine to migrate VMDK files then select <strong>Migrate<\/strong> option.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"movevmdk04\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/05\/movevmdk04.jpg\" alt=\"movevmdk04\" width=\"409\" height=\"403\" border=\"0\" \/><\/p>\n<p>To hot move VMDKs to different datastores without service interruption, VMware vSphere 5.5 has a feature called <strong>Storage vMotion<\/strong>. Select <strong>Change datastore<\/strong> option then click <strong>Next<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"movevmdk05\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/05\/movevmdk05.jpg\" alt=\"movevmdk05\" width=\"600\" height=\"352\" border=\"0\" \/><\/p>\n<p>Since we need to move only some specific disks, click <strong>Advanced<\/strong> button.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"movevmdk06\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/05\/movevmdk06.jpg\" alt=\"movevmdk06\" width=\"600\" height=\"352\" border=\"0\" \/><\/p>\n<p>For each disk to move, click in <strong>Storage<\/strong> field the datastore parameter to change then select <strong>Browse<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"movevmdk07\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/05\/movevmdk07.jpg\" alt=\"movevmdk07\" width=\"600\" height=\"352\" border=\"0\" \/><\/p>\n<p>Select the correct destination datastore then click <strong>OK<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"movevmdk08\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/05\/movevmdk08.jpg\" alt=\"movevmdk08\" width=\"600\" height=\"600\" border=\"0\" \/><\/p>\n<p>You can change the <strong>Disk format<\/strong> during move as well by clicking the current format (Same format as source) and selecting the new format (i.e. Thick Provision Eager Zeroed).<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"movevmdk09\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/05\/movevmdk09.jpg\" alt=\"movevmdk09\" width=\"600\" height=\"352\" border=\"0\" \/><\/p>\n<p>When <strong>Storage and Disk format<\/strong> parameters have been set, click <strong>Next<\/strong> to continue.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"movevmdk10\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/05\/movevmdk10.jpg\" alt=\"movevmdk10\" width=\"600\" height=\"352\" border=\"0\" \/><\/p>\n<p>Review selections then click <strong>Finish<\/strong> to start migration.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"movevmdk11\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/05\/movevmdk11.jpg\" alt=\"movevmdk11\" width=\"600\" height=\"352\" border=\"0\" \/><\/p>\n<p>The <strong>Recent Tasks<\/strong> panel shows the migration ongoing status.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"movevmdk12\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/05\/movevmdk12.jpg\" alt=\"movevmdk12\" width=\"202\" height=\"126\" border=\"0\" \/><\/p>\n<p>When <strong>process completes<\/strong> successfully, the green check is shown.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"movevmdk13\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/05\/movevmdk13.jpg\" alt=\"movevmdk13\" width=\"203\" height=\"110\" border=\"0\" \/><\/p>\n<p>Checking the <strong>VMDKs location<\/strong>, the files are now stored to datastores previously set.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"movevmdk14\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/05\/movevmdk14.jpg\" alt=\"movevmdk14\" width=\"409\" height=\"556\" border=\"0\" \/><\/p>\n<p>Looking at the <strong>SQL Server<\/strong> Disks configuration, nothing has changed and no service interruption has been experienced.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" style=\"margin: 0px auto; padding-left: 0px; padding-right: 0px; float: none; padding-top: 0px; border-width: 0px;\" title=\"movevmdk15\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/2014\/05\/movevmdk15.jpg\" alt=\"movevmdk15\" width=\"600\" height=\"299\" border=\"0\" \/><\/p>\n<p>Storage vMotion is a great feature useful to optimize systems maintenance allowing the migration of VMDK files to <strong>different datastores and with different disk formats<\/strong> in one shot. Not bad, isn't it?<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nolabnoparty.com\/wp-content\/uploads\/images\/firma.jpg\" alt=\"firma\" title=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With VMware vSphere 5.5 it\u2019s 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.<\/p>\n","protected":false},"author":3,"featured_media":9137,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":{"linkedin_93tdZWzMZc_93tdZWzMZc":"","facebook_2879994398731222_17841400390232720":"","twitter_113568041_113568041":"","mastodon_115463926174894442_115463926174894442":""},"rop_publish_now_history":[],"rop_publish_now_status":"pending","footnotes":""},"categories":[903,2701],"tags":[885,954,718,952,953],"class_list":["post-9152","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vmware-en","category-vsphere-en","tag-datastore","tag-move-en","tag-sql-en","tag-storage-vmotion-en","tag-vmdk-en","has_thumb"],"_links":{"self":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts\/9152","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/comments?post=9152"}],"version-history":[{"count":0,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/posts\/9152\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/media\/9137"}],"wp:attachment":[{"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/media?parent=9152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/categories?post=9152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nolabnoparty.com\/en\/wp-json\/wp\/v2\/tags?post=9152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}