VMware Cloud Community
Tanav
Enthusiast
Enthusiast

how to restore the backup of VM

hi,

i have taken the backup of VM 1 month back through Vcbmounter command . current Storage of esx server got crashed. now i want to restore the vmdk from another storage( on which i took backup i month back). please send me step by step guide for the same.

thanks

Tanav

0 Kudos
21 Replies
athlon_crazy
Virtuoso
Virtuoso

Have you try converter standalone 4?

VMware newbie..

Zen Systems Sdn Bhd

www.no-x.org

http://www.no-x.org
0 Kudos
Tanav
Enthusiast
Enthusiast

hi,

i dont have any converter or vcb proxy to do the same. i want to manually restore the VM through command vcbrestore. i took the backup through vcbmounter.

0 Kudos
athlon_crazy
Virtuoso
Virtuoso

oic, okay

vcbMounter -h xx.xx.xx.xx -u root -p password -s /folder/Backup-VMs

or when u edit or modify or want to make another copy instead replace original VM, use below :

vcbMounter -h xx.xx.xx.xx -u root -p password -s /folder/Backup-VMs -a /path/catalog

VMware newbie..

Zen Systems Sdn Bhd

www.no-x.org

http://www.no-x.org
0 Kudos
Tanav
Enthusiast
Enthusiast

i was asking how to restore, not vcbmounter.

0 Kudos
athlon_crazy
Virtuoso
Virtuoso

My mistake(typo), replace "vcbMounter" with "vcbRestore" and remain the rest

VMware newbie..

Zen Systems Sdn Bhd

www.no-x.org

http://www.no-x.org
0 Kudos
Tanav
Enthusiast
Enthusiast

hi,

i am not able to restore the VM on the alternate esx server and the error message is "vcbRestore -h nda-hclt-esx436 -u root -p esxroot -s /vmfs/volumes/ATA/testback/ -a /tmp/catalog-vm44

2009-06-17 16:28:03.024 'App' 3076453184 info Current working directory: /tmp

2009-06-17 16:28:06.101 'vcbRestore' 3076453184 error Error: ResourcePool "/ha-folder-root/ha-datacenter/host/esx003.hclt.corp.hcl.in/Resources" for VM not found."

can anyone help me on this. the output of /tmp/catalog-vm44 file is below.

version= esx-3.0

state= poweredOn

display_name= "win2k3-32"

uuid= "50363378-2bd2-0336-1505-d32895121353"

disk.scsi0:0.filename= "scsi0-0-0-win2k3-32.vmdk"

disk.scsi0:0.diskname= "[esx_ata|http://communities.vmware.com/community-document-picker.jspa?communityID=&subject=esx_ata] win2k3-32/win2k3-32.vmdk"

config.vmx= "[esx_ata|http://communities.vmware.com/community-document-picker.jspa?communityID=&subject=esx_ata] win2k3-32/win2k3-32.vmx"

host= esx.hclt.corp.hcl.in

timestamp= "Wed Jun 17 12:53:19 2009"

config.suspenddir= "[esx_ata|http://communities.vmware.com/community-document-picker.jspa?communityID=&subject=esx_ata] win2k3-32"

config.snapshotdir= "[esx_ata|http://communities.vmware.com/community-document-picker.jspa?communityID=&subject=esx_ata] win2k3-32"

config.file0= "win2k3-32.vmsd"

config.file1= "win2k3-32.vmxf"

config.file2= "win2k3-32.nvram"

config.logdir= "[esx_ata|http://communities.vmware.com/community-document-picker.jspa?communityID=&subject=esx_ata] win2k3-32"

config.log0= "vmware.log"

folderpath= "/ha-folder-root/ha-datacenter/vm"

resourcepool= "/ha-folder-root/ha-datacenter/host/esx003.hclt.corp.hcl.in/Resources"

~

~

please suggest for the same

0 Kudos
athlon_crazy
Virtuoso
Virtuoso

Try remove last line in your catalog :

resourcepool= "/ha-folder-root/ha-datacenter/host/esx003.hclt.corp.hcl.in/Resources"

since clearly it's complaint bout resources for VM not found.

VMware newbie..

Zen Systems Sdn Bhd

www.no-x.org

http://www.no-x.org
0 Kudos
Tanav
Enthusiast
Enthusiast

but when i remove the last line it gives me the below error

root@nda-hclt-esx436 testback]# vcbRestore -h nda-hclt-esx436 -u root -p esxroot -s /vmfs/volumes/ATA/testback -a /catalog-vm44

Current working directory: /vmfs/volumes/4a0cfc28-70b15361-8358-00188be5ae68/testback

Error: ResourcePool "" for VM not found.

0 Kudos
athlon_crazy
Virtuoso
Virtuoso

Can u list down :

  • Original ESX fqdn =?

  • New ESX Destination fqdn = ?

then run this command from new destination ESX $vcbUtil -h ESXSERVER -u USERNAME -p PASSWORD -c resourcepools

VMware newbie..

Zen Systems Sdn Bhd

www.no-x.org

http://www.no-x.org
0 Kudos
Tanav
Enthusiast
Enthusiast

hi

  • Original ESX fqdn =nda-hclt.esx436.hclt.corp.hcl.in

  • New ESX Destination fqdn = esx003.hclt.corp.hcl.in

below is the output of vcbUtil from destination host

# vcbUtil -h esx003 -u root -p esxroot -c resourcepools Current working directory: /root

ResourcePool: "/ha-folder-root/ha-datacenter/host/esx003.hclt.corp.hcl.in/Resources"

0 Kudos
athlon_crazy
Virtuoso
Virtuoso

so, your new esx destination have the same resources pool :

<span class="jive-thread-reply-body-container">ResourcePool: "/ha-folder-root/ha-datacenter/host/esx003.hclt.corp.hcl.in/Resources"

but in your catalog, your host is different :

host= esx.hclt.corp.hcl.in

So, just remain your resourcespool in your catalog & correct your host with the valid one

VMware newbie..

Zen Systems Sdn Bhd

www.no-x.org

http://www.no-x.org
0 Kudos
Tanav
Enthusiast
Enthusiast

i have changed the hostname in catalog but still same error is coming VM not found.

can you send me some troubleshooting steps.

0 Kudos
athlon_crazy
Virtuoso
Virtuoso

0 Kudos
Tanav
Enthusiast
Enthusiast

i run this command on esx003 and its not a part of cluster. both esx003 and nda-hclt-esx436 are standalone host. please suggest the solution

0 Kudos
athlon_crazy
Virtuoso
Virtuoso

Then try run once again from esx003 without -h & -p. Make sure your catalog with correct "host & resourcespool"

vcbrestore -s /backupImage/ -a /pathCatalog

VMware newbie..

Zen Systems Sdn Bhd

www.no-x.org

http://www.no-x.org
0 Kudos
Tanav
Enthusiast
Enthusiast

hi,

one more clarification is required from your side. earlier the VM exist on nda-hclt-esx436 storage and want to restore the backup from nda-hclt-esx436 storage to esx003 storage. do i need to run vcbrestore -s /backupImage/ -a /pathCatalog command on esx003 esx host or nda-hclt-esx436 esx host..

0 Kudos
athlon_crazy
Virtuoso
Virtuoso

Since you already modified the catalog for host & resourcespool pointing to esx003, plz run from this host(esx003)

if you are using the original catalog & your host, resourcespool & etc on esx436 still same like your previous setup, you can run it from esx436

VMware newbie..

Zen Systems Sdn Bhd

www.no-x.org

http://www.no-x.org
0 Kudos
Tanav
Enthusiast
Enthusiast

since my VM backup and catalog reside on esx436 and want to restore on esx003. then how esx003 identify the catalog which is on esx436. do i need to copy the VM backup from esx436 to esx003 and then run the vcbrestore command. please help

0 Kudos
athlon_crazy
Virtuoso
Virtuoso

Can your esx003 see backup image in esx436? any shared storage?

Or you can try backup to the old esx (436) first, then later move it to your other esx003

Step :

1. $vcbUtil -h ESXSERVER -u USERNAME -p PASSWORD -c resourcepools

2. $vcbUtil -h ESXSERVER -u USERNAME -p PASSWORD -c vmfolders

3. Make sure you use old backup catalog (host, resourcepools & vmfolders must same in the catalog)

4. run vcbRestore

VMware newbie..

Zen Systems Sdn Bhd

www.no-x.org

http://www.no-x.org
0 Kudos