|
|
|
|
|
Page 1 of 1
|
[ 5 posts ] |
|
Snap Backup into ESXi 4.0 SSH Shell
| Author |
Message |
|
Juliano
Joined: Thu Oct 29, 2009 10:54 am Posts: 9
|
 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 |
|
 |
|
Dave.Mishchenko
Site Admin
Joined: Mon Mar 16, 2009 10:13 pm Posts: 3874
|
 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 Now available - VMware ESXi: Planning, Implementation, and SecurityAlso available - vSphere Quick Start Guide
|
| Tue Nov 17, 2009 10:58 pm |
|
 |
|
Juliano
Joined: Thu Oct 29, 2009 10:54 am Posts: 9
|
 Re: Snap Backup into ESXi 4.0 SSH Shell
Thanks! ...and God Bless the vim-cmd vmsvc/
|
| Thu Nov 19, 2009 6:31 am |
|
 |
|
Juliano
Joined: Thu Oct 29, 2009 10:54 am Posts: 9
|
 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 |
|
 |
|
Dave.Mishchenko
Site Admin
Joined: Mon Mar 16, 2009 10:13 pm Posts: 3874
|
 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 Now available - VMware ESXi: Planning, Implementation, and SecurityAlso available - vSphere Quick Start Guide
|
| Sun Nov 22, 2009 12:37 am |
|
|
|
Page 1 of 1
|
[ 5 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 0 guests |
|
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
|
|