`<div dir="ltr">If you have VMware Tools running on the VM(s), you can use the command line api or the vSphere web service api to request that the VM is quiesced and snapshotted, then take a snapshot of the ZFS storage. That should get you a snapshot that is more than just crash-consistent.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 23, 2013 at 12:55 PM, Basil Crow <span dir="ltr"><<a href="mailto:basil.crow@delphix.com" target="_blank">basil.crow@delphix.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, Apr 23, 2013 at 7:40 AM, Eric Sproul <<a href="mailto:esproul@omniti.com">esproul@omniti.com</a>> wrote:<br>
> But beyond those specifics, in the case where ZFS is providing a<br>
> backing store for what are seen as block devices by the ESXi guests,<br>
> you probably don't want blind ZFS snapshotting for the simple reason<br>
> that ZFS alone cannot ensure that the on-disk state of a given virtual<br>
> disk is consistent from the guest's viewpoint. ZFS will happily<br>
> snapshot the filesystem on which the virtual disk file resides, but if<br>
> there are in-flight transactions in the guest to the filesystem backed<br>
> by that virtual disk file, the state represented by the snapshot may<br>
> be inconsistent. You need some way to coordinate quiescing the guests<br>
> whose storage sits on the filesystem you want to snapshot, to make<br>
> sure their buffer caches are flushed out prior to the snapshot. Maybe<br>
> someone on the list who does this can pipe up with specific techniques<br>
> in the VMware universe.<br>
<br>
</div>Here at Delphix, we attempt to sync pending I/O by running<br>
/usr/sbin/sync in the guest OS with VMware Tools before taking the<br>
snapshot. It works well enough for our use case.<br>
<span class="HOEnZb"><font color="#888888"><br>
Basil<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
OmniOS-discuss mailing list<br>
<a href="mailto:OmniOS-discuss@lists.omniti.com">OmniOS-discuss@lists.omniti.com</a><br>
<a href="http://lists.omniti.com/mailman/listinfo/omnios-discuss" target="_blank">http://lists.omniti.com/mailman/listinfo/omnios-discuss</a><br>
</div></div></blockquote></div><br></div>
`