Rename virtual disk filename

I tried rename a vmdk file, but i get information message, like this

RenameError

 

You can solve this, when you are going to login to esxi by SSH, and follow this steps below.

1 – Remove disk from VM, but be carefull, you must only remove, don’t delete!!!

RenameError_001

2 – Login to ESXi with Putty

3 – cd vmfs/volumes/

4 – ls -l

Rename vmdk

5 –  cd “DS-ARCHIVE” (case sensitive!!)

6 – ls -l

Rename vmware vmdk

7 – cd vm-FILE

8 – ls -lah

RenameError_004

9 – vmkfstools -E OldFileName.vmdk NewFileName.vmdk

10 – Add new named virtual disk file to VM

Source and more details: http://www.blackforce.co.uk/2014/03/03/how-to-rename-a-vmdk-in-vmware-esxi