VMware

This Question is Answered

1 "helpful" answer available (6 pts)
3 Replies Last post: Oct 11, 2005 10:07 AM by dominic7  

vmsnap.pl and vmbk.pl and multiple disks posted: Oct 11, 2005 8:37 AM

Click to view osde.info's profile Expert 845 posts since
Jan 25, 2005
vmsnap (& ~vmbk) pseudocode

for each $disk
{
vm->add_redo($disk) # add .REDO
vmkfstools -e
vm->add_redo($disk) # add .REDO.REDO
vm->commit($disk,level=1,freeze=0,wait=1) # commit 1st .REDO
vm->commit($disk,level=0,freeze=1,wait=1) # commit 2nd .REDO.REDO
}

I think I see a problem if a database/file/other app is split across multiple disks sda, sdb, sdc etc and if each disk takes an hour or two to back up then your sda, sdb, sdc backups will each be out of sync by an hour or two (and therefore not very useful)

Would it make more sense to change the logic to

for each $disk
{
vm->add_redo($disk) # add .REDO
}

for each $disk
{
vmkfstools -e
vm->add_redo($disk) # add .REDO.REDO
vm->commit($disk,level=1,freeze=0,wait=1) # commit 1st .REDO
vm->commit($disk,level=0,freeze=1,wait=1) # commit 2nd .REDO.REDO
}

Apart from more disk space required for sda.REDO, sdb.REDO and sdc.REDO what other implications would there be for this technique ?

See also http://www.vmware.com/community/thread.jspa?messageID=292467

Re: vmsnap.pl and vmbk.pl and multiple disks

1. Oct 11, 2005 8:49 AM in response to: osde.info
Click to view dominic7's profile Virtuoso vExpert 2,146 posts since
Jan 11, 2005
That makes sense.

vmsnap.pl is only a reference script so you can learn to write your own backup utility, you can write to the author of vmbk.pl and see if he will include your suggestion or modify it on your own.

The only problem that I see is that if you have a large disk A ( which is exported first ), the .REDO file on the second disk B will continue to grow until A is committed, this could result in a very large .REDO log and some have had problem committing large .REDO logs.

Re: vmsnap.pl and vmbk.pl and multiple disks

3. Oct 11, 2005 10:07 AM in response to: osde.info
Click to view dominic7's profile Virtuoso vExpert 2,146 posts since
Jan 11, 2005
Unless you can parallelize the exports, which would make them both slower but the redo logs should grow at the same pace assuming that they both have roughly the same activiy on them.

VMware Beta Programs

Want to be Considered for Future Beta Programs?

Learn More

VMware Developer

Download SDKs, APIs, videos,
training, and more in the Developer community.

Learn More

Developer
Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld
Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

Only VMware ... Delivers Nexus 1000V

Ensure consistent, policy-based network capabilities to virtual machines across your data center.

Learn More

Communities