{"id":1224,"date":"2021-09-15T14:48:07","date_gmt":"2021-09-15T19:48:07","guid":{"rendered":"http:\/\/zewwy.ca\/?p=1224"},"modified":"2021-09-15T14:49:41","modified_gmt":"2021-09-15T19:49:41","slug":"freenas-single-ssd-as-zil-and-l2arc","status":"publish","type":"post","link":"https:\/\/zewwy.ca\/index.php\/2021\/09\/15\/freenas-single-ssd-as-zil-and-l2arc\/","title":{"rendered":"FreeNAS Single SSD as ZIL and L2ARC"},"content":{"rendered":"<p>Quick Story I remember I set this up on my FreeNAS server in hopes to get better performance, in reality, I don&#8217;t think it helped anything cause of my FreeNAS servers setup. Which was an old desktop with 3 Gigs of memory and a couple SATA drives, 2 spindle and 1 SSD.<\/p>\n<p>Took me a while but I finally found the <a href=\"https:\/\/www.penguinpunk.net\/blog\/freenas-using-one-ssd-for-zil-and-l2arc\/\">original source<\/a> I followed.<\/p>\n<p>Main Parts (assume SSD is ada0):<\/p>\n<pre>root@freenas1:~ % gpart create -s gpt ada0\r\nada0 created\r\nroot@freenas1:~ % gpart add -a 4k -b 128 -t freebsd-zfs -s 10G ada0\r\nada0p1 added\r\nroot@freenas1:~ % gpart add -a 4k -t freebsd-zfs ada0\r\nada0p2 added<\/pre>\n<p>List Disk to get GUIDs<\/p>\n<pre><strong>root@freenas1:~ % gpart list<\/strong><\/pre>\n<p>Add partitions as Zil and L2ARC on a logical disk (volume0)<\/p>\n<pre><strong>root@freenas1:~ % zpool add volume0 log gptid\/94a4bd28-aeb7-11e5-99ac-bc5ff42c6cb2\r\n<\/strong><strong>root@freenas1:~ % zpool add volume0 cache gptid\/9a79622f-aeb7-11e5-99ac-bc5ff42c6cb2<\/strong><\/pre>\n<p>Nice you can use the zpool command to verify their used as such:<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/njbkDi8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/njbkDi8.png\" alt=\"\" width=\"897\" height=\"246\" \/><\/a><\/p>\n<p>If you are paying attention you&#8217;ll noticed the guid are different. Anyway you can use the GUI to see the results as well, if you click the main volume under Storage -&gt; Volume, Then click the Show details button.<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/moyLiqR.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/moyLiqR.png\" alt=\"\" width=\"660\" height=\"1302\" \/><\/a><\/p>\n<p><a href=\"https:\/\/i.imgur.com\/VfMbkEh.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/VfMbkEh.png\" alt=\"\" width=\"591\" height=\"394\" \/><\/a><\/p>\n<p>If you pick any of the partitions in this list, at the bottom you get a button labeled &#8220;Remove&#8221;. To undo the previous additions made via the back end SSH.<\/p>\n<p>After this I removed the old Volume completely, including the old File based extent I was using on it.<\/p>\n<p>I then created all new Volumes, one volume on each drive, then created 1 zVol on each volume, then used those zVols as Device based Extents on the iSCSI service&#8230;. and I couldn&#8217;t believe the performance increase, I couldn&#8217;t saturate the 1gbps link before with storage vMotions. Now every single Datastore maxes out the NIC and I hot 100 MB\/s plus on every storage vMotion and I increased my storage capacity. W00t (of course I never had storage redundancy to begin with so nothing lost, all gains.<\/p>\n<h1 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>Don&#8217;t bother using a SSD to try and gain speeds on simple homelab FreeNAS servers. It&#8217;s useless&#8230; &#8220;Some more specifics: as a rule of thumb L2ARC is only really useful if you have lots of RAM (64GB+) and a ZIL is only useful if you&#8217;re performing lots of synchronous writes.&#8221; &#8211; anodos<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quick Story I remember I set this up on my FreeNAS server in hopes to get better performance, in reality, I don&#8217;t think it helped anything cause of my FreeNAS servers setup. Which was an old desktop with 3 Gigs of memory and a couple SATA drives, 2 spindle and 1 SSD. Took me a &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/zewwy.ca\/index.php\/2021\/09\/15\/freenas-single-ssd-as-zil-and-l2arc\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;FreeNAS Single SSD as ZIL and L2ARC&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","footnotes":""},"categories":[8,7],"tags":[371,370,306,369,373,372],"class_list":["post-1224","post","type-post","status-publish","format-standard","hentry","category-server-administration","category-storage","tag-device-extent","tag-file-extent","tag-freenas","tag-iscsi","tag-l2arc","tag-zil"],"_links":{"self":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1224","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/comments?post=1224"}],"version-history":[{"count":4,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1224\/revisions"}],"predecessor-version":[{"id":1228,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1224\/revisions\/1228"}],"wp:attachment":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/media?parent=1224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/categories?post=1224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/tags?post=1224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}