[one-users] ZFS datastore driver

Gary S. Cuozzo gary at isgsoftware.net
Sat Dec 1 22:56:03 PST 2012


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. 

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. 

gary 

----- Original Message -----

From: "Rogier Mars" <rogier at fortytwo.nl> 
To: users at lists.opennebula.org 
Sent: Wednesday, November 7, 2012 9:08:51 PM 
Subject: [one-users] ZFS datastore driver 

Hi, 


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: http://mperedim.wordpress.com/2010/09/26/opennebula-zfs-and-xen-%E2%80%93-part-2-instant-cloning/ 


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. 


I think this driver will also function with the shared transfer driver, enabling almost instant startup of VMs, even with large disks. 


A few disclaimers: 
- I don't use this driver in production yet, and I would not advice anyone to do this :) 
- I'm not a developer, so please feel free to comment on my coding skills :) 


More info and the tar with the zfs-datastore driver are available below: 
http://rogierm.redbee.nl/blog/2012/11/08/opennebula-with-zfs-datastore/ 


Cheers, 


Rogier 




_______________________________________________ 
Users mailing list 
Users at lists.opennebula.org 
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121202/ff88ad52/attachment.htm>


More information about the Users mailing list