View unanswered posts | View active topics It is currently Fri May 24, 2013 10:50 am



Reply to topic  [ 5 posts ] 
 Snap Backup into ESXi 4.0 SSH Shell 
Author Message

Joined: Thu Oct 29, 2009 10:54 am
Posts: 9
Post Snap Backup into ESXi 4.0 SSH Shell
Hello!

At unsupported ssh shell in ESXi 4.0 (Free), how can I create a snap backup from a running VM into another directory at the same datastore? Its possible?

Thanks in advance.


Tue Nov 17, 2009 6:01 am
Profile
Site Admin

Joined: Mon Mar 16, 2009 10:13 pm
Posts: 3874
Post Re: Snap Backup into ESXi 4.0 SSH Shell
You'll be able to do that with vim-cmd. For example your script would include

vim-cmd vmsvc/snapshot.create <VM ID> ...

vmkfstools -i /sourcepath/source.vmdk /destinationpath/destination.vmdk - to copy the VMDK file

then vim-cmd vmsvc/snapshot.remove to delete the snapshot.

You can use vim-cmd vmsvc/getallvms to get the VM ID for your VMs.

_________________
Dave Mishchenko
VMware vExpert 2009-2012
Image
Now available - VMware ESXi: Planning, Implementation, and Security
Also available - vSphere Quick Start Guide


Tue Nov 17, 2009 10:58 pm
Profile

Joined: Thu Oct 29, 2009 10:54 am
Posts: 9
Post Re: Snap Backup into ESXi 4.0 SSH Shell
Thanks!
...and God Bless the vim-cmd vmsvc/


Thu Nov 19, 2009 6:31 am
Profile

Joined: Thu Oct 29, 2009 10:54 am
Posts: 9
Post Re: Snap Backup into ESXi 4.0 SSH Shell
Dave, the restore point (snap) has been created and vmdk disks cloned, but when I tried to start the snap backup vm, I got:

Cannot open the disk 'pdc.juliano-000001.vmdk' or one of the snapshot disks it depends on.
Nov 20 16:39:04.327: vmx| [msg.disk.configureDiskError] Reason: The system cannot find the file specified.-

Hypervisor is looking for the delta disks at my cloned snap backup vm? I did something wrong. I did:

vim-cmd vmsvc/snapshot.create 48 todaysnap
cp pdc.juliano.vmx ../tmp/
cp pdc.juliano.vmsd ../tmp/
cp pdc.juliano.vmxf ../tmp/
vmkfstools -i pdc.juliano.vmdk ../tmp/pdc.juliano.vmdk
vmkfstools -i pdc.juliano_1.vmdk ../tmp/pdc.juliano_1.vmdk

And going beyond this, how can I do an incremental backup, for just backup the last delta (snap)? Clone process is very slow to do everyday on very large vm I think.

Thanks, Juliano.


Fri Nov 20, 2009 9:03 am
Profile
Site Admin

Joined: Mon Mar 16, 2009 10:13 pm
Posts: 3874
Post Re: Snap Backup into ESXi 4.0 SSH Shell
You'll want to copy the vmx file before you take the snapshot. The vStorage API for vSphere 4.0 allows for differential backups but I'm not sure about accessing it via the console. I'll check with someone that might know. You would have to be licensed for at the Essentials level for it to work (well it might work on free but technically you would need Essentials or higher licensing).

_________________
Dave Mishchenko
VMware vExpert 2009-2012
Image
Now available - VMware ESXi: Planning, Implementation, and Security
Also available - vSphere Quick Start Guide


Sun Nov 22, 2009 12:37 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.