ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • VVF 9 and VCF 9
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Windows Server 2025
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

Rename VMDKs to avoid Backup conflicts

By Vladan SEGET | Last Updated: June 7, 2017

Shares

What if you end up with the same vmdk file name on different datastores?

A simple case scenario that can happens:

A single VM has several hard disk attached to it. The hard disk VMDK files are located on different datastores. When creating a new hard disk which location is on different datastore to a VM, the name given to this VMDK is the same as the first VMDK.

For exemple, you VM has a disk called TS01.vmdk which is located on DATASTORE1, and you create a second disk located on DATASTORE2. This disk takes the same name as the first one…. This is not a problem for VMware, but it is for third party backp products like Symantec Backup Exec 2010. In fact what happens to the backup job wanting to backup a VM like this? The VMDK is marked as a corrupted and the job fails, so it's impossible to restore either.

What's the solution? VMware KB had give me an simple answer what to do in the case like this. You'll have to use vmkfstools via command line to do the job. Don't worry, it's not difficult.

How to:

01. First, make sure that the VM has NO Snapshots. Then power down your VM go to menu Edit Settings.

On the next screen you just go to the hard disk you want to rename. Select the hard disk and click the remove button. The screen change and you have the possibility to check a radio button to delete the disk from datastore. Don't check this radio button. Otherwise your disk gets deleted..

02. Validate your choice on clicking OK.

03. Then you must connect to the console of the ESX server to which the datastore2 is attached to. Use putty or go directly to the server room.

04. Via putty navigate to the folder where the hard disk is located and execute following command:
vmkfstools -E <old_name> <new_name>

So in our case the command looks like this (I'm renaming from ts01.vmdk to ts01_2.vmdk):

vmkfstools -E ts01.vmdk ts01_2.vmdk

05. Then go to your VI client and add the renamed disk back to the virtual machine. In the Inventory browser by right clicking the datastore and where the VM is stored and select “Browse Datastore”, select the folder of the VM than right click the vmx file and select “Add to Inventory”.

This works fine for ESX 4, but to be able to use it with ESXi 4 you have several choices:

01. You can use the unsupported (Tech Support Mode) to get to the console of ESXi 4 since the CLI tools won't work for writing data in the free version of ESXi 4.

02. If your ESXi 4 is licensed with paid VMware License you can use PowerCLI or VMA to do the job.

Shares
Vote !

| Filed Under: Server Virtualization Tagged With: how-to rename VMDK, rename VMDK

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Why NordVPN is Your Must-Have for Business Security and Personal Freedom
  • Agentless Backup Solutions for XCP-ng Hypervisor: External Vendor Options
  • Vinchin Earns Acclaimed Recognition in Gartner Peer Insights 2025 Report
  • VMware vSphere 9 Standard and Enterprise Plus – Not Anymore?
  • Free Virtual Backup Appliance from StarWind – With Community Support (example configuration for ESXi and Veeam Backup)
  • VMware vSphere Foundation (VVF 9) and VMware Cloud Foundation (VCF 9) Has been Released
  • Veeam Backup & Replication 12.3.2 – patch critical vulnerabilities for your dataprotection environments
  • Veeam confirming vSphere 9.0 and ESXi 9 upcoming support
  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in