{"id":1050,"date":"2011-01-25T18:34:49","date_gmt":"2011-01-25T09:34:49","guid":{"rendered":"http:\/\/peta.okechan.net\/blog\/?p=1050"},"modified":"2011-01-26T14:48:48","modified_gmt":"2011-01-26T05:48:48","slug":"freenas-zfs-aft%e3%81%a7%e3%83%9e%e3%82%b7%e3%83%b3%e9%96%93%e3%83%87%e3%82%a3%e3%82%b9%e3%82%af%e7%a7%bb%e5%8b%95%e3%81%a7%e8%b5%b7%e3%81%8d%e3%81%9f%e5%95%8f%e9%a1%8c","status":"publish","type":"post","link":"https:\/\/peta.okechan.net\/blog\/archives\/1050","title":{"rendered":"FreeNAS + ZFS + AFT\u3067\u30de\u30b7\u30f3\u9593\u30c7\u30a3\u30b9\u30af\u79fb\u52d5\u3067\u8d77\u304d\u305f\u554f\u984c"},"content":{"rendered":"<p>\u30e1\u30e2\u3002\u4e00\u5fdc\u89e3\u6c7a\u65b9\u6cd5\u307e\u3067\u3002<\/p>\n<p>\u6700\u8fd1\u306eFreeNAS\u306fWebGUI\u3067\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3092\u4e00\u3064\u30aa\u30f3\u306b\u3059\u308b\u3060\u3051\u3067\u3001AFT\u306aHDD\u306b\u5bfe\u5fdc\u3057\u305fZFS\u4eee\u60f3\u30c7\u30d0\u30a4\u30b9\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u304c\u3001\u305d\u306e\u30c7\u30a3\u30b9\u30af\u3092\u5225\u306e\u30de\u30b7\u30f3\u306b\u79fb\u52d5\u3059\u308b\u3068\u554f\u984c\u304c\u8d77\u304d\u308b\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u4eca\u56de\u306f\u30c7\u30a3\u30b9\u30af\uff08FreeNAS\u672c\u4f53: USB\u30e1\u30e2\u30ea\u3001ZFS raidz2\u30d7\u30fc\u30eb: WD20EARSx6\uff09\u3092\u5225\u30de\u30b7\u30f3\u306b\u79fb\u8a2d\u3057\u305f\u969b\u306e\u554f\u984c\u3067\u3059\u3002<\/p>\n<p>FreeNAS\u3067AFT\u5bfe\u5fdc\u306b\u3057\u305f\u5834\u5408\u3001ZFS\u306b\u3088\u308b\u30c7\u30a3\u30b9\u30af\u30a2\u30af\u30bb\u30b9\u3068\u5b9f\u30c7\u30a3\u30b9\u30af\u306e\u9593\u3067\u3001NOP GEOM\u30af\u30e9\u30b9\u306b\u3088\u308b4k\u30bb\u30af\u30bf\u30a2\u30af\u30bb\u30b9\u3092\u3059\u308b\u3088\u3046\u306b\u5185\u90e8\u7684\u306b\u8a2d\u5b9a\u3055\u308c\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\uff08FreeNAS\u3067\u306f\u666e\u901a\u306b\u3084\u308b\u3068\u305d\u3046\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u304c\uff09\u30c7\u30a3\u30b9\u30af\u3092\u307e\u308b\u3054\u3068ZFS\u7528\u306b\u3057\u305f\u5834\u5408\u3001GPT\u7b49\u3067\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u304c\u5207\u3089\u308c\u308b\u4e8b\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u5207\u3089\u305a\u306b\u30c7\u30a3\u30b9\u30af\u3092\u76f4\u63a5\u4f7f\u3044\u3064\u3064NOP GEOM\u30af\u30e9\u30b9\u3092\u4f7f\u3046\u3068\u3044\u3046\u4e8b\u306f\u3001\u4f8b\u3048\u3070<br \/>\n\/dev\/ad10<br \/>\n\/dev\/ad10.nop<br \/>\n\u3068\u3044\u30462\u7a2e\u985e\u306e\u30c7\u30d0\u30a4\u30b9\u30d5\u30a1\u30a4\u30eb\u3067\u5168\u304f\u540c\u3058\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u51fa\u6765\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<br \/>\n\u3082\u3061\u308d\u3093ad10.nop\u306e\u65b9\u306f4k\u30bb\u30af\u30bf\u30a2\u30af\u30bb\u30b9\u3092\u884c\u3046\u306e\u3067\u901f\u304f\u3001ad10\u306f\u9045\u3044\u3068\u3044\u3046\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066FreeNAS\u3067\u306fAFT\u306b\u5bfe\u5fdc\u3057\u305fZFS\u4eee\u60f3\u30c7\u30d0\u30a4\u30b9\u3092\u4f5c\u308b\u969b\u306b\u301c.nop\u306e\u30c7\u30d0\u30a4\u30b9\u304c\u5229\u7528\u3055\u308c\u307e\u3059\u3002<br \/>\n\u518d\u8d77\u52d5\u3057\u3066\u3082\u5f53\u7136\u306a\u304c\u3089\u301c.nop\u306e\u30c7\u30d0\u30a4\u30b9\u3092\u4f7f\u3063\u305fzpool\u304c\u81ea\u52d5\u7684\u306bimport\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u300c\u518d\u8d77\u52d5\u3057\u3066\u3082\u3061\u3083\u3093\u3068\u301c.nop\u306e\u65b9\u306e\u30c7\u30d0\u30a4\u30b9\u304c\u4f7f\u308f\u308c\u308b\u300d\u306e\u306f\u3001ZFS\u306e\u69cb\u6210\u30ad\u30e3\u30c3\u30b7\u30e5\uff08\/boot\/zfs\/zpool.cache\uff09\u306e\u304a\u304b\u3052\u3089\u3057\u3044\u3067\u3059\u304c\u3001\u3053\u306ezpool.cache\u306f\u3069\u3046\u3082\u30c7\u30d0\u30a4\u30b9\u540d\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308b\u307f\u305f\u3044\u3067\u3059\u3002<br \/>\n\u3042\u3068\u3001FreeNAS\u304c\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u7684\u306b\u301c.nop\u3092\u4f5c\u6210\u3057\u3066\u304f\u308c\u308b\u304b\u3089\u3001\u3067\u3082\u3042\u308a\u307e\u3059\u304c\u3084\u306f\u308a\u305d\u306e\u51e6\u7406\u3082\u30c7\u30d0\u30a4\u30b9\u540d\u306b\u4f9d\u5b58\u3057\u3066\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u30c7\u30d0\u30a4\u30b9\u540d\u304c\u5909\u308f\u308b\u3068\u30d7\u30fc\u30eb\u81ea\u4f53\u306f\u6b63\u5e38\u306bimport\u3055\u308c\u308b\u304c \u301c.nop\u306e\u30c7\u30d0\u30a4\u30b9\u304c\u4f7f\u308f\u308c\u306a\u304f\u306a\u308a\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u4f4e\u4e0b\u3092\u62db\u304f\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u3082\u3046\u5c11\u3057\u7d30\u304b\u304f\u66f8\u304f\u3068\u3001<br \/>\n1. \u30de\u30b7\u30f3\u3092\u79fb\u52d5\u3057\u305f\u308a\u3057\u3066\u30c7\u30a3\u30b9\u30af\u306e\u30c7\u30d0\u30a4\u30b9\u540d\u304c\u5909\u308f\u308b\u3002<br \/>\n2. \u65b0\u3057\u3044\u30c7\u30d0\u30a4\u30b9\u540d\u3067\u301c.nop\u304c\u4f5c\u6210\u3055\u308c\u306a\u3044\u3002<br \/>\n3. \u65b0\u3057\u3044\u30c7\u30d0\u30a4\u30b9\u540d\u304czpool.cache\u306b\u4e57\u3063\u3066\u306a\u3044\u3002<br \/>\n4. zfs\u306b\u3088\u308a\u81ea\u52d5\u7684\u306b\u69cb\u6210\u30c7\u30a3\u30b9\u30af\u306e\u691c\u7d22\u304c\u884c\u308f\u308c\u308b\u3002<br \/>\n5. \u301c.nop\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u306a\u3044\u65b0\u3057\u3044\u30c7\u30d0\u30a4\u30b9\u540d\u306e\u30c7\u30a3\u30b9\u30af\u304c\u898b\u3064\u304b\u308b\u3002<br \/>\n6. 4k\u30a2\u30af\u30bb\u30b9\u3059\u308b\u304b\u3057\u306a\u3044\u304b\u306e\u5dee\u306f\u3042\u308b\u304c\u30c7\u30fc\u30bf\u81ea\u4f53\u306f\u540c\u3058\u306a\u306e\u3067.nop\u7121\u3057\u306e\u30c7\u30d0\u30a4\u30b9\u304c\uff08\u3042\u308b\u610f\u5473\uff09\u7121\u4e8b\u4f7f\u308f\u308c\u308b\u3002<br \/>\n\u3068\u3044\u3046\u4e8b\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f\u81ea\u5206\u306e\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u79fb\u8a2d\u524d<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nfreenas:~# zpool status\r\n  pool: tank\r\n state: ONLINE\r\n scrub: none requested\r\nconfig:\r\n\r\n\tNAME          STATE     READ WRITE CKSUM\r\n\ttank          ONLINE       0     0     0\r\n\t  raidz2      ONLINE       0     0     0\r\n\t    ad4.nop   ONLINE       0     0     0\r\n\t    ad6.nop   ONLINE       0     0     0\r\n\t    ad8.nop   ONLINE       0     0     0\r\n\t    ad10.nop  ONLINE       0     0     0\r\n\t    ad12.nop  ONLINE       0     0     0\r\n\t    ad14.nop  ONLINE       0     0     0\r\n\r\nerrors: No known data errors\r\n<\/pre>\n<p>\u79fb\u8a2d\u5f8c<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nfreenas:~# zpool status\r\n  pool: tank\r\n state: ONLINE\r\n scrub: none requested\r\nconfig:\r\n\r\n\tNAME          STATE     READ WRITE CKSUM\r\n\ttank          ONLINE       0     0     0\r\n\t  raidz2      ONLINE       0     0     0\r\n\t    ad10.nop  ONLINE       0     0     0\r\n\t    ad12.nop  ONLINE       0     0     0\r\n\t    ad14.nop  ONLINE       0     0     0\r\n\t    ad16      ONLINE       0     0     0\r\n\t    ad18      ONLINE       0     0     0\r\n\t    ad20      ONLINE       0     0     0\r\n\r\nerrors: No known data errors\r\n<\/pre>\n<p>\u3067\u3001\u3053\u308c\u3092\u3069\u3046\u3084\u3063\u3066\u5168\u3066.nop\u3092\u4f7f\u3046\u3088\u3046\u306b\u3059\u308b\u304b\u3067\u3059\u304c\u3001<br \/>\n\u307e\u305a\u30a8\u30af\u30b9\u30dd\u30fc\u30c8<br \/>\nzpool export tank<\/p>\n<p>\u5fc5\u8981\u306a\/dev\/*.nop\u304c\u5168\u3066\u3042\u308b\u304b\u78ba\u8a8d<br \/>\nls \/dev\/*.nop<\/p>\n<p>\u8db3\u308a\u306a\u304b\u3063\u305f\u3089\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u5fc5\u8981\u306a\u3060\u3051\u4f5c\u6210<br \/>\ngnop create -S 4096 ad16<br \/>\ngnop create -S 4096 ad18<br \/>\ngnop create -S 4096 ad20<\/p>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u3063\u3066.nop\u3092\u9694\u96e2\uff08zpool status\u3067.nop\u306b\u306a\u3063\u3066\u306a\u3044\u3082\u306e\u306e\u307f\u3002\uff09<br \/>\nmkdir devnop<br \/>\nln -s \/dev\/ad16.nop devnop\/<br \/>\nln -s \/dev\/ad18.nop devnop\/<br \/>\nln -s \/dev\/ad20.nop devnop\/<\/p>\n<p>devnop\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u512a\u5148\u7684\u306b\u691c\u7d22\u3055\u305bimport<br \/>\nzpool import -d devnop tank<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nfreenas:~# zpool status\r\n  pool: tank\r\n state: ONLINE\r\n scrub: none requested\r\nconfig:\r\n\r\n\tNAME          STATE     READ WRITE CKSUM\r\n\ttank          ONLINE       0     0     0\r\n\t  raidz2      ONLINE       0     0     0\r\n\t    ad10.nop  ONLINE       0     0     0\r\n\t    ad12.nop  ONLINE       0     0     0\r\n\t    ad14.nop  ONLINE       0     0     0\r\n\t    ad16.nop  ONLINE       0     0     0\r\n\t    ad18      ONLINE       0     0     0\r\n\t    ad20      ONLINE       0     0     0\r\n\r\nerrors: No known data errors\r\n<\/pre>\n<p>\u4e00\u3064\u305a\u3064\u3057\u304b.nop\u304c\u4f7f\u308f\u308c\u306a\u3044\u306e\u3067\u4eca\u56de\u4f7f\u308f\u308c\u305f.nop\u3092\u6d88\u3057\u3066\u4ee5\u4e0b\u3092\u5fc5\u8981\u306a\u3060\u3051\u7e70\u308a\u8fd4\u3059\u3002<br \/>\nzpool export tank<br \/>\nrm devnop\/ad16.nop<br \/>\nzpool import -d devnop tank<br \/>\nzpool status<\/p>\n<p>\u6700\u7d42\u7684\u306b\u5168\u90e8.nop\u306b\u306a\u3063\u305f\u3089\u3001export\u3057\u3066\u3001devnop\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6d88\u3057\u3066\u666e\u901a\u306bimport\u3057\u3066\u307f\u308b\u3002<br \/>\nzpool export tank<br \/>\nrm -r devnop<br \/>\nzpool import tank<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nfreenas:~# zpool status\r\n  pool: tank\r\n state: ONLINE\r\n scrub: none requested\r\nconfig:\r\n\r\n\tNAME          STATE     READ WRITE CKSUM\r\n\ttank          ONLINE       0     0     0\r\n\t  raidz2      ONLINE       0     0     0\r\n\t    ad10.nop  ONLINE       0     0     0\r\n\t    ad12.nop  ONLINE       0     0     0\r\n\t    ad14.nop  ONLINE       0     0     0\r\n\t    ad16.nop  ONLINE       0     0     0\r\n\t    ad18.nop  ONLINE       0     0     0\r\n\t    ad20.nop  ONLINE       0     0     0\r\n\r\nerrors: No known data errors\r\n<\/pre>\n<p>\u5168\u3066.nop\u304c\u4f7f\u308f\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u308b\u306f\u305a\u3002<br \/>\n\u7d50\u5c40\u306fzpool.cache\u3092\u4f5c\u3063\u3066\u308b\u3060\u3051\u3067\u3059\u304c\u3001\u3053\u308c\u4ee5\u4e0a\u3044\u3044\u65b9\u6cd5\u304c\u601d\u3044\u6d6e\u304b\u3073\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u3042\u3068\u306fzpool export tank\u3092\u3057\u3001FreeNAS\u306eGUI\u3067\u4e00\u65e6\u30c7\u30a3\u30b9\u30af\u3084ZFS\u306e\u60c5\u5831\u3092\u5168\u3066\u524a\u9664\u3057\u305f\u5f8c\u3001ZFS\u306e\u540c\u671f\u3092\u884c\u3044\u3001\u65b0\u3057\u3044\u69cb\u6210\u3092GUI\u306b\u53cd\u6620\u3055\u305b\u308b\u3002<br \/>\n\u305d\u306e\u307e\u307e\u3067\u306fGUI\u3067AFT\uff08\u30c7\u30a3\u30b9\u30af\u2192ZFS\u2192\u30d7\u30fc\u30eb\u2192\u4eee\u60f3\u30c7\u30d0\u30a4\u30b9\u2192\u7de8\u96c6\u30a2\u30a4\u30b3\u30f3\u2192Advanced Format\uff09\u304c\u7121\u52b9\u306b\u306a\u3063\u3066\u308b\u3068\u601d\u3046\u306e\u3067GUI\u3067AFT\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u306a\u3044\u3068\u518d\u8d77\u52d5\u6642\u306bgnop create\u304c\u81ea\u52d5\u7684\u306b\u884c\u308f\u308c\u306a\u3044\uff09\u3001\u30b7\u30b9\u30c6\u30e0\u2192\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\/\u30ea\u30b9\u30c8\u30a2\u3067\u8a2d\u5b9a\u306eXML\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u5f8c\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092AFT\u3092\u6709\u52b9\u306b\u3059\u308b\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u3066\u3001\u30ea\u30b9\u30c8\u30a2\u3059\u308c\u3070OK\u3002<br \/>\n\u3069\u3046\u66f8\u304d\u63db\u3048\u308b\u304b\u306fAFT\u304c\u6709\u52b9\u306a\u74b0\u5883\u306e\u8a2d\u5b9aXML\u3068diff\u3092\u304b\u3051\u308c\u3070\u3059\u3050\u5206\u304b\u308b\u3068\u601d\u3046\u3002<br \/>\n\uff08\u3053\u306e\u3078\u3093\u7aef\u6298\u308a\u904e\u304e\u306a\u306e\u3067\u8981\u671b\u304c\u3042\u308c\u3070\u8aac\u660e\u3057\u307e\u3059\uff09<\/p>\n<p>\u4eca\u56de\u306e\u554f\u984c\u306f\u30c7\u30d0\u30a4\u30b9\u540d\u304c\u5909\u308f\u3063\u3066\u3082\u554f\u984c\u306a\u304fimport\u3067\u304d\u308b\u3068\u3044\u3046ZFS\u306e\u67d4\u8edf\u6027\u304c\u9006\u306b\u3042\u3060\u306b\u306a\u3063\u305f\u611f\u3058\u3067\u3059\u304b\u306d\u3002<br \/>\n\u305f\u3060\u3001ZFS\u306b\u306f\u3044\u308d\u3044\u308d\u554f\u984c\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u3069\u306e\u554f\u984c\u3082\u307b\u3068\u3093\u3069\u304cZFS\u306b\u5bfe\u5fdc\u3057\u304d\u308c\u3066\u306a\u3044\u5468\u8fba\u74b0\u5883\u3068\u306e\u9593\u3067\u306e\u554f\u984c\u3067\u3042\u3063\u3066\u3001ZFS\u81ea\u4f53\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5b88\u308b\u80fd\u529b\u306f\u4fe1\u983c\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30e1\u30e2\u3002\u4e00\u5fdc\u89e3\u6c7a\u65b9\u6cd5\u307e\u3067\u3002<\/p>\n<p>\u6700\u8fd1\u306eFreeNAS\u306fWebGUI\u3067\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3092\u4e00\u3064\u30aa\u30f3\u306b\u3059\u308b\u3060\u3051\u3067\u3001AFT\u306aHDD\u306b\u5bfe\u5fdc\u3057\u305fZFS\u4eee\u60f3\u30c7\u30d0\u30a4\u30b9\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u304c\u3001\u305d\u306e\u30c7\u30a3\u30b9\u30af\u3092\u5225\u306e\u30de\u30b7\u30f3\u306b\u79fb\u52d5\u3059\u308b\u3068\u554f\u984c\u304c\u8d77\u304d\u308b\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u4eca\u56de\u306f\u30c7\u30a3\u30b9\u30af\uff08FreeNAS\u672c\u4f53: USB\u30e1\u30e2\u30ea\u3001ZFS raidz2\u30d7\u30fc\u30eb: WD20EARSx6\uff09\u3092\u5225\u30de\u30b7\u30f3\u306b\u79fb\u8a2d\u3057\u305f\u969b\u306e\u554f\u984c\u3067\u3059\u3002<\/p>\n<p>FreeNAS\u3067AFT\u5bfe\u5fdc\u306b\u3057\u305f\u5834\u5408\u3001ZFS\u306b\u3088\u308b\u30c7\u30a3\u30b9\u30af\u30a2\u30af\u30bb\u30b9\u3068\u5b9f\u30c7\u30a3\u30b9\u30af\u306e\u9593\u3067\u3001NOP GEOM\u30af\u30e9\u30b9\u306b\u3088\u308b4k\u30bb\u30af\u30bf\u30a2\u30af\u30bb\u30b9\u3092\u3059\u308b\u3088\u3046\u306b\u5185\u90e8\u7684\u306b\u8a2d\u5b9a\u3055\u308c\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\uff08FreeNAS\u3067\u306f\u666e\u901a\u306b\u3084\u308b\u3068\u305d\u3046\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u304c\uff09\u30c7\u30a3\u30b9\u30af\u3092\u307e\u308b\u3054\u3068ZFS\u7528\u306b\u3057\u305f\u5834\u5408\u3001GPT\u7b49\u3067\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u304c\u5207\u3089\u308c\u308b\u4e8b\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u5207\u3089\u305a\u306b\u30c7\u30a3\u30b9\u30af\u3092\u76f4\u63a5\u4f7f\u3044\u3064\u3064NOP GEOM\u30af\u30e9\u30b9\u3092\u4f7f\u3046\u3068\u3044\u3046\u4e8b\u306f\u3001\u4f8b\u3048\u3070<br \/>\n\/dev\/ad10<br \/>\n\/dev\/ad10.nop<br \/>\n\u3068\u3044\u30462\u7a2e\u985e\u306e\u30c7\u30d0\u30a4\u30b9\u30d5\u30a1\u30a4\u30eb\u3067\u5168\u304f\u540c\u3058\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u51fa\u6765\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<br \/>\n\u3082\u3061\u308d\u3093ad10.nop\u306e\u65b9\u306f4k\u30bb\u30af\u30bf\u30a2\u30af\u30bb\u30b9\u3092\u884c\u3046\u306e\u3067\u901f\u304f\u3001ad10\u306f\u9045\u3044\u3068\u3044\u3046\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066FreeNAS\u3067\u306fAFT\u306b\u5bfe\u5fdc\u3057\u305fZFS\u4eee\u60f3\u30c7\u30d0\u30a4\u30b9\u3092\u4f5c\u308b\u969b\u306b\u301c.nop\u306e\u30c7\u30d0\u30a4\u30b9\u304c\u5229\u7528\u3055\u308c\u307e\u3059\u3002<br \/>\n\u518d\u8d77\u52d5\u3057\u3066\u3082\u5f53\u7136\u306a\u304c\u3089\u301c.nop\u306e\u30c7\u30d0\u30a4\u30b9\u3092\u4f7f\u3063\u305fzpool\u304c\u81ea\u52d5\u7684\u306bimport\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u300c\u518d\u8d77\u52d5\u3057\u3066\u3082\u3061\u3083\u3093\u3068\u301c.nop\u306e\u65b9\u306e\u30c7\u30d0\u30a4\u30b9\u304c\u4f7f\u308f\u308c\u308b\u300d\u306e\u306f\u3001ZFS\u306e\u69cb\u6210\u30ad\u30e3\u30c3\u30b7\u30e5\uff08\/boot\/zfs\/zpool.cache\uff09\u306e\u304a\u304b\u3052\u3089\u3057\u3044\u3067\u3059\u304c\u3001\u3053\u306ezpool.cache\u306f\u3069\u3046\u3082\u30c7\u30d0\u30a4\u30b9\u540d\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308b\u307f\u305f\u3044\u3067\u3059\u3002<br \/>\n\u3042\u3068\u3001FreeNAS\u304c\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u7684\u306b\u301c.nop\u3092\u4f5c\u6210\u3057\u3066\u304f\u308c\u308b\u304b\u3089\u3001\u3067\u3082\u3042\u308a\u307e\u3059\u304c\u3084\u306f\u308a\u305d\u306e\u51e6\u7406\u3082\u30c7\u30d0\u30a4\u30b9\u540d\u306b\u4f9d\u5b58\u3057\u3066\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u30c7\u30d0\u30a4\u30b9\u540d\u304c\u5909\u308f\u308b\u3068\u30d7\u30fc\u30eb\u81ea\u4f53\u306f\u6b63\u5e38\u306bimport\u3055\u308c\u308b\u304c \u301c.nop\u306e\u30c7\u30d0\u30a4\u30b9\u304c\u4f7f\u308f\u308c\u306a\u304f\u306a\u308a\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u4f4e\u4e0b\u3092\u62db\u304f\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u3082\u3046\u5c11\u3057\u7d30\u304b\u304f\u66f8\u304f\u3068\u3001<br \/>\n1. \u30de\u30b7\u30f3\u3092\u79fb\u52d5\u3057\u305f\u308a\u3057\u3066\u30c7\u30a3\u30b9\u30af\u306e\u30c7\u30d0\u30a4\u30b9\u540d\u304c\u5909\u308f\u308b\u3002<br \/>\n2. \u65b0\u3057\u3044\u30c7\u30d0\u30a4\u30b9\u540d\u3067\u301c.nop\u304c\u4f5c\u6210\u3055\u308c\u306a\u3044\u3002<br \/>\n3. \u65b0\u3057\u3044\u30c7\u30d0\u30a4\u30b9\u540d\u304czpool.cache\u306b\u4e57\u3063\u3066\u306a\u3044\u3002<br \/>\n4. zfs\u306b\u3088\u308a\u81ea\u52d5\u7684\u306b\u69cb\u6210\u30c7\u30a3\u30b9\u30af\u306e\u691c\u7d22\u304c\u884c\u308f\u308c\u308b\u3002<br \/>\n5. \u301c.nop\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u306a\u3044\u65b0\u3057\u3044\u30c7\u30d0\u30a4\u30b9\u540d\u306e\u30c7\u30a3\u30b9\u30af\u304c\u898b\u3064\u304b\u308b\u3002<br \/>\n6. 4k\u30a2\u30af\u30bb\u30b9\u3059\u308b\u304b\u3057\u306a\u3044\u304b\u306e\u5dee\u306f\u3042\u308b\u304c\u30c7\u30fc\u30bf\u81ea\u4f53\u306f\u540c\u3058\u306a\u306e\u3067.nop\u7121\u3057\u306e\u30c7\u30d0\u30a4\u30b9\u304c\uff08\u3042\u308b\u610f\u5473\uff09\u7121\u4e8b\u4f7f\u308f\u308c\u308b\u3002<br \/>\n\u3068\u3044\u3046\u4e8b\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f\u81ea\u5206\u306e\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u79fb\u8a2d\u524d<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nfreenas:~# zpool status\r\n  pool: tank\r\n state: ONLINE\r\n scrub: none requested\r\nconfig:\r\n\r\n\tNAME          STATE     READ WRITE CKSUM\r\n\ttank          ONLINE       0     0     0\r\n\t  raidz2      ONLINE       0     0     0\r\n\t    ad4.nop   ONLINE       0     0     0\r\n\t    ad6.nop   ONLINE       0     0     0\r\n\t    ad8.nop   ONLINE       0     0     0\r\n\t    ad10.nop  ONLINE       0     0     0\r\n\t    ad12.nop  ONLINE       0     0     0\r\n\t    ad14.nop  ONLINE       0     0     0\r\n\r\nerrors: No known data errors\r\n<\/pre>\n<p>\u79fb\u8a2d\u5f8c<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nfreenas:~# zpool status\r\n  pool: tank\r\n state: ONLINE\r\n scrub: none requested\r\nconfig:\r\n\r\n\tNAME          STATE     READ WRITE CKSUM\r\n\ttank          ONLINE       0     0     0\r\n\t  raidz2      ONLINE       0     0     0\r\n\t    ad10.nop  ONLINE       0     0     0\r\n\t    ad12.nop  ONLINE       0     0     0\r\n\t    ad14.nop  ONLINE       0     0     0\r\n\t    ad16      ONLINE       0     0     0\r\n\t    ad18      ONLINE       0     0     0\r\n\t    ad20      ONLINE       0     0     0\r\n\r\nerrors: No known data errors\r\n<\/pre>\n<p>\u3067\u3001\u3053\u308c\u3092\u3069\u3046\u3084\u3063\u3066\u5168\u3066.nop\u3092\u4f7f\u3046\u3088\u3046\u306b\u3059\u308b\u304b\u3067\u3059\u304c\u3001<br \/>\n\u307e\u305a\u30a8\u30af\u30b9\u30dd\u30fc\u30c8<br \/>\nzpool export tank<\/p>\n<p>\u5fc5\u8981\u306a\/dev\/*.nop\u304c\u5168\u3066\u3042\u308b\u304b\u78ba\u8a8d<br \/>\nls \/dev\/*.nop<\/p>\n<p>\u8db3\u308a\u306a\u304b\u3063\u305f\u3089\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u5fc5\u8981\u306a\u3060\u3051\u4f5c\u6210<br \/>\ngnop create -S 4096 ad16<br \/>\ngnop create -S 4096 ad18<br \/>\ngnop create -S 4096 ad20<\/p>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u3063\u3066.nop\u3092\u9694\u96e2\uff08zpool status\u3067.nop\u306b\u306a\u3063\u3066\u306a\u3044\u3082\u306e\u306e\u307f\u3002\uff09<br \/>\nmkdir devnop<br \/>\nln -s \/dev\/ad16.nop devnop\/<br \/>\nln -s \/dev\/ad18.nop devnop\/<br \/>\nln -s \/dev\/ad20.nop devnop\/<\/p>\n<p>devnop\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u512a\u5148\u7684\u306b\u691c\u7d22\u3055\u305bimport<br \/>\nzpool import -d devnop tank<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nfreenas:~# zpool status\r\n  pool: tank\r\n state: ONLINE\r\n scrub: none requested\r\nconfig:\r\n\r\n\tNAME          STATE     READ WRITE CKSUM\r\n\ttank          ONLINE       0     0     0\r\n\t  raidz2      ONLINE       0     0     0\r\n\t    ad10.nop  ONLINE       0     0     0\r\n\t    ad12.nop  ONLINE       0     0     0\r\n\t    ad14.nop  ONLINE       0     0     0\r\n\t    ad16.nop  ONLINE       0     0     0\r\n\t    ad18      ONLINE       0     0     0\r\n\t    ad20      ONLINE       0     0     0\r\n\r\nerrors: No known data errors\r\n<\/pre>\n<p>\u4e00\u3064\u305a\u3064\u3057\u304b.nop\u304c\u4f7f\u308f\u308c\u306a\u3044\u306e\u3067\u4eca\u56de\u4f7f\u308f\u308c\u305f.nop\u3092\u6d88\u3057\u3066\u4ee5\u4e0b\u3092\u5fc5\u8981\u306a\u3060\u3051\u7e70\u308a\u8fd4\u3059\u3002<br \/>\nzpool export tank<br \/>\nrm devnop\/ad16.nop<br \/>\nzpool import -d devnop tank<br \/>\nzpool status<\/p>\n<p>\u6700\u7d42\u7684\u306b\u5168\u90e8.nop\u306b\u306a\u3063\u305f\u3089\u3001export\u3057\u3066\u3001devnop\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6d88\u3057\u3066\u666e\u901a\u306bimport\u3057\u3066\u307f\u308b\u3002<br \/>\nzpool export tank<br \/>\nrm -r devnop<br \/>\nzpool import tank<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nfreenas:~# zpool status\r\n  pool: tank\r\n state: ONLINE\r\n scrub: none requested\r\nconfig:\r\n\r\n\tNAME          STATE     READ WRITE CKSUM\r\n\ttank          ONLINE       0     0     0\r\n\t  raidz2      ONLINE       0     0     0\r\n\t    ad10.nop  ONLINE       0     0     0\r\n\t    ad12.nop  ONLINE       0     0     0\r\n\t    ad14.nop  ONLINE       0     0     0\r\n\t    ad16.nop  ONLINE       0     0     0\r\n\t    ad18.nop  ONLINE       0     0     0\r\n\t    ad20.nop  ONLINE       0     0     0\r\n\r\nerrors: No known data errors\r\n<\/pre>\n<p>\u5168\u3066.nop\u304c\u4f7f\u308f\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u308b\u306f\u305a\u3002<br \/>\n\u7d50\u5c40\u306fzpool.cache\u3092\u4f5c\u3063\u3066\u308b\u3060\u3051\u3067\u3059\u304c\u3001\u3053\u308c\u4ee5\u4e0a\u3044\u3044\u65b9\u6cd5\u304c\u601d\u3044\u6d6e\u304b\u3073\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u3042\u3068\u306fzpool export tank\u3092\u3057\u3001FreeNAS\u306eGUI\u3067\u4e00\u65e6\u30c7\u30a3\u30b9\u30af\u3084ZFS\u306e\u60c5\u5831\u3092\u5168\u3066\u524a\u9664\u3057\u305f\u5f8c\u3001ZFS\u306e\u540c\u671f\u3092\u884c\u3044\u3001\u65b0\u3057\u3044\u69cb\u6210\u3092GUI\u306b\u53cd\u6620\u3055\u305b\u308b\u3002<br \/>\n\u305d\u306e\u307e\u307e\u3067\u306fGUI\u3067AFT\uff08\u30c7\u30a3\u30b9\u30af\u2192ZFS\u2192\u30d7\u30fc\u30eb\u2192\u4eee\u60f3\u30c7\u30d0\u30a4\u30b9\u2192\u7de8\u96c6\u30a2\u30a4\u30b3\u30f3\u2192Advanced Format\uff09\u304c\u7121\u52b9\u306b\u306a\u3063\u3066\u308b\u3068\u601d\u3046\u306e\u3067GUI\u3067AFT\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u306a\u3044\u3068\u518d\u8d77\u52d5\u6642\u306bgnop create\u304c\u81ea\u52d5\u7684\u306b\u884c\u308f\u308c\u306a\u3044\uff09\u3001\u30b7\u30b9\u30c6\u30e0\u2192\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\/\u30ea\u30b9\u30c8\u30a2\u3067\u8a2d\u5b9a\u306eXML\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u5f8c\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092AFT\u3092\u6709\u52b9\u306b\u3059\u308b\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u3066\u3001\u30ea\u30b9\u30c8\u30a2\u3059\u308c\u3070OK\u3002<br \/>\n\u3069\u3046\u66f8\u304d\u63db\u3048\u308b\u304b\u306fAFT\u304c\u6709\u52b9\u306a\u74b0\u5883\u306e\u8a2d\u5b9aXML\u3068diff\u3092\u304b\u3051\u308c\u3070\u3059\u3050\u5206\u304b\u308b\u3068\u601d\u3046\u3002<br \/>\n\uff08\u3053\u306e\u3078\u3093\u7aef\u6298\u308a\u904e\u304e\u306a\u306e\u3067\u8981\u671b\u304c\u3042\u308c\u3070\u8aac\u660e\u3057\u307e\u3059\uff09<\/p>\n<p>\u4eca\u56de\u306e\u554f\u984c\u306f\u30c7\u30d0\u30a4\u30b9\u540d\u304c\u5909\u308f\u3063\u3066\u3082\u554f\u984c\u306a\u304fimport\u3067\u304d\u308b\u3068\u3044\u3046ZFS\u306e\u67d4\u8edf\u6027\u304c\u9006\u306b\u3042\u3060\u306b\u306a\u3063\u305f\u611f\u3058\u3067\u3059\u304b\u306d\u3002<br \/>\n\u305f\u3060\u3001ZFS\u306b\u306f\u3044\u308d\u3044\u308d\u554f\u984c\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u3069\u306e\u554f\u984c\u3082\u307b\u3068\u3093\u3069\u304cZFS\u306b\u5bfe\u5fdc\u3057\u304d\u308c\u3066\u306a\u3044\u5468\u8fba\u74b0\u5883\u3068\u306e\u9593\u3067\u306e\u554f\u984c\u3067\u3042\u3063\u3066\u3001ZFS\u81ea\u4f53\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5b88\u308b\u80fd\u529b\u306f\u4fe1\u983c\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[297,368],"class_list":["post-1050","post","type-post","status-publish","format-standard","hentry","category-tech","tag-freenas","tag-zfs"],"_links":{"self":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/1050","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/comments?post=1050"}],"version-history":[{"count":0,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/1050\/revisions"}],"wp:attachment":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/media?parent=1050"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/categories?post=1050"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/tags?post=1050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}