{"id":3307,"date":"2011-12-08T23:58:30","date_gmt":"2011-12-08T22:58:30","guid":{"rendered":"http:\/\/vmdamentals.com\/?p=3307"},"modified":"2011-12-08T23:58:30","modified_gmt":"2011-12-08T22:58:30","slug":"building-your-own-vsphere-storage-accelerator-card","status":"publish","type":"post","link":"https:\/\/www.vmdamentals.com\/?p=3307","title":{"rendered":"Building your own vSphere storage-accelerator card!?!"},"content":{"rendered":"<blockquote><p>Is this blogpost going to inspire you to buy a soldering iron and build a PCI-e card? No. Is it a really cool idea to try and build a Fusion-I\/O or EMC Lightning-like card in your homelab? Possibly: YES!\n<\/p><\/blockquote>\n<p><BR><br \/>\n<strong>So what are Fusion-I\/O or EMC Lighting solutions all about?<\/strong><\/p>\n<p>The idea behind server-side cards like these are really simple: You somehow get the cards inbetween the storage datastreams of the vSphere5 server, and you cache any data passing through on flash memory placed on the card. Some cards are smarter, some a little less smarter in the way they work. The basic idea remains the same though.<\/p>\n<p>Doing read caching is not too complex for cards like these; there is no risk here in loosing data since you are only caching blocks from the array (which you then do NOT have to get from the array and this is where you win for reads). Can you also do write caching in these cards? You sure could, <strong>if<\/strong> you can live with potential data loss if the write was stored in the card and not yet synced to the array and your box burns down.<br \/>\n<BR><br \/>\n<strong>So how to build one of these without a soldering iron?<\/strong><\/p>\n<p>If you look at these server cards, and you take a step back, what do you see? Exactly, it is an appliance that has data in, data out and some solid state device on the side to cache stuff.<\/p>\n<p>So what would happen if I built a virtual appliance, that uses NFS exports as an input and delivers NFS exports out again, using either memory and\/or a local SSD drive as its caching device? By the sounds of this it could REALLY work. The best part? Your original NFS store would not be touched if you just did read caching. Write caching within this appliance would even be possible, especially when an SSD is used as a caching device (because the SSD would be non-volatile).<\/p>\n<p>One major downdise of this solution would be the ineffectiveness of vMotion. vMotion would work, but if you want REAL performance you&#8217;d want to keep the VMs running through an appliance like this local to the appliance itself (to keep the NFS exports coming out of the appliance from traversing the physical network). A script might be able to vMotion the VMs to &#8220;their&#8221; vSphere server, or you could create a DRS rule to keep the VMs running off an appliance together with the appliance if the appliance only uses vSphere memory for its caching. Either way, this could work smooth!<br \/>\n<BR><br \/>\n<strong>So how to shape this idea<\/strong><\/p>\n<p>Instead of building my own appliance, I decided to look around for an appliance that already does this. After looking around for some time, I came to the conclusion that this has NOT been done yet. I could not find a single virtual appliance that would take one or more NFS exports and redeliver them from a local NFS server transparantly. <\/p>\n<p>The thing that comes closest to this I think will be a ZFS-based appliance: ZFS is able to use memory as cache, and on top of that you can assign a &#8220;caching device&#8221; to ZFS as well. <\/p>\n<p>Unfortunately it will not create a &#8220;transparant&#8221; appliance; the data on the external NAS (through a vmdk) or SAN device will be ZFS formatted. To bad, but at least it will be able to demonstrate the power of a software solution like this.<br \/>\n<BR><br \/>\n<strong>To the lab!<\/strong><\/p>\n<p>I will be testing this setup with some kind of ZFS-based NFS virtual appliance that will take caching memory or a caching device. I will be looking at appliances like Nexanta to do some fun testing! I&#8217;ll need an SSD in one of my homelab servers though, and most important&#8230;. I&#8217;ll need TIME.<\/p>\n<p><strong><center>Any ideas that might help here are more than welcome. How cool would it be if you can create a caching appliance within vSphere??!?!<\/center><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Is this blogpost going to inspire you to buy a soldering iron and build a PCI-e card? No. Is it a really cool idea to try and build a Fusion-I\/O or EMC Lightning-like card in your homelab? Possibly: YES! So what are Fusion-I\/O or EMC Lighting solutions all about? The idea behind server-side cards like [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-3307","post","type-post","status-publish","format-standard","hentry","category-vmware"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/posts\/3307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3307"}],"version-history":[{"count":11,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/posts\/3307\/revisions"}],"predecessor-version":[{"id":3318,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=\/wp\/v2\/posts\/3307\/revisions\/3318"}],"wp:attachment":[{"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vmdamentals.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}