Moving the vCenter Server to a different datastore
search cancel

Moving the vCenter Server to a different datastore

book

Article ID: 305947

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

This article provides steps for migrating a virtual machine that has VMware vCenter Server and the virtual machine running the vCenter Servers SQL Server to a different datastore.


Symptoms:



Environment

VMware vCenter Server 4.1.x
VMware vSphere ESXi 5.5
VMware vCenter Server 5.0.x
VMware ESX Server 2.5.x
VMware ESX Server 1.x
VMware vCenter Server 5.5.x
VMware vCenter Server 4.0.x
VMware ESX 4.1.x
VMware vCenter Server 5.1.x
VMware ESXi 4.0.x Installable
VMware ESX Server 3.0.x
VMware ESXi 3.5.x Installable
VMware ESX Server 1.5.x
VMware ESX Server 2.0.x
VMware ESX Server 2.1.x
VMware ESXi 4.1.x Installable
VMware vSphere ESXi 5.1
VMware vSphere ESXi 5.0
VMware ESX 4.0.x
VMware ESX Server 3.5.x

Resolution

To migrate the virtual machine and SQL server to a different datastore, use one of these methods:

Note: The ESX\ESXi host must be able to see the source and target datastores.

  • If available, use Storage vMotion to migrate the virtual machines vmdk files to a new datastore.
  • Manually move the files of vCenter Server and the SQL server virtual machines.

To manually move the files of vCenter Server and the SQL server virtual machines:

  1. Close all VMware vSphere Client connections to vCenter Server.
  2. Connect vSphere Client directly to the ESXi\ESX host where vCenter Server and SQL server virtual machines are running.
  3. Shutdown the vCenter Server virtual machine.
  4. Shutdown the SQL server virtual machine.
  5. Right-click the vCenter Server and SQL server virtual machines in the inventory and choose Remove from Inventory.
  6. Using Datastore browser, create the destination folders, right-click the virtual machine files, and copy them.

    Note: Alternatively, you can also run this command to clone the vmdk files:

    vmkfstools -i source disk cloned disk

  7. In the vSphere Client, browse the new datastore and add the copied virtual machines to inventory.

    To add the copied virtual machines:
    1. Locate the .vmx file.
    2. Right-click and choose Add to Inventory.

  8. In the vSphere Client, start the SQL server virtual machine and verify that SQL server is up and running.
  9. In the vSphere client, start the vCenter Server virtual machine.
  10. Close all vSphere Client connections to the host.
  11. Open a vSphere Client connection to vCenter Server.
  12. Remove any orphaned virtual machines from the Inventory.


Additional Information


Déplacer le vCenter Server sur une autre banque de données
vCenter Server を別のデータストアに移動する
将 vCenter Server 移动到其他数据存储