VMware Cloud Community
MetallicWood
Contributor
Contributor

Unable to add server to inventory

Hello,

I've recently moved a server between datastores using V-Motion which worked fine. However if I browse the datastore where the machine is now located the folder has no contents BUT if I view through an SSH client is does show the files.

Problem:

I've removed the server from the inventory but as I can not see the folder content in the datastore i cannot re-add the server back into view.

Help appreciated.

10 Replies
christianZ
Champion
Champion

Wrong thought.

Please ignore.

Reply
0 Kudos
gogogo5
Hot Shot
Hot Shot

possible workaround - connect using the VI client direct to the host. You can register a VM from there.

possible fix - upgrade to VC 2.01 Patch2, this is known to fix this "empty" folder issue. What patch are you running anyway?

Reply
0 Kudos
christianZ
Champion
Champion

Have you removed vm or host from your VC ?

Ok forget my 1. post - you removed one vm from inventory. didn't you.

In addition you can register your vm directly in your console:

vmware-cmd -s register

Reply
0 Kudos
MetallicWood
Contributor
Contributor

hi,

I've removed the machine from the inventory as opposed to deleting it.

I've use the VI client to connect direct to the host holding the LUN where the image now resides but I actually get an error message with this : "A file was not found".

Interesting comment about the patch.... where can I download that one from...

Reply
0 Kudos
gogogo5
Hot Shot
Hot Shot

Here:

http://www.vmware.com/support/vi3/doc/vc-201-200702-patch.html

Though look through the postings for Patch 2 as there are a few things to consider when installing:

http://www.vmware.com/community/thread.jspa?messageID=594826&#594826

Reply
0 Kudos
MetallicWood
Contributor
Contributor

is it possible to re-add a server to the inventory from the command prompt?

Reply
0 Kudos
gogogo5
Hot Shot
Hot Shot

as stated by christianZ above:

In addition you can register your vm directly in your console:

vmware-cmd -s register

Reply
0 Kudos
MetallicWood
Contributor
Contributor

Hi,

Tryed the command line approach but it fails:

using:

vmware-cmd -s register vmfs/volumes/Local\ Storage\ 1/Test\ Server/Test\ Server.vmx

response:

VMControl error -999: Unknown error: SoapError: ServerFaultCode(1588) : (Invalid datastore format '[]vmfs/volumes/Local Storage 1/Test Server/Test Server.vmx'.)

Reply
0 Kudos
gogogo5
Hot Shot
Hot Shot

example:

vmware-cmd -s register /vmfs/volumes/volumename/vmname/vmname.vmx

you also need to start your command with /vmfs not just vmfs

Reply
0 Kudos
bansne
Enthusiast
Enthusiast

try re-scan on your datastore. and then see if you are able to get though