Solved

How to connect a recoverd datastore to the old vm's

Posted on 2010-09-22
9
1,404 Views
Last Modified: 2012-05-10
I got a VMware cluster with several inaccessible vm's
I recovered the datatore where the machines or on with
esxcfg-volume -r    <datastore-id>
Now i can see the recovered datastore next to the old one, which has a label with inactive.
How do I proceed? How do I connected the machines to the recovered datastore with the name
snap-5fce93e5-GT_Backup_Test-VMs?
GT_Backup_Test-VMs is the name of the old inactive datatsrore
0
Comment
Question by:howart
  • 4
  • 4
9 Comments
 
LVL 2

Expert Comment

by:ntype
ID: 33741557
Do you want to reconnect the vm as full functionning hosts or just have the possibility to recover the data on them ?
0
 
LVL 1

Author Comment

by:howart
ID: 33741582
I want to reconnect them as full functioning hosts.
0
 
LVL 22

Expert Comment

by:Luciano Patrão
ID: 33742030
Hi

If I understand right your problem, I think you need to change the Storage name to its original name.

Jail
0
 
LVL 1

Author Comment

by:howart
ID: 33742292
After surfing the internet and some puzzeling  I got the following pocedure:

Well i did the following:
browse the snap-5fce93e5-GT_Backup_Test-VMs datastore
look for the *vmx file
right-clickit and choose add to inventory
give the machine a new name <machine-name>-restored
power up the machine
answer the question that it is a copy of an existing machine in the summary tab of the vm
go to to the console and logged into the machine
set its ip address.  
removed the old inaccessible machine from the inventory

Hura  we are up and running again with the most

Please correct me if there is a better one.
But thx anyway.

0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 22

Expert Comment

by:Luciano Patrão
ID: 33742421
Hi

But this is the right way if you have access to that Storage. Do you have already access to that Storage? And the Storage name is the same as before?

If yes, yes that is the right way to do it. And if you have many VMs, and want to register all, you can run a script that will add all to your inventory in the vCenter

Jail
0
 
LVL 1

Author Comment

by:howart
ID: 33742497
about 4 vms
First I had toe recover the snapshots
login on the ESX host
list hte volumes with
#  esxcfg-volume --list
this will give you a list of snapshot volumes
Mount the snapshot with
# esxcfg-volume --mount <datastoreID>
and resign them
# esxcfg-volume -r <datastoreID>
the snapshot will now appear in the datastore list of vSphere client.

and then browse that datastore for the vmx files.

etc.


0
 
LVL 22

Accepted Solution

by:
Luciano Patrão earned 500 total points
ID: 33742544
Hi

Ok you are talking about a Datastore snapshot.

Yes you need to add that Datastore to th host, all that tasks is ok, and also the previous ones to add the VMs to the vCenter.

So you have done :)

Jail
0
 
LVL 1

Author Closing Comment

by:howart
ID: 33742812
;)  thx mate
0
 
LVL 22

Expert Comment

by:Luciano Patrão
ID: 33742872
Hi

Glade to help, but you did find your way ;)

Jail
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

When we have a dead host and we lose all connections to the ESXi, and we need to find a way to move all VMs from that dead ESXi host.
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

929 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now