{"id":2378,"date":"2020-11-12T20:41:12","date_gmt":"2020-11-12T11:41:12","guid":{"rendered":"https:\/\/www.ish.org\/blog\/?p=2378"},"modified":"2021-01-09T14:34:37","modified_gmt":"2021-01-09T05:34:37","slug":"nas-1%e5%8f%b7%e6%a9%9f%ef%bc%88%e3%81%9d%e3%81%ae5zfs%e3%81%aenfs%e3%81%8c%e3%81%82%e3%81%be%e3%82%8a%e3%81%ab%e3%82%82%e9%81%85%e3%81%84%e3%81%ae%e3%81%a7zil-l2arc%e3%82%92ssd%e5%8c%96%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.ish.org\/blog\/?p=2378","title":{"rendered":"NAS 1\u53f7\u6a5f\uff08\u305d\u306e5:zfs\u306eNFS\u304c\u3042\u307e\u308a\u306b\u3082\u9045\u3044\u306e\u3067ZIL\/L2ARC\u3092SSD\u5316\uff09"},"content":{"rendered":"<p>zraid\u5316\u3057\u305f\u3053\u3068\u3067\u5bb9\u91cf\u3084\u4fe1\u983c\u6027\u306e\u70b9\u306f\u6e80\u8db3\u306a\u306e\u3067\u3059\u304c\u3001NFS\u30a2\u30af\u30bb\u30b9\u304c\u3042\u307e\u308a\u306b\u3082\u9045\u3044\u306e\u3067ZIL\u3092SSD\u5316\u3057\u3066\u307f\u307e\u3057\u305f\u3002<!--more--><br \/>\nMVNE SSD\u3092PCIe 3.0\u5909\u63db\u30dc\u30fc\u30c9\u306b\u523a\u3057\u3066proliant N54L\u306b\u4ed8\u3051\u307e\u3057\u305f\u3002N54L\u306fPCIe 2.0\u306a\u306e\u3067\u3001\u901f\u5ea6\u306f\u534a\u5206\u3057\u304b\u51fa\u306a\u3044\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002SSD\u306fADATA\u306eXPG SX6000 Lite M.2 2280 PCIe Gen3x4 SSD 256GB(NTTX\u30673,980\u5186)\u3001\u5909\u63db\u30dc\u30fc\u30c9\u306famazon\u3067999\u5186\u3067\u3057\u305f\u3002\u3064\u3044\u3067\u306bL2ARC\u3082SSD\u5316\u3057\u3066\u307f\u307e\u3057\u305f\u304cRAM\u304c8GB\u3057\u304b\u523a\u3055\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u5c0f\u3055\u3081\u306b\u3057\u307e\u3057\u305f\u3002128GB\u306a\u306e\u3067\u7d042GB\u306eRAM\u3092\u6d88\u8cbb\u3059\u308b\u8a08\u7b97\u306b\u306a\u308a\u307e\u3059\u3002SSD\u306e\u672a\u4f7f\u7528\u90e8\u5206\u3092\u3069\u3046\u3059\u308b\u304b\u306f\u4eca\u5f8c\u8003\u3048\u3066\u884c\u304f\u3064\u3082\u308a\u3067\u3059\u3002NAS 2\u53f7\u6a5f\u306e\u5206\u306eSSD\u3001\u5909\u63db\u30dc\u30fc\u30c9\u3082\u8cfc\u5165\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u3061\u3087\u3063\u3068\u5fd9\u3057\u3044\u306e\u30672\u53f7\u6a5f\u3078\u306e\u53d6\u308a\u4ed8\u3051\u306f<a href=\/blog\/?p=2403>\u5f8c\u65e5\u884c\u3046<\/a>\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n<pre># 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# zpool add -n hoge log gpt\/freebsd-zil\r\nwould update 'hoge' to the following configuration:\r\n        hoge\r\n          raidz1-0\r\n            gpt\/freebsd-zfs0\r\n            gpt\/freebsd-zfs1\r\n            gpt\/freebsd-zfs2\r\n            gpt\/freebsd-zfs3\r\n            gpt\/freebsd-zfs4\r\n          gpt\/freebsd-zil\r\n# zpool add hoge log gpt\/freebsd-zil\r\n# zpool status\r\n  pool: hoge\r\n state: ONLINE\r\n  scan: scrub repaired 0 in 0 days 08:05:41 with 0 errors on Thu Oct 22 18:04:26 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            gpt\/freebsd-zfs0  ONLINE       0     0     0\r\n            gpt\/freebsd-zfs1  ONLINE       0     0     0\r\n            gpt\/freebsd-zfs2  ONLINE       0     0     0\r\n            gpt\/freebsd-zfs3  ONLINE       0     0     0\r\n            gpt\/freebsd-zfs4  ONLINE       0     0     0\r\n        logs\r\n          gpt\/freebsd-zil     ONLINE       0     0     0\r\n\r\nerrors: No known data errors\r\n# zpool add -n hoge cache gpt\/freebsd-l2arc\r\nwould update 'hoge' to the following configuration:\r\n        hoge\r\n          raidz1-0\r\n            gpt\/freebsd-zfs0\r\n            gpt\/freebsd-zfs1\r\n            gpt\/freebsd-zfs2\r\n            gpt\/freebsd-zfs3\r\n            gpt\/freebsd-zfs4\r\n        logs\r\n          gpt\/freebsd-zil\r\n# zpool add hoge cache gpt\/freebsd-l2arc\r\n# zpool status\r\n  pool: hoge\r\n state: ONLINE\r\n  scan: scrub repaired 0 in 0 days 08:05:41 with 0 errors on Thu Oct 22 18:04:26 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            gpt\/freebsd-zfs0  ONLINE       0     0     0\r\n            gpt\/freebsd-zfs1  ONLINE       0     0     0\r\n            gpt\/freebsd-zfs2  ONLINE       0     0     0\r\n            gpt\/freebsd-zfs3  ONLINE       0     0     0\r\n            gpt\/freebsd-zfs4  ONLINE       0     0     0\r\n        logs\r\n          gpt\/freebsd-zil     ONLINE       0     0     0\r\n        cache\r\n          gpt\/freebsd-l2arc   ONLINE       0     0     0\r\n\r\nerrors: No known data errors<\/pre>\n<p>zpool add -n hoge cache gpt\/freebsd-l2arc\u3067\u306f\u4f55\u3089\u6709\u52b9\u306a\u60c5\u5831\u304c\u5f97\u3089\u308c\u306a\u3044\u306e\u3067-n\u3092\u5916\u3057\u3066\u6b63\u3057\u304f\u5b9f\u884c\u3067\u304d\u308b\u306e\u304b\u3061\u3087\u3063\u3068\u4e0d\u5b89\u3067\u3057\u305f\u304c\u6b63\u5e38\u306b\u8ffd\u52a0\u3067\u304d\u305f\u3088\u3046\u3067\u5b89\u5fc3\u3057\u307e\u3057\u305f\u3002<br \/>\nNFS\u30a2\u30af\u30bb\u30b9\u901f\u5ea6\u306f\u5287\u7684\u306b\u6539\u5584\u3055\u308c\u307e\u3057\u305f\u3002NFS\u4e0a\u306ehome\u304c\u3042\u307e\u308a\u306b\u3082\u9045\u304f\u3066\u3001\u3053\u308c\u3067\u6539\u5584\u3057\u306a\u3051\u308c\u3070ufs2\u306b\u623b\u3059\u3053\u3068\u3082\u691c\u8a0e\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3068\u5fc3\u914d\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u5feb\u9069\u306a\u901f\u5ea6\u306b\u56de\u5fa9\u3057\u3066\u304f\u308c\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\/blog\/?p=2353>\u305d\u306e4<\/a>\u3078\u623b\u308b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>zraid\u5316\u3057\u305f\u3053\u3068\u3067\u5bb9\u91cf\u3084\u4fe1\u983c\u6027\u306e\u70b9\u306f\u6e80\u8db3\u306a\u306e\u3067\u3059\u304c\u3001NFS\u30a2\u30af\u30bb\u30b9\u304c\u3042\u307e\u308a\u306b\u3082\u9045\u3044\u306e\u3067ZIL\u3092SSD\u5316\u3057\u3066\u307f\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-2378","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\/2378","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=2378"}],"version-history":[{"count":11,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2378\/revisions"}],"predecessor-version":[{"id":2408,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2378\/revisions\/2408"}],"wp:attachment":[{"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ish.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}