{"id":4139,"date":"2015-11-29T13:00:28","date_gmt":"2015-11-29T04:00:28","guid":{"rendered":"\/\/peta.okechan.net\/blog\/?p=4139"},"modified":"2015-12-05T13:53:43","modified_gmt":"2015-12-05T04:53:43","slug":"%e9%a0%91%e5%9b%ba%e3%81%aaslog%e3%82%92%e6%b6%88%e3%81%99","status":"publish","type":"post","link":"https:\/\/peta.okechan.net\/blog\/archives\/4139","title":{"rendered":"ZFS\u306e\u9811\u56fa\u306aSLOG\u3092\u6d88\u3059"},"content":{"rendered":"<p>\u524a\u9664\u3067\u304d\u306a\u3044ZFS\u306eZIL(slog)\u3092\u5f37\u5236\u7684\u306b\u524a\u9664\u3059\u308b\u304a\u8a71\u3067\u3059\u3002<br \/>\n(\u3053\u306e\u30d6\u30ed\u30b0\u3067ZFS\u306e\u8a71\u984c\u3092\u53d6\u308a\u4e0a\u3052\u308b\u306e\u306f3\u5e74\u3076\u308a\u2026!)<br \/>\nZIL(ZFS Intent Log)\u3068\u3044\u3046\u304bSLOG(Separate Intent Log)\u306a\u30c7\u30d0\u30a4\u30b9\u3092zpool\u30b3\u30de\u30f3\u30c9\u3067\u53d6\u308a\u5916\u305d\u3046\u3068\u3057\u3066\u3082\u53d6\u308a\u5916\u305b\u306a\u3044\u3068\u3044\u3046\u73fe\u8c61\u304c\u9577\u5e74\u4f7f\u3063\u3066\u308b\u30d7\u30fc\u30eb\u3067\u8d77\u304d\u308b\u3053\u3068\u306b\u6c17\u304c\u4ed8\u304d\u307e\u3057\u305f\u3002<br \/>\n\u8a73\u3057\u3044\u73fe\u8c61\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3002<\/p>\n<p>\u203b\u4f5c\u696d\u4e2d\u306b\u8a18\u9332\u3068\u3063\u3066\u306a\u304b\u3063\u305f\u306e\u3067\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u7d50\u679c\u306f\u5b9f\u969b\u306e\u3082\u306e\u3067\u306f\u306a\u3044\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u8fbb\u8904\u304c\u5408\u308f\u306a\u3044\u90e8\u5206\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u91cd\u8981\u306a\u90e8\u5206\u306f\u306a\u308b\u3079\u304f\u518d\u73fe\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li>zpool remove\u30b3\u30de\u30f3\u30c9\u304c\u7279\u306b\u5931\u6557\u3092\u5831\u544a\u3057\u306a\u3044\u3051\u3069\u51e6\u7406\u3082\u5b9f\u884c\u3055\u308c\u306a\u3044\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nroot@localhost:~ # zpool status tank\r\n pool: tank\r\nstate: ONLINE\r\n scan: resilvered 0 in 0h32m with 0 errors on Sun Nov 29 02:32:14 2015\r\nconfig:\r\n\r\n       NAME        STATE     READ WRITE CKSUM\r\n       tank        ONLINE       0     0     0\r\n         raidz2-0  ONLINE       0     0     0\r\n           ada1    ONLINE       0     0     0\r\n           ada2    ONLINE       0     0     0\r\n           ada5    ONLINE       0     0     0\r\n           ada6    ONLINE       0     0     0\r\n           ada3    ONLINE       0     0     0\r\n           ada4    ONLINE       0     0     0\r\n        logs\r\n          ada0s3   ONLINE       0     0     0\r\n\r\nerrors: No known data errors\r\nroot@localhost:~ # zpool remove tank ada0s3\r\nroot@localhost:~ # echo $?\r\n0\r\nroot@localhost:~ # zpool status tank\r\n pool: tank\r\nstate: ONLINE\r\n scan: resilvered 0 in 0h32m with 0 errors on Sun Nov 29 02:32:14 2015\r\nconfig:\r\n\r\n       NAME        STATE     READ WRITE CKSUM\r\n       tank        ONLINE       0     0     0\r\n         raidz2-0  ONLINE       0     0     0\r\n           ada1    ONLINE       0     0     0\r\n           ada2    ONLINE       0     0     0\r\n           ada5    ONLINE       0     0     0\r\n           ada6    ONLINE       0     0     0\r\n           ada3    ONLINE       0     0     0\r\n           ada4    ONLINE       0     0     0\r\n        logs\r\n          ada0s3   ONLINE       0     0     0  \u2190 \u9811\u56fa\r\n\r\nerrors: No known data errors\r\n<\/pre>\n<\/li>\n<li>zdb\u3067\u78ba\u8a8d\u3059\u308b\u3068slog\u30c7\u30d0\u30a4\u30b9\u306b\u524a\u9664\u4e2d\u30d5\u30e9\u30b0\u304c\u7acb\u3063\u3066\u3044\u308b\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nroot@localhost:~ # zdb\r\ntank:\r\n   version: 5000\r\n   name: 'tank'\r\n   state: 0\r\n   txg: 5771422\r\n   pool_guid: xxxxxxxxxxxxxxxxxxxx\r\n   hostname: 'localhost'\r\n   vdev_children: 1\r\n   vdev_tree:\r\n       type: 'root'\r\n       id: 0\r\n       guid: xxxxxxxxxxxxxxxxxxxx\r\n       children&#x5B;0]:\r\n           type: 'raidz'\r\n           id: 0\r\n           guid: xxxxxxxxxxxxxxxxxxxx\r\n           nparity: 2\r\n           metaslab_array: 23\r\n           metaslab_shift: 36\r\n           ashift: 12\r\n           asize: xxxxxxxxxxxxxx\r\n           is_log: 0\r\n           children&#x5B;0]:\r\n               type: 'disk'\r\n               id: 0\r\n               guid: xxxxxxxxxxxxxxxxxxxx\r\n               path: '\/dev\/ada1'\r\n               phys_path: '\/dev\/ada1'\r\n               whole_disk: 0\r\n               DTL: 106\r\n           ### \u9014\u4e2d\u7701\u7565 ###\r\n           children&#x5B;5]:\r\n               type: 'disk'\r\n               id: 5\r\n               guid: xxxxxxxxxxxxxxxxxxxx\r\n               path: '\/dev\/ada4'\r\n               phys_path: '\/dev\/ada4'\r\n               whole_disk: 1\r\n               DTL: 51\r\n      children&#x5B;1]:\r\n          type: 'disk'\r\n          id: 0\r\n          guid: xxxxxxxxxxxxxxxxxxxx\r\n          path: '\/dev\/ada0s3'\r\n          metaslab_array: 38\r\n          metaslab_shift: 24\r\n          ashift: 9\r\n          asize: xxxxxxxxxx\r\n          is_log: 1\r\n          removing: 1 \u2190 \u524a\u9664\u4e2d\r\n          create_txg: 428\r\n   features_for_read:\r\n       com.delphix:hole_birth\r\n       com.delphix:embedded_data\r\n<\/pre>\n<\/li>\n<li>zpool iostat\u3067\u78ba\u8a8d\u3059\u308b\u3068slog\u306ealloc\u306b\u6570\u5024\u304c\u8868\u793a\u3055\u308c\u308b\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nroot@localhost:~ # zpool iostat -v tank\r\n                capacity     operations    bandwidth\r\npool          alloc   free   read  write   read  write\r\n------------  -----  -----  -----  -----  -----  -----\r\ntank          10.1T   805G      0      0  1.35K  1.10K\r\n  raidz2      10.1T   805G      0      0  1.35K  1.10K\r\n   ada1          -      -       0      0  1.01K  1.13K\r\n   ada2          -      -       0      0    995  1.09K\r\n   ada5          -      -       0      0  1.24K  1.08K\r\n   ada6          -      -       0      0    939  1.06K\r\n   ada3          -      -       0      0   1012  1.11K\r\n   ada4          -      -       0      0    953  1.09K\r\nlogs\r\n   ada0s3        4K    21G      0      0    251  4.28K\r\n------------  -----  -----  -----  -----  -----  -----\r\n                 \u2191\u30b3\u30b3(\u3053\u308c\u81ea\u4f53\u306f\u7279\u306b\u73cd\u3057\u3044\u73fe\u8c61\u3067\u306f\u306a\u3044?)\r\n<\/pre>\n<\/li>\n<li>zpool replace\u306f\u3067\u304d\u308b\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nroot@localhost:~ # zpool replace tank ada0s3 ada7s1\r\n### \u81ea\u52d5\u7684\u306bresilver\u304c\u958b\u59cb\u3055\u308c\u308b\u306e\u3067\u3057\u3070\u3089\u304f\u7d4c\u3063\u305f\u306e\u3061 ###\r\nroot@localhost:~ # zpool status tank\r\n pool: tank\r\nstate: ONLINE\r\n scan: resilvered 0 in 0h32m with 0 errors on Sun Nov 29 06:55:21 2015\r\nconfig:\r\n\r\n       NAME        STATE     READ WRITE CKSUM\r\n       tank        ONLINE       0     0     0\r\n         raidz2-0  ONLINE       0     0     0\r\n           ada1    ONLINE       0     0     0\r\n           ada2    ONLINE       0     0     0\r\n           ada5    ONLINE       0     0     0\r\n           ada6    ONLINE       0     0     0\r\n           ada3    ONLINE       0     0     0\r\n           ada4    ONLINE       0     0     0\r\n        logs\r\n          ada7s1   ONLINE       0     0     0  \u2190 replace\u3067\u304d\u305f\r\n\r\nerrors: No known data errors\r\n<\/pre>\n<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u611f\u3058\u3067\u3059\u3002<br \/>\n\u5b9f\u306f\u3053\u306e\u73fe\u8c61\u3060\u3044\u3076\u524d\u304b\u3089\u6c17\u3065\u3044\u3066\u3044\u3066\u3001\u8272\u3093\u306a\u64cd\u4f5c\u3092\u3084\u3063\u3066\u307f\u305f\u306e\u3067\u3059\u304c\u5168\u304f\u89e3\u6d88\u3055\u308c\u305a\u3001\u8ae6\u3081\u3066\u653e\u7f6e\u3057\u3066\u307e\u3057\u305f\u2026<br \/>\nslog\u30c7\u30d0\u30a4\u30b9\u3092\u7269\u7406\u7684\u306b\u53d6\u308a\u5916\u3057\u305f\u3044\u3068\u304d\u306f\u3001\u9762\u5012\u3067\u3059\u304c\u8eab\u4ee3\u308f\u308a\u306e\u30c7\u30d0\u30a4\u30b9(\u203b)\u3092\u7528\u610f\u3057\u3066replace\u3059\u308c\u3070\u3088\u3044\u3067\u3059\u3057\u2026<\/p>\n<p>\u203b\u7269\u7406\u30c7\u30d0\u30a4\u30b9\u3092\u7528\u610f\u3059\u308b\u306e\u306f\u5927\u5909\u306a\u306e\u3067\u3001\u5b9f\u969b\u306f\u3088\u304f\u30b9\u30d1\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u5272\u308a\u5f53\u3066\u305f\u308a\u3057\u3066\u307e\u3057\u305f\u3002<\/p>\n<p>\u305f\u3060\u3053\u3093\u306a\u3053\u3068\u3044\u3064\u307e\u3067\u3082\u3084\u3063\u3066\u3089\u308c\u306a\u3044\u3057\u6c17\u6301\u3061\u60aa\u304b\u3063\u305f\u306e\u3067\u3001\u4eca\u56de\u601d\u3044\u5207\u3063\u3066\u5bfe\u7b56\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u5bfe\u7b56\u5185\u5bb9\u3068\u3057\u3066\u306f\u3001slog\u3092\u5f37\u5236\u524a\u9664\u3059\u308b\u3088\u3046ZFS\u306e\u30ab\u30fc\u30cd\u30eb\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30bd\u30fc\u30b9\u3092\u66f8\u304d\u63db\u3048\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u5b9f\u884c\u3059\u308b\u3001\u3068\u3044\u3046<strong>\u975e\u5e38\u306b\u5371\u967a\u306a\u65b9\u6cd5<\/strong>\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001ZFS\u306e\u30bd\u30fc\u30b9\u3084\u5f8c\u3067\u7d39\u4ecb\u3059\u308b\u30d1\u30c3\u30c1\u3092\u898b\u3066\u3082\u3089\u3046\u3068\u5206\u304b\u308b\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u3001\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u305d\u306e\u3082\u306e\u3092\u76f4\u63a5\u5f04\u308b\u3088\u3046\u306a\u5909\u66f4\u3067\u306f\u306a\u3044\u3067\u3059\u3057\u3001\u307e\u305f\u30d1\u30c3\u30c1\u306f\u3059\u3054\u304f\u77ed\u304f\u305d\u308c\u81ea\u4f53\u3067\u524a\u9664\u3092\u5b9f\u884c\u3059\u308b\u3088\u3046\u306a\u3082\u306e\u3067\u306f\u306a\u3044\u3067\u3059\u3057\u3001zpool import\u3057\u3066zpool remove\u3057\u3066zpool export\u3059\u308b\u3060\u3051\u306e\u4e00\u56de\u9650\u308a\u306e\u74b0\u5883\u3067\u4f7f\u7528\u3059\u308b\u3060\u3051\u306a\u306e\u3067\u307e\u3041\u5927\u4e08\u592b\u304b\u306a\u3068\u3002<br \/>\n\u3082\u3061\u308d\u3093\u4e00\u5207\u4fdd\u8a3c\u306f\u3057\u307e\u305b\u3093\u304c\u3002<\/p>\n<h3>\u30d1\u30c3\u30c1<\/h3>\n<p><a href=\"https:\/\/gist.github.com\/b333z\/8268711\">b333z\/zfs_slog_zero_vsalloc_inline.patch<\/a><\/p>\n<h3>\u4f5c\u696d\u5185\u5bb9<\/h3>\n<p>\u203b\u9577\u304f\u306a\u308b\u306e\u3067\u9010\u4e00\u30b3\u30de\u30f3\u30c9\u3092\u8868\u8a18\u3057\u305f\u308a\u306f\u3057\u307e\u305b\u3093\u304c\u3001\u307b\u3068\u3093\u3069\u5168\u3066\u4e00\u822c\u7684\u306a\u64cd\u4f5c\u306a\u306e\u3067\u8abf\u3079\u308c\u3070\u8272\u3005\u60c5\u5831\u306f\u51fa\u3066\u304d\u307e\u3059\u3057\u3055\u307b\u3069\u96e3\u3057\u304f\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u30d1\u30c3\u30c1\u306fLinux\u7528\u3067\u3059\u304c\u3001\u79c1\u304c\u4f7f\u7528\u3057\u3066\u308b\u306e\u306fNAS4Free 10.2\u3068FreeBSD 10.2\u306a\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u9069\u7528\u306f\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n\u3057\u304b\u3057\u91cd\u8981\u306a\u90e8\u5206\u306f\u305d\u306e\u307e\u307e\u4f7f\u3048\u307e\u3057\u305f\u3002<\/p>\n<p>\u4ee5\u4e0b\u4f5c\u696d\u5185\u5bb9\uff08\u7b87\u6761\u66f8\u304d\uff09<\/p>\n<p>\u307e\u305a\u306f\u5bfe\u8c61\u306ePC\u306b\u65b0\u3057\u3044\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u8ffd\u52a0\u3057\u3066\u3001\u305d\u3053\u306bFreeBSD 10.2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u8d77\u52d5\u3002<\/p>\n<p>\u305d\u3057\u305f\u3089\u3001<br \/>\n\/usr\/src\/sys\/cddl\/contrib\/opensolaris\/uts\/common\/fs\/zfs\/spa.c<br \/>\n\u306e spa_vdev_remove_from_namespace \u95a2\u6570\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3002<br \/>\n\u203b3\u884c\u8ffd\u52a0\u3057\u305f\u3060\u3051\u3002\u8ffd\u52a0\u90e8\u5206\u3092\u30b5\u30f3\u30c9\u30a4\u30c3\u30c1\u3059\u308b\u3088\u3046\u306a\u30b3\u30e1\u30f3\u30c8\u306e\u66f8\u304d\u65b9\u306f\u5acc\u3044\u3067\u3059\u304c\u3001\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u304f\u306b\u3042\u305f\u3063\u3066\u5206\u304b\u308a\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u306b\u66f8\u304d\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\n\/*\r\n * Complete the removal by cleaning up the namespace.\r\n *\/\r\nstatic void\r\nspa_vdev_remove_from_namespace(spa_t *spa, vdev_t *vd)\r\n{\r\n\tvdev_t *rvd = spa-&gt;spa_root_vdev;\r\n\tuint64_t id = vd-&gt;vdev_id;\r\n\tboolean_t last_vdev = (id == (rvd-&gt;vdev_children - 1));\r\n\r\n\tASSERT(MUTEX_HELD(&amp;spa_namespace_lock));\r\n\tASSERT(spa_config_held(spa, SCL_ALL, RW_WRITER) == SCL_ALL);\r\n\tASSERT(vd == vd-&gt;vdev_top);\r\n\r\n\t\/\/ \u8ffd\u52a0\u3053\u3053\u304b\u3089\r\n\tif (vd-&gt;vdev_islog == 1 &amp;&amp; vd-&gt;vdev_removing == 1 &amp;&amp; vd-&gt;vdev_state == VDEV_STATE_OFFLINE &amp;&amp; vd-&gt;vdev_stat.vs_alloc &gt; 0) {\r\n\t\tvd-&gt;vdev_stat.vs_alloc = 0;\r\n\t}\r\n\t\/\/ \u8ffd\u52a0\u3053\u3053\u307e\u3067\r\n\r\n\t\/*\r\n\t * Only remove any devices which are empty.\r\n\t *\/\r\n\tif (vd-&gt;vdev_stat.vs_alloc != 0)\r\n\t\treturn;\r\n\r\n\t(void) vdev_label_init(vd, 0, VDEV_LABEL_REMOVE);\r\n\r\n\tif (list_link_active(&amp;vd-&gt;vdev_state_dirty_node))\r\n\t\tvdev_state_clean(vd);\r\n\tif (list_link_active(&amp;vd-&gt;vdev_config_dirty_node))\r\n\t\tvdev_config_clean(vd);\r\n\r\n\tvdev_free(vd);\r\n\r\n\tif (last_vdev) {\r\n\t\tvdev_compact_children(rvd);\r\n\t} else {\r\n\t\tvd = vdev_alloc_common(spa, id, 0, &amp;vdev_hole_ops);\r\n\t\tvdev_add_child(rvd, vd);\r\n\t}\r\n\tvdev_config_dirty(rvd);\r\n\r\n\t\/*\r\n\t * Reassess the health of our root vdev.\r\n\t *\/\r\n\tvdev_reopen(rvd);\r\n}\r\n<\/pre>\n<p>\u305d\u3057\u305f\u3089\u30ab\u30fc\u30cd\u30eb\u306e\u518d\u69cb\u7bc9\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n\u6700\u8fd1\u306f\u3082\u3063\u3068\u826f\u3044\u3084\u308a\u65b9\u304c\u3042\u308b\u3089\u3057\u3044\u3067\u3059\u304c\u3001\u53e4\u3044\u3084\u308a\u65b9\u3067\u3082\u4eca\u56de\u306f\u7279\u306b\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\n<a href=\"http:\/\/suken.jp\/~tet\/FreeBSD\/kernel_rebuild.rhtml\">FreeBSD &#8211; How to build kernel<\/a><\/p>\n<p>\u65b0\u3057\u3044\u30ab\u30fc\u30cd\u30eb\u3067\u518d\u8d77\u52d5\u3057\u305f\u3089\u3001\u666e\u901a\u306b\u5bfe\u8c61\u306e\u30d7\u30fc\u30eb\u3092zpool import\u3057(\u72b6\u6cc1\u306b\u3088\u3063\u3066\u306fslog\u3092\u7121\u8996\u3059\u308b\u305f\u3081\u306b-m\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u5fc5\u8981\u304b\u3082)\u3001zpool offline\u3067slog\u3092\u30aa\u30d5\u30e9\u30a4\u30f3\u306b\u3057(\u203b)\u3001zpool remove\u3067slog\u3092\u524a\u9664\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3053\u306e\u6642\u70b9\u3067zpool status\u3059\u308b\u3068slog\u304c\u6d88\u3048\u3066\u307e\u3057\u305f\u3002<\/p>\n<p>\u203b\u30d1\u30c3\u30c1\u306eif\u3067\u30c7\u30d0\u30a4\u30b9\u304c\u30aa\u30d5\u30e9\u30a4\u30f3\u306b\u306a\u3063\u3066\u308b\u304b\u3069\u3046\u304b\u3082\u30c1\u30a7\u30c3\u30af\u3057\u3066\u308b\u306e\u3067zpool offline\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3042\u3068\u306fzpool export\u3057\u3066\u304b\u3089\u3001\u672c\u6765\u306e\u74b0\u5883\u3067\u518d\u8d77\u52d5\u3002<\/p>\n<p>\u3053\u308c\u3067\u30d7\u30fc\u30eb\u306b\u4f59\u8a08\u306aslog\u304c\u7121\u3044\u72b6\u614b\u3067\u4eca\u307e\u3067\u3069\u304a\u308a\u4f7f\u3048\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<h4>\u4f59\u8ac7<\/h4>\n<p>\u6700\u521d\u3001VMware\u306e\u4eee\u60f3\u30de\u30b7\u30f3\u4e0a\u306bslog\u306e\u5f37\u5236\u524a\u9664\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3001dd\u3067\u5b9f\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u30a4\u30e1\u30fc\u30b8\u30b3\u30d4\u30fc\u3057\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u306ePC\u3067\u8d77\u52d5\u3057\u3088\u3046\u3068\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u306a\u3093\u304b\u8d77\u52d5\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\n\u8d77\u52d5\u30d7\u30ed\u30bb\u30b9\u7684\u306b\u306f\u7d50\u69cb\u6700\u5f8c\u306b\u8fd1\u3044\u65b9\u307e\u3067\u9032\u3080\u3093\u3067\u3059\u304ckernel panic\u3067\u843d\u3061\u308b\u611f\u3058\u3067\u3059(\u203b)\u3002<\/p>\n<p>\u203b\u5b9f\u306e\u3068\u3053\u308d\u8868\u793a\u304c\u4e00\u77ac\u904e\u304e\u3066\u3088\u304f\u5206\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u2026<\/p>\n<p>Linux\u3060\u3068\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u304c\u5909\u308f\u308b\u3068initram\u3092\u518d\u4f5c\u6210\u3057\u306a\u3044\u3068\u8d77\u52d5\u3057\u306a\u304b\u3063\u305f\u308a\u3068\u304b\u306f\u3042\u308b\u3093\u3067\u3059\u304c\u3001FreeBSD\u306e\u3053\u3068\u306f\u3088\u304f\u77e5\u3089\u306a\u3044\u3067\u3059\u3057\u3001\u305d\u306e\u3068\u304d\u7720\u304f\u3066\u982d\u304c\u52d5\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u3001FreeBSD\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u30ab\u30fc\u30cd\u30eb\u306e\u518d\u69cb\u7bc9\u307e\u3067\u5b9f\u6a5f\u3067\u3084\u308a\u76f4\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>ident\u4ee5\u5916\u306fGENERIC\u305d\u306e\u307e\u307e\u306econfig\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305f\u3093\u3067\u3059\u304c\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u74b0\u5883\u306eHW\u306b\u5fdc\u3058\u3066\u81ea\u52d5\u7684\u306b\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u53d6\u6368\u3055\u308c\u308b\u306e\u3060\u308d\u3046\u304b\u2026<\/p>\n<p>\u3042\u3068\u4eca\u56de\u53d6\u308a\u4e0a\u3052\u305f\u73fe\u8c61\u3001\u691c\u7d22\u3057\u3066\u307f\u308b\u3068\u7d50\u69cb\u540c\u3058\u3088\u3046\u306a\u5831\u544a\u304c\u3042\u3063\u3066\u3001\u3082\u3057\u304b\u3057\u305f\u3089slog\u306e\u524a\u9664\u306b\u672a\u5bfe\u5fdc\u3060\u3063\u305f\u6642\u4ee3\u304b\u3089zpool upgrade\u3057\u306a\u304c\u3089\u4f7f\u3044\u7d9a\u3051\u3066\u3044\u308b\u30d7\u30fc\u30eb\u306e\u304b\u306a\u308a\u306e\u5272\u5408\u3067\u540c\u3058\u554f\u984c\u304c\u8d77\u304d\u3066\u3044\u308b\u306e\u3067\u306f\u306a\u304b\u308d\u3046\u304b\u3068\u601d\u3044\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524a\u9664\u3067\u304d\u306a\u3044ZFS\u306eZIL(slog)\u3092\u5f37\u5236\u7684\u306b\u524a\u9664\u3059\u308b\u304a\u8a71\u3067\u3059\u3002<br \/>\n(\u3053\u306e\u30d6\u30ed\u30b0\u3067ZFS\u306e\u8a71\u984c\u3092\u53d6\u308a\u4e0a\u3052\u308b\u306e\u306f3\u5e74\u3076\u308a\u2026!)<br \/>\nZIL(ZFS Intent Log)\u3068\u3044\u3046\u304bSLOG(Separate Intent Log)\u306a\u30c7\u30d0\u30a4\u30b9\u3092zpool\u30b3\u30de\u30f3\u30c9\u3067\u53d6\u308a\u5916\u305d\u3046\u3068\u3057\u3066\u3082\u53d6\u308a\u5916\u305b\u306a\u3044\u3068\u3044\u3046\u73fe\u8c61\u304c\u9577\u5e74\u4f7f\u3063\u3066\u308b\u30d7\u30fc\u30eb\u3067\u8d77\u304d\u308b\u3053\u3068\u306b\u6c17\u304c\u4ed8\u304d\u307e\u3057\u305f\u3002<br \/>\n\u8a73\u3057\u3044\u73fe\u8c61\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3002<\/p>\n<p>\u203b\u4f5c\u696d\u4e2d\u306b\u8a18\u9332\u3068\u3063\u3066\u306a\u304b\u3063\u305f\u306e\u3067\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u7d50\u679c\u306f\u5b9f\u969b\u306e\u3082\u306e\u3067\u306f\u306a\u3044\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u8fbb\u8904\u304c\u5408\u308f\u306a\u3044\u90e8\u5206\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u91cd\u8981\u306a\u90e8\u5206\u306f\u306a\u308b\u3079\u304f\u518d\u73fe\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li>zpool remove\u30b3\u30de\u30f3\u30c9\u304c\u7279\u306b\u5931\u6557\u3092\u5831\u544a\u3057\u306a\u3044\u3051\u3069\u51e6\u7406\u3082\u5b9f\u884c\u3055\u308c\u306a\u3044\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nroot@localhost:~ # zpool status tank\r\n pool: tank\r\nstate: ONLINE\r\n scan: resilvered 0 in 0h32m with 0 errors on Sun Nov 29 02:32:14 2015\r\nconfig:\r\n\r\n       NAME        STATE     READ WRITE CKSUM\r\n       tank        ONLINE       0     0     0\r\n         raidz2-0  ONLINE       0     0     0\r\n           ada1    ONLINE       0     0     0\r\n           ada2    ONLINE       0     0     0\r\n           ada5    ONLINE       0     0     0\r\n           ada6    ONLINE       0     0     0\r\n           ada3    ONLINE       0     0     0\r\n           ada4    ONLINE       0     0     0\r\n        logs\r\n          ada0s3   ONLINE       0     0     0\r\n\r\nerrors: No known data errors\r\nroot@localhost:~ # zpool remove tank ada0s3\r\nroot@localhost:~ # echo $?\r\n0\r\nroot@localhost:~ # zpool status tank\r\n pool: tank\r\nstate: ONLINE\r\n scan: resilvered 0 in 0h32m with 0 errors on Sun Nov 29 02:32:14 2015\r\nconfig:\r\n\r\n       NAME        STATE     READ WRITE CKSUM\r\n       tank        ONLINE       0     0     0\r\n         raidz2-0  ONLINE       0     0     0\r\n           ada1    ONLINE       0     0     0\r\n           ada2    ONLINE       0     0     0\r\n           ada5    ONLINE       0     0     0\r\n           ada6    ONLINE       0     0     0\r\n           ada3    ONLINE       0     0     0\r\n           ada4    ONLINE       0     0     0\r\n        logs\r\n          ada0s3   ONLINE       0     0     0  \u2190 \u9811\u56fa\r\n\r\nerrors: No known data errors\r\n<\/pre>\n<\/li>\n<li>zdb\u3067\u78ba\u8a8d\u3059\u308b\u3068slog\u30c7\u30d0\u30a4\u30b9\u306b\u524a\u9664\u4e2d\u30d5\u30e9\u30b0\u304c\u7acb\u3063\u3066\u3044\u308b\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nroot@localhost:~ # zdb\r\ntank:\r\n   version: 5000\r\n   name: 'tank'\r\n   state: 0\r\n   txg: 5771422\r\n   pool_guid: xxxxxxxxxxxxxxxxxxxx\r\n   hostname: 'localhost'\r\n   vdev_children: 1\r\n   vdev_tree:\r\n       type: 'root'\r\n       id: 0\r\n       guid: xxxxxxxxxxxxxxxxxxxx\r\n       children&#x5B;0]:\r\n           type: 'raidz'\r\n           id: 0\r\n           guid: xxxxxxxxxxxxxxxxxxxx\r\n           nparity: 2\r\n           metaslab_array: 23\r\n           metaslab_shift: 36\r\n           ashift: 12\r\n           asize: xxxxxxxxxxxxxx\r\n           is_log: 0\r\n           children&#x5B;0]:\r\n               type: 'disk'\r\n               id: 0\r\n               guid: xxxxxxxxxxxxxxxxxxxx\r\n               path: '\/dev\/ada1'\r\n               phys_path: '\/dev\/ada1'\r\n               whole_disk: 0\r\n               DTL: 106\r\n           ### \u9014\u4e2d\u7701\u7565 ###\r\n           children&#x5B;5]:\r\n               type: 'disk'\r\n               id: 5\r\n               guid: xxxxxxxxxxxxxxxxxxxx\r\n               path: '\/dev\/ada4'\r\n               phys_path: '\/dev\/ada4'\r\n               whole_disk: 1\r\n               DTL: 51\r\n      children&#x5B;1]:\r\n          type: 'disk'\r\n          id: 0\r\n          guid: xxxxxxxxxxxxxxxxxxxx\r\n          path: '\/dev\/ada0s3'\r\n          metaslab_array: 38\r\n          metaslab_shift: 24\r\n          ashift: 9\r\n          asize: xxxxxxxxxx\r\n          is_log: 1\r\n          removing: 1 \u2190 \u524a\u9664\u4e2d\r\n          create_txg: 428\r\n   features_for_read:\r\n       com.delphix:hole_birth\r\n       com.delphix:embedded_data\r\n<\/pre>\n<\/li>\n<li>zpool iostat\u3067\u78ba\u8a8d\u3059\u308b\u3068slog\u306ealloc\u306b\u6570\u5024\u304c\u8868\u793a\u3055\u308c\u308b\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nroot@localhost:~ # zpool iostat -v tank\r\n                capacity     operations    bandwidth\r\npool          alloc   free   read  write   read  write\r\n------------  -----  -----  -----  -----  -----  -----\r\ntank          10.1T   805G      0      0  1.35K  1.10K\r\n  raidz2      10.1T   805G      0      0  1.35K  1.10K\r\n   ada1          -      -       0      0  1.01K  1.13K\r\n   ada2          -      -       0      0    995  1.09K\r\n   ada5          -      -       0      0  1.24K  1.08K\r\n   ada6          -      -       0      0    939  1.06K\r\n   ada3          -      -       0      0   1012  1.11K\r\n   ada4          -      -       0      0    953  1.09K\r\nlogs\r\n   ada0s3        4K    21G      0      0    251  4.28K\r\n------------  -----  -----  -----  -----  -----  -----\r\n                 \u2191\u30b3\u30b3(\u3053\u308c\u81ea\u4f53\u306f\u7279\u306b\u73cd\u3057\u3044\u73fe\u8c61\u3067\u306f\u306a\u3044?)\r\n<\/pre>\n<\/li>\n<li>zpool replace\u306f\u3067\u304d\u308b\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nroot@localhost:~ # zpool replace tank ada0s3 ada7s1\r\n### \u81ea\u52d5\u7684\u306bresilver\u304c\u958b\u59cb\u3055\u308c\u308b\u306e\u3067\u3057\u3070\u3089\u304f\u7d4c\u3063\u305f\u306e\u3061 ###\r\nroot@localhost:~ # zpool status tank\r\n pool: tank\r\nstate: ONLINE\r\n scan: resilvered 0 in 0h32m with 0 errors on Sun Nov 29 06:55:21 2015\r\nconfig:\r\n\r\n       NAME        STATE     READ WRITE CKSUM\r\n       tank        ONLINE       0     0     0\r\n         raidz2-0  ONLINE       0     0     0\r\n           ada1    ONLINE       0     0     0\r\n           ada2    ONLINE       0     0     0\r\n           ada5    ONLINE       0     0     0\r\n           ada6    ONLINE       0     0     0\r\n           ada3    ONLINE       0     0     0\r\n           ada4    ONLINE       0     0     0\r\n        logs\r\n          ada7s1   ONLINE       0     0     0  \u2190 replace\u3067\u304d\u305f\r\n\r\nerrors: No known data errors\r\n<\/pre>\n<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u611f\u3058\u3067\u3059\u3002<br \/>\n\u5b9f\u306f\u3053\u306e\u73fe\u8c61\u3060\u3044\u3076\u524d\u304b\u3089\u6c17\u3065\u3044\u3066\u3044\u3066\u3001\u8272\u3093\u306a\u64cd\u4f5c\u3092\u3084\u3063\u3066\u307f\u305f\u306e\u3067\u3059\u304c\u5168\u304f\u89e3\u6d88\u3055\u308c\u305a\u3001\u8ae6\u3081\u3066\u653e\u7f6e\u3057\u3066\u307e\u3057\u305f\u2026<br \/>\nslog\u30c7\u30d0\u30a4\u30b9\u3092\u7269\u7406\u7684\u306b\u53d6\u308a\u5916\u3057\u305f\u3044\u3068\u304d\u306f\u3001\u9762\u5012\u3067\u3059\u304c\u8eab\u4ee3\u308f\u308a\u306e\u30c7\u30d0\u30a4\u30b9(\u203b)\u3092\u7528\u610f\u3057\u3066replace\u3059\u308c\u3070\u3088\u3044\u3067\u3059\u3057\u2026<\/p>\n<p>\u203b\u7269\u7406\u30c7\u30d0\u30a4\u30b9\u3092\u7528\u610f\u3059\u308b\u306e\u306f\u5927\u5909\u306a\u306e\u3067\u3001\u5b9f\u969b\u306f\u3088\u304f\u30b9\u30d1\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u5272\u308a\u5f53\u3066\u305f\u308a\u3057\u3066\u307e\u3057\u305f\u3002<\/p>\n<p>\u305f\u3060\u3053\u3093\u306a\u3053\u3068\u3044\u3064\u307e\u3067\u3082\u3084\u3063\u3066\u3089\u308c\u306a\u3044\u3057\u6c17\u6301\u3061\u60aa\u304b\u3063\u305f\u306e\u3067\u3001\u4eca\u56de\u601d\u3044\u5207\u3063\u3066\u5bfe\u7b56\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u5bfe\u7b56\u5185\u5bb9\u3068\u3057\u3066\u306f\u3001slog\u3092\u5f37\u5236\u524a\u9664\u3059\u308b\u3088\u3046ZFS\u306e\u30ab\u30fc\u30cd\u30eb\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30bd\u30fc\u30b9\u3092\u66f8\u304d\u63db\u3048\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u5b9f\u884c\u3059\u308b\u3001\u3068\u3044\u3046<strong>\u975e\u5e38\u306b\u5371\u967a\u306a\u65b9\u6cd5<\/strong>\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001ZFS\u306e\u30bd\u30fc\u30b9\u3084\u5f8c\u3067\u7d39\u4ecb\u3059\u308b\u30d1\u30c3\u30c1\u3092\u898b\u3066\u3082\u3089\u3046\u3068\u5206\u304b\u308b\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u3001\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u305d\u306e\u3082\u306e\u3092\u76f4\u63a5\u5f04\u308b\u3088\u3046\u306a\u5909\u66f4\u3067\u306f\u306a\u3044\u3067\u3059\u3057\u3001\u307e\u305f\u30d1\u30c3\u30c1\u306f\u3059\u3054\u304f\u77ed\u304f\u305d\u308c\u81ea\u4f53\u3067\u524a\u9664\u3092\u5b9f\u884c\u3059\u308b\u3088\u3046\u306a\u3082\u306e\u3067\u306f\u306a\u3044\u3067\u3059\u3057\u3001zpool import\u3057\u3066zpool remove\u3057\u3066zpool export\u3059\u308b\u3060\u3051\u306e\u4e00\u56de\u9650\u308a\u306e\u74b0\u5883\u3067\u4f7f\u7528\u3059\u308b\u3060\u3051\u306a\u306e\u3067\u307e\u3041\u5927\u4e08\u592b\u304b\u306a\u3068\u3002<br \/>\n\u3082\u3061\u308d\u3093\u4e00\u5207\u4fdd\u8a3c\u306f\u3057\u307e\u305b\u3093\u304c\u3002<\/p>\n<h3>\u30d1\u30c3\u30c1<\/h3>\n<p><a href=\"https:\/\/gist.github.com\/b333z\/8268711\">b333z\/zfs_slog_zero_vsalloc_inline.patch<\/a><\/p>\n<h3>\u4f5c\u696d\u5185\u5bb9<\/h3>\n<p>\u203b\u9577\u304f\u306a\u308b\u306e\u3067\u9010\u4e00\u30b3\u30de\u30f3\u30c9\u3092\u8868\u8a18\u3057\u305f\u308a\u306f\u3057\u307e\u305b\u3093\u304c\u3001\u307b\u3068\u3093\u3069\u5168\u3066\u4e00\u822c\u7684\u306a\u64cd\u4f5c\u306a\u306e\u3067\u8abf\u3079\u308c\u3070\u8272\u3005\u60c5\u5831\u306f\u51fa\u3066\u304d\u307e\u3059\u3057\u3055\u307b\u3069\u96e3\u3057\u304f\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u30d1\u30c3\u30c1\u306fLinux\u7528\u3067\u3059\u304c\u3001\u79c1\u304c\u4f7f\u7528\u3057\u3066\u308b\u306e\u306fNAS4Free 10.2\u3068FreeBSD 10.2\u306a\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u9069\u7528\u306f\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n\u3057\u304b\u3057\u91cd\u8981\u306a\u90e8\u5206\u306f\u305d\u306e\u307e\u307e\u4f7f\u3048\u307e\u3057\u305f\u3002<\/p>\n<p>\u4ee5\u4e0b\u4f5c\u696d\u5185\u5bb9\uff08\u7b87\u6761\u66f8\u304d\uff09<\/p>\n<p>\u307e\u305a\u306f\u5bfe\u8c61\u306ePC\u306b\u65b0\u3057\u3044\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u8ffd\u52a0\u3057\u3066\u3001\u305d\u3053\u306bFreeBSD 10.2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u8d77\u52d5\u3002<\/p>\n<p>\u305d\u3057\u305f\u3089\u3001<br \/>\n\/usr\/src\/sys\/cddl\/contrib\/opensolaris\/uts\/common\/fs\/zfs\/spa.c<br \/>\n\u306e spa_vdev_remove_from_namespace \u95a2\u6570\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3002<br \/>\n\u203b3\u884c\u8ffd\u52a0\u3057\u305f\u3060\u3051\u3002\u8ffd\u52a0\u90e8\u5206\u3092\u30b5\u30f3\u30c9\u30a4\u30c3\u30c1\u3059\u308b\u3088\u3046\u306a\u30b3\u30e1\u30f3\u30c8\u306e\u66f8\u304d\u65b9\u306f\u5acc\u3044\u3067\u3059\u304c\u3001\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u304f\u306b\u3042\u305f\u3063\u3066\u5206\u304b\u308a\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u306b\u66f8\u304d\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\n\/*\r\n * Complete the removal by cleaning up the namespace.\r\n *\/\r\nstatic void\r\nspa_vdev_remove_from_namespace(spa_t *spa, vdev_t *vd)\r\n{\r\n\tvdev_t *rvd = spa-&gt;spa_root_vdev;\r\n\tuint64_t id = vd-&gt;vdev_id;\r\n\tboolean_t last_vdev = (id == (rvd-&gt;vdev_children - 1));\r\n\r\n\tASSERT(MUTEX_HELD(&amp;spa_namespace_lock));\r\n\tASSERT(spa_config_held(spa, SCL_ALL, RW_WRITER) == SCL_ALL);\r\n\tASSERT(vd == vd-&gt;vdev_top);\r\n\r\n\t\/\/ \u8ffd\u52a0\u3053\u3053\u304b\u3089\r\n\tif (vd-&gt;vdev_islog == 1 &amp;&amp; vd-&gt;vdev_removing == 1 &amp;&amp; vd-&gt;vdev_state == VDEV_STATE_OFFLINE &amp;&amp; vd-&gt;vdev_stat.vs_alloc &gt; 0) {\r\n\t\tvd-&gt;vdev_stat.vs_alloc = 0;\r\n\t}\r\n\t\/\/ \u8ffd\u52a0\u3053\u3053\u307e\u3067\r\n\r\n\t\/*\r\n\t * Only remove any devices which are empty.\r\n\t *\/\r\n\tif (vd-&gt;vdev_stat.vs_alloc != 0)\r\n\t\treturn;\r\n\r\n\t(void) vdev_label_init(vd, 0, VDEV_LABEL_REMOVE);\r\n\r\n\tif (list_link_active(&amp;vd-&gt;vdev_state_dirty_node))\r\n\t\tvdev_state_clean(vd);\r\n\tif (list_link_active(&amp;vd-&gt;vdev_config_dirty_node))\r\n\t\tvdev_config_clean(vd);\r\n\r\n\tvdev_free(vd);\r\n\r\n\tif (last_vdev) {\r\n\t\tvdev_compact_children(rvd);\r\n\t} else {\r\n\t\tvd = vdev_alloc_common(spa, id, 0, &amp;vdev_hole_ops);\r\n\t\tvdev_add_child(rvd, vd);\r\n\t}\r\n\tvdev_config_dirty(rvd);\r\n\r\n\t\/*\r\n\t * Reassess the health of our root vdev.\r\n\t *\/\r\n\tvdev_reopen(rvd);\r\n}\r\n<\/pre>\n<p>\u305d\u3057\u305f\u3089\u30ab\u30fc\u30cd\u30eb\u306e\u518d\u69cb\u7bc9\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n\u6700\u8fd1\u306f\u3082\u3063\u3068\u826f\u3044\u3084\u308a\u65b9\u304c\u3042\u308b\u3089\u3057\u3044\u3067\u3059\u304c\u3001\u53e4\u3044\u3084\u308a\u65b9\u3067\u3082\u4eca\u56de\u306f\u7279\u306b\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\n<a href=\"http:\/\/suken.jp\/~tet\/FreeBSD\/kernel_rebuild.rhtml\">FreeBSD &#8211; How to build kernel<\/a><\/p>\n<p>\u65b0\u3057\u3044\u30ab\u30fc\u30cd\u30eb\u3067\u518d\u8d77\u52d5\u3057\u305f\u3089\u3001\u666e\u901a\u306b\u5bfe\u8c61\u306e\u30d7\u30fc\u30eb\u3092zpool import\u3057(\u72b6\u6cc1\u306b\u3088\u3063\u3066\u306fslog\u3092\u7121\u8996\u3059\u308b\u305f\u3081\u306b-m\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u5fc5\u8981\u304b\u3082)\u3001zpool offline\u3067slog\u3092\u30aa\u30d5\u30e9\u30a4\u30f3\u306b\u3057(\u203b)\u3001zpool remove\u3067slog\u3092\u524a\u9664\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3053\u306e\u6642\u70b9\u3067zpool status\u3059\u308b\u3068slog\u304c\u6d88\u3048\u3066\u307e\u3057\u305f\u3002<\/p>\n<p>\u203b\u30d1\u30c3\u30c1\u306eif\u3067\u30c7\u30d0\u30a4\u30b9\u304c\u30aa\u30d5\u30e9\u30a4\u30f3\u306b\u306a\u3063\u3066\u308b\u304b\u3069\u3046\u304b\u3082\u30c1\u30a7\u30c3\u30af\u3057\u3066\u308b\u306e\u3067zpool offline\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3042\u3068\u306fzpool export\u3057\u3066\u304b\u3089\u3001\u672c\u6765\u306e\u74b0\u5883\u3067\u518d\u8d77\u52d5\u3002<\/p>\n<p>\u3053\u308c\u3067\u30d7\u30fc\u30eb\u306b\u4f59\u8a08\u306aslog\u304c\u7121\u3044\u72b6\u614b\u3067\u4eca\u307e\u3067\u3069\u304a\u308a\u4f7f\u3048\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<h4>\u4f59\u8ac7<\/h4>\n<p>\u6700\u521d\u3001VMware\u306e\u4eee\u60f3\u30de\u30b7\u30f3\u4e0a\u306bslog\u306e\u5f37\u5236\u524a\u9664\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3001dd\u3067\u5b9f\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u30a4\u30e1\u30fc\u30b8\u30b3\u30d4\u30fc\u3057\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u306ePC\u3067\u8d77\u52d5\u3057\u3088\u3046\u3068\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u306a\u3093\u304b\u8d77\u52d5\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\n\u8d77\u52d5\u30d7\u30ed\u30bb\u30b9\u7684\u306b\u306f\u7d50\u69cb\u6700\u5f8c\u306b\u8fd1\u3044\u65b9\u307e\u3067\u9032\u3080\u3093\u3067\u3059\u304ckernel panic\u3067\u843d\u3061\u308b\u611f\u3058\u3067\u3059(\u203b)\u3002<\/p>\n<p>\u203b\u5b9f\u306e\u3068\u3053\u308d\u8868\u793a\u304c\u4e00\u77ac\u904e\u304e\u3066\u3088\u304f\u5206\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u2026<\/p>\n<p>Linux\u3060\u3068\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u304c\u5909\u308f\u308b\u3068initram\u3092\u518d\u4f5c\u6210\u3057\u306a\u3044\u3068\u8d77\u52d5\u3057\u306a\u304b\u3063\u305f\u308a\u3068\u304b\u306f\u3042\u308b\u3093\u3067\u3059\u304c\u3001FreeBSD\u306e\u3053\u3068\u306f\u3088\u304f\u77e5\u3089\u306a\u3044\u3067\u3059\u3057\u3001\u305d\u306e\u3068\u304d\u7720\u304f\u3066\u982d\u304c\u52d5\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u3001FreeBSD\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u30ab\u30fc\u30cd\u30eb\u306e\u518d\u69cb\u7bc9\u307e\u3067\u5b9f\u6a5f\u3067\u3084\u308a\u76f4\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>ident\u4ee5\u5916\u306fGENERIC\u305d\u306e\u307e\u307e\u306econfig\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305f\u3093\u3067\u3059\u304c\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u74b0\u5883\u306eHW\u306b\u5fdc\u3058\u3066\u81ea\u52d5\u7684\u306b\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u53d6\u6368\u3055\u308c\u308b\u306e\u3060\u308d\u3046\u304b\u2026<\/p>\n<p>\u3042\u3068\u4eca\u56de\u53d6\u308a\u4e0a\u3052\u305f\u73fe\u8c61\u3001\u691c\u7d22\u3057\u3066\u307f\u308b\u3068\u7d50\u69cb\u540c\u3058\u3088\u3046\u306a\u5831\u544a\u304c\u3042\u3063\u3066\u3001\u3082\u3057\u304b\u3057\u305f\u3089slog\u306e\u524a\u9664\u306b\u672a\u5bfe\u5fdc\u3060\u3063\u305f\u6642\u4ee3\u304b\u3089zpool upgrade\u3057\u306a\u304c\u3089\u4f7f\u3044\u7d9a\u3051\u3066\u3044\u308b\u30d7\u30fc\u30eb\u306e\u304b\u306a\u308a\u306e\u5272\u5408\u3067\u540c\u3058\u554f\u984c\u304c\u8d77\u304d\u3066\u3044\u308b\u306e\u3067\u306f\u306a\u304b\u308d\u3046\u304b\u3068\u601d\u3044\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"author":1,"featured_media":4158,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[293,433,368],"class_list":["post-4139","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech","tag-freebsd","tag-nas4free","tag-zfs"],"_links":{"self":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/4139","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=4139"}],"version-history":[{"count":0,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/4139\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/media\/4158"}],"wp:attachment":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/media?parent=4139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/categories?post=4139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/tags?post=4139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}