VMware Cloud Community
haverer
Contributor
Contributor

Renaming Virtual Disks

Hi

Is there anyway I can rename a VMDK file? When I browse to my datastore and try to rename I get the message:

At the moment, vSphere Client does not support the renaming of virtual disks as the machines that use this disk may loose access to the disku

0 Kudos
4 Replies
a_p_
Leadership
Leadership

You can do this with e.g. vmkfstools -E examplevm.vmdk examplevm-renamed.vmdk

see http://kb.vmware.com/kb/1002491

Make sure you don't have any snapshots on the virtual disk when doing this.

André

0 Kudos
mittim12
Immortal
Immortal

Check out this KB, http://kb.vmware.com/kb/1002491.






If you found this or any other post helpful please consider the use of the Helpful/Correct buttons to award points

Twitter: http://twitter.com/mittim12

0 Kudos
DSTAVERT
Immortal
Immortal

You can use vmkfstools from the Tech Support Console (Alt + F1) or the rcli. vmkfstool ---renamevirtualdisk sourcedisk destinationdisk






Forum Upgrade Notice - the VMware Communities forums will be upgraded the weekend of December 12th. The forum will be in read-only mode from Friday, December 10th 6 PM PST until Sunday, December 12th 2 AM PST.

-- David -- VMware Communities Moderator
0 Kudos
MauroBonder
VMware Employee
VMware Employee

In a SSH session type the following commands: cd /vmfs/volumes/STORAGENAME/VMNAME vmkfstools -E ./OLDNAME.vmdk ./NEWNAME.vmdk

after check disk name with vi in NEWNAME.vmdk

*If you found this information useful, please consider awarding points for "Correct" or "Helpful"*

*Please, don't forget the awarding points for "helpful" and/or "correct" answers. *Por favor, não esqueça de atribuir os pontos se a resposta foi útil ou resolveu o problema.* Thank you/Obrigado
0 Kudos