Solved

VMWare Linux Commands

Posted on 2010-09-02
7
431 Views
Last Modified: 2012-05-10
Hi All,

I'm trying to run either of the following from the vmware command line, but keep getting an error 'the system cannot find the file specified'.

Can anyone see what I'm doing wrong? The path is definitely correct, but I think I may be missing a syntax.
vmkfstools -i /vmfs/volumes/e00f98e1-2bcc0c91-e7a2-3487611c1557/MY-DATA.domain.com/MY-DATA.domain.com_2.vmdk /vmfs/volumes/4c7ed23a-ae761747-2072-0026554b3490/MY-DATA/MY-DATA.vmdk

vmkfstools -i /vmfs/volumes/VM\ Store\ 1/MY-DATA.domain.com/MY-DATA.domain.com_2.vmdk /vmfs/volumes/VM\ Store\ 2/MY-DATA/MY-DATA.vmdk

Open in new window

0
Comment
Question by:PeterHing
  • 5
  • 2
7 Comments
 
LVL 3

Expert Comment

by:bobalob
ID: 33585625
Try putting the source and destination in single quotes....
0
 
LVL 2

Author Comment

by:PeterHing
ID: 33585643
Hi bobalob,

Still no joy: DiskLib_Check() failed for source disk The system cannot find the file specified (25).
0
 
LVL 3

Expert Comment

by:bobalob
ID: 33585758
how big is this file?:

/vmfs/volumes/VM\ Store\ 1/MY-DATA.domain.com/MY-DATA.domain.com_2.vmdk

and is there a corresponding -flat.vmdk file?
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 3

Expert Comment

by:bobalob
ID: 33585771
also you can cat the descriptor file (it will usually be about 500bytes-a couple of K) in there it should have a pointer to the -flat.vmdk file. Check to see it's pointing to the correct file.
0
 
LVL 3

Expert Comment

by:bobalob
ID: 33585852
also, does the folder '/vmfs/volumes/VM\ Store\ 2/MY-DATA' exist yet? as it won't create it - you need to make it before by doing:

mkdir /vmfs/volumes/VM\ Store\ 2/MY-DATA
0
 
LVL 2

Author Comment

by:PeterHing
ID: 33600983
I didn't realise the path was case sensitive. This is why I was getting all thr trouble! The path existed, it just wanted it defined exactly by case. bobalob, thank you for all your input, i'm sorry after all that, this is what it came down to!
0
 
LVL 3

Accepted Solution

by:
bobalob earned 250 total points
ID: 33602467
you can use tab completion on ESX bash so you won't need to type the whole path - this will ensure you have used correct case also.

ie. start typing the path like this:

vmkfst[tab] -i /vmf[tab]/vol[tab]/MY[tab] ...
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question