{"id":1126,"date":"2013-08-07T12:13:14","date_gmt":"2013-08-07T17:13:14","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=1126"},"modified":"2014-07-25T13:22:27","modified_gmt":"2014-07-25T18:22:27","slug":"add-zil-to-nas4free","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2013\/08\/add-zil-to-nas4free\/","title":{"rendered":"Add ZIL to Nas4Free"},"content":{"rendered":"<p>I added a ZIL device (120GB SSD) to 2 different pools &#8211; if you only have 1 pool (or more) obviously change the directions below.  AND my SSD showed up as da0, yours may be different!<\/p>\n<p><strong>Destroy the current file system on your SSD (if this command fails, move onto the next):<\/strong><br \/>\n<code>gpart destroy -F da0<\/code><\/p>\n<p><strong>Create GPT filesystem (if this command fails, try the previous command):<\/strong><br \/>\n<code>gpart create -s GPT da0<\/code><\/p>\n<p><strong>Add a partition<\/strong><br \/>\n<code>gpart add -s 64G -t freebsd-zfs da0<\/code><br \/>\n(da0p1 added)<\/p>\n<p><strong>Add a second partition (optional)<\/strong><br \/>\n<code>gpart add -s 32G -t freebsd-zfs da0<\/code><br \/>\n(da0p2 added)<\/p>\n<p><strong>Verify the partitions<\/strong><br \/>\n<code>gpart show da0<\/code><\/p>\n<p><strong>Add the ZIL to the appropriate pool<\/strong><br \/>\n<code>zpool add POOLNAME log da0p1<\/code><br \/>\n<code>zpool add POOLNAME2 log da0p1<\/code><\/p>\n<p><strong>Optional: Remove the pool device<\/strong><br \/>\n<code>zpool remove POOLNAME DEVICENAME<\/code><\/p>\n<p><strong>Check ZIL Usage<\/strong><br \/>\n<code>zpool list -v<\/code><br \/>\n<code>zpool iostat -v 2 300<\/code><br \/>\n<code>gstat -a<\/code><\/p>\n<p>***EDIT 7\/25\/14***<br \/>\nI also wanted to add a RAID10 array to my ZFS.  I have a supermicro 4U chassis with 24x 3.5&#8243; hot swap sata\/sas drives with an Areca 1882i controller.  I have 2x SSD in bay 0 and 1 for the ZIL, then 22x 3.5&#8243; 3TB SATA drives.  I wanted to have 2 hot spares.<\/p>\n<p>zpool create -m \/mnt\/zfs zfs mirror da3 da4 mirror da5 da6 mirror da7 da8 mirror da9 da10 mirror da11 da12 mirror da13 da14 mirror da15 da16 mirror da17 da18 mirror da19 da20 spare da21 da22<\/p>\n<p>zpool status<\/p>\n<p>On nas4free I had to go to Disks|zfs|configuration|sync to have it show up in my disks to manage.<\/p>\n<p>zpool set autoreplace=on POOLNAME<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I added a ZIL device (120GB SSD) to 2 different pools &#8211; if you only have 1 pool (or more) obviously change the directions below. AND my SSD showed up as da0, yours may be different! Destroy the current file system on your SSD (if this command fails, move onto the next): gpart destroy -F &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2013\/08\/add-zil-to-nas4free\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Add ZIL to Nas4Free<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1126","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=1126"}],"version-history":[{"count":3,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1126\/revisions"}],"predecessor-version":[{"id":1211,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1126\/revisions\/1211"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=1126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=1126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=1126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}