VMware Cloud Community
fishchips
Contributor
Contributor
Jump to solution

Renaming vmdk file with vmkfstools

Hi All,

I have a problem with snapshots on a VM which has 2 disks in differnet locations with the same name. I've seen the KB article 5096672 which explains the issue and details that I need to rename one of the files so I've shutdown the guest, removed the disk from the VM and tried to use vmkfstools to rename the file but I'm having trouble with the command. I should point out that I'm very green when it comes to Linux and ESX command line so this is probably a simple syntax error but I can't see what I'm doing wrong.

I am on the ESX host through Putty as root and ran the following;

vmkfstools -E /vmfs/vmhba3:0:4:1/fstruc003/fstruc003.vmdk fs003data.vmdk

Get an error: Failed to rename '/vmfs/vmhba3:0:4:1/fstruc003/fstruc003.vmdk' : The system cannot find the file specified (25)

I've also tried this;

vmkfstools -E /vmfs/volumes/msa01.fata.lun01/fstruc003/fstruc003.vmdk fs003data.vmdk

But got the same error message.

It looks like I'm getting the syntax for the file path wrong, can someone point me in the right direction.

Thanks in advance.

Reply
0 Kudos
1 Solution

Accepted Solutions
alanrenouf
VMware Employee
VMware Employee
Jump to solution

Can you cd to /vmfs/volumes/msa01.fata.lun01/fstruc003/ and do an LS to list the content ?

Remember Linux is case sensative so make sure you are getting the case correct.

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

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com

View solution in original post

Reply
0 Kudos
7 Replies
alanrenouf
VMware Employee
VMware Employee
Jump to solution

Can you cd to /vmfs/volumes/msa01.fata.lun01/fstruc003/ and do an LS to list the content ?

Remember Linux is case sensative so make sure you are getting the case correct.

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

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
Reply
0 Kudos
Wimo
Hot Shot
Hot Shot
Jump to solution

What directory are you in when you run it? If you are in the VM's directory, you should not need the full path for either part (though I don't think it would hurt to have it on one part but not the other, as you do). If you are outside that directory, you do need the full path for both parts.

mike_laspina
Champion
Champion
Jump to solution

Hi,

You should be able to use the full path for the source and target like this.

vmkfstools -E /vmfs/volumes/msa01.fata.lun01/fstruc003/fstruc003.vmdk /vmfs/volumes/msa01.fata.lun01/fstruc003/fs003data.vmdk

http://blog.laspina.ca/ vExpert 2009
Reply
0 Kudos
fishchips
Contributor
Contributor
Jump to solution

Thanks everyone, got it done now.

I didn't know that it was case sensitive so I'd been banging away at it in lower case......

Running the command from the location of the vmdk file saved alot of typing as well.

Reply
0 Kudos
alanrenouf
VMware Employee
VMware Employee
Jump to solution

Glad you got it sorted, being a windows person myself one of the good things i found was the TAB key, if you start to type a command or a path and press the TAB key it will complete it for you, saves even more typing !

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

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
Reply
0 Kudos
fishchips
Contributor
Contributor
Jump to solution

Thanks alanrenouf, I have clicked on the correct answer ooption for your original post on this. Does this award points to you....

Reply
0 Kudos
alanrenouf
VMware Employee
VMware Employee
Jump to solution

Certainly does, thank you, you have now promoted me to Hot Shot !

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
Reply
0 Kudos