<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000'>Very nice. I do something similar in my ZFS drivers. I have an optional "CLONE" attribute in the image definition that I can set to the dataset snapshot that I want to use as the source for my image. I have my drivers setup as shared, but the idea is the same.<br><br>My driver is setup to organize the images by customer & server in a hierarchy of ZFS datasets. This way, I can snapshot a particular server's images (volumes and/or files) and do rollbacks without affecting other images.<br><br>gary<br><br><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Rogier Mars" <rogier@fortytwo.nl><br><b>To: </b>users@lists.opennebula.org<br><b>Sent: </b>Wednesday, November 7, 2012 9:08:51 PM<br><b>Subject: </b>[one-users] ZFS datastore driver<br><br>Hi, <div><br></div><div>I've created a first version of a datastore driver that support ZFS snapshots to enable instant cloning of a "golden" image. I've used the idea's from this blog: <a href="http://mperedim.wordpress.com/2010/09/26/opennebula-zfs-and-xen-–-part-2-instant-cloning/" target="_blank">http://mperedim.wordpress.com/2010/09/26/opennebula-zfs-and-xen-%E2%80%93-part-2-instant-cloning/</a></div><div><br></div><div>The driver that is discussed in this article does not work with ONE 3.6 so I decided to update and rewrite it. I use this driver to allow instant cloning of large persistent images. I create a golden image, upload it to the datastore and create a "golden" snapshot. This golden snapshot is the basis for the clones that are created for this image. In my setup I use the ssh transfer driver to copy the images to the host after they are cloned. This also takes some time, but for performance reasons I prefer this above the shared driver. When the VM is stopped the image is transferred back to the ZFS server and stored in its own location. </div><div><br></div><div>I think this driver will also function with the shared transfer driver, enabling almost instant startup of VMs, even with large disks. </div><div><br></div><div>A few disclaimers: </div><div>- I don't use this driver in production yet, and I would not advice anyone to do this :) </div><div>- I'm not a developer, so please feel free to comment on my coding skills :)</div><div><br></div><div>More info and the tar with the zfs-datastore driver are available below: </div><div><a href="http://rogierm.redbee.nl/blog/2012/11/08/opennebula-with-zfs-datastore/" target="_blank">http://rogierm.redbee.nl/blog/2012/11/08/opennebula-with-zfs-datastore/</a></div><div><br></div><div>Cheers, </div><div><br></div><div>Rogier</div><div><br></div><div><br></div><br>_______________________________________________<br>Users mailing list<br>Users@lists.opennebula.org<br>http://lists.opennebula.org/listinfo.cgi/users-opennebula.org<br></div><br></div></body></html>