{"id":2403,"date":"2021-01-09T14:35:06","date_gmt":"2021-01-09T05:35:06","guid":{"rendered":"https:\/\/www.ish.org\/blog\/?p=2403"},"modified":"2022-06-24T22:09:37","modified_gmt":"2022-06-24T13:09:37","slug":"%ef%bc%92%e5%8f%b0%e7%9b%ae%e3%81%aenas%ef%bc%88%e3%81%9d%e3%81%ae3zil-l2arc%e3%82%92ssd%e5%8c%96%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.ish.org\/blog\/?p=2403","title":{"rendered":"\uff12\u53f0\u76ee\u306eNAS\uff08\u305d\u306e3:ZIL\/L2ARC\u3092SSD\u5316\uff09"},"content":{"rendered":"<p>NAS 1\u53f7\u6a5f\u306e<a href=\/blog\/?p=2378>\u8a2d\u5b9a<\/a>\u304b\u3089\u968f\u5206\u6642\u9593\u304c\u7d4c\u3061\u307e\u3057\u305f\u304c\u3001\u672c\u65e5\u3084\u3063\u3068NAS 2\u53f7\u6a5f\u3082ZIL\/L2ARC\u3092SSD\u5316\u3057\u307e\u3057\u305f\u3002<!--more--><br \/>\nSSD\u7b49\u306e\u6a5f\u6750\u306f1\u53f7\u6a5f\u306e\u6642\u306b\u307e\u3068\u3081\u3066\u7528\u610f\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u8af8\u822c\u306e\u4e8b\u60c5\u304b\u3089\u306a\u304b\u306a\u304b\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3067\u304d\u305a\u3001\u5e74\u3092\u8d8a\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<pre>% zpool status -v\r\n  pool: hoge\r\n state: ONLINE\r\n  scan: scrub repaired 0 in 0 days 02:21:14 with 0 errors on Wed Dec 30 05:29:25 2020\r\nconfig:\r\n\r\n        NAME        STATE     READ WRITE CKSUM\r\n        hoge        ONLINE       0     0     0\r\n          raidz1-0  ONLINE       0     0     0\r\n            ada0p2  ONLINE       0     0     0\r\n            ada1p2  ONLINE       0     0     0\r\n            ada2p2  ONLINE       0     0     0\r\n            ada3p2  ONLINE       0     0     0\r\n            ada4p2  ONLINE       0     0     0\r\n\r\nerrors: No known data errors\r\n% su\r\n# gpart create -s GPT nvd0\r\nnvd0 created\r\n# gpart add -t freebsd-zfs -l freebsd-zil -s 4g nvd0\r\nnvd0p1 added\r\n# gpart add -t freebsd-zfs -l freebsd-l2arc -s 128g nvd0\r\nnvd0p2 added\r\n# gpart show nvd0\r\n=>       40  500118112  nvd0  GPT  (238G)\r\n         40    8388608     1  freebsd-zfs  (4.0G)\r\n    8388648  268435456     2  freebsd-zfs  (128G)\r\n  276824104  223294048        - free -  (106G)\r\n# gpart show -l nvd0\r\n=>       40  500118112  nvd0  GPT  (238G)\r\n         40    8388608     1  freebsd-zil  (4.0G)\r\n    8388648  268435456     2  freebsd-l2arc  (128G)\r\n  276824104  223294048        - free -  (106G)\r\n# zpool add -n hoge log nvd0p1\r\nwould update 'hoge' to the following configuration:\r\n        hoge\r\n          raidz1-0\r\n            ada0p2\r\n            ada1p2\r\n            ada2p2\r\n            ada3p2\r\n            ada4p2\r\n          nvd0p1\r\n# zpool add hoge log nvd0p1\r\n# zpool status\r\n  pool: hoge\r\n state: ONLINE\r\n  scan: scrub repaired 0 in 0 days 02:21:14 with 0 errors on Wed Dec 30 05:29:25 2020\r\nconfig:\r\n\r\n        NAME        STATE     READ WRITE CKSUM\r\n        hoge        ONLINE       0     0     0\r\n          raidz1-0  ONLINE       0     0     0\r\n            ada0p2  ONLINE       0     0     0\r\n            ada1p2  ONLINE       0     0     0\r\n            ada2p2  ONLINE       0     0     0\r\n            ada3p2  ONLINE       0     0     0\r\n            ada4p2  ONLINE       0     0     0\r\n        logs\r\n          nvd0p1    ONLINE       0     0     0\r\n\r\nerrors: No known data errors\r\n# zpool add -n hoge cache nvd0p2\r\nwould update 'hoge' to the following configuration:\r\n        hoge\r\n          raidz1-0\r\n            ada0p2\r\n            ada1p2\r\n            ada2p2\r\n            ada3p2\r\n            ada4p2\r\n        logs\r\n          nvd0p1\r\n# zpool add hoge cache nvd0p2\r\n# zpool status\r\n  pool: hoge\r\n state: ONLINE\r\n  scan: scrub repaired 0 in 0 days 02:21:14 with 0 errors on Wed Dec 30 05:29:25 2020\r\nconfig:\r\n\r\n        NAME        STATE     READ WRITE CKSUM\r\n        hoge        ONLINE       0     0     0\r\n          raidz1-0  ONLINE       0     0     0\r\n            ada0p2  ONLINE       0     0     0\r\n            ada1p2  ONLINE       0     0     0\r\n            ada2p2  ONLINE       0     0     0\r\n            ada3p2  ONLINE       0     0     0\r\n            ada4p2  ONLINE       0     0     0\r\n        logs\r\n          nvd0p1    ONLINE       0     0     0\r\n        cache\r\n          nvd0p2    ONLINE       0     0     0\r\n\r\nerrors: No known data errors<\/pre>\n<p><a href=\/blog\/?p=2201>\u305d\u306e2<\/a>\u3078\u623b\u308b\u3000<a href=\/blog\/?p=3380>\u305d\u306e4<\/a>\u3078\u7d9a\u304f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NAS 1\u53f7\u6a5f\u306e\u8a2d\u5b9a\u304b\u3089\u968f\u5206\u6642\u9593\u304c\u7d4c\u3061\u307e\u3057\u305f\u304c\u3001\u672c\u65e5\u3084\u3063\u3068NAS 2\u53f7\u6a5f\u3082ZIL\/L2ARC\u3092SSD\u5316\u3057\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5],"tags":[],"class_list":["post-2403","post","type-post","status-publish","format-standard","hentry","category-freebsd","category-zfs"],"_links":{"self":[{"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2403"}],"version-history":[{"count":6,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2403\/revisions"}],"predecessor-version":[{"id":3388,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2403\/revisions\/3388"}],"wp:attachment":[{"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}