{"id":751,"date":"2010-02-23T17:59:00","date_gmt":"2010-02-23T09:59:00","guid":{"rendered":"http:\/\/blog.pighead.cc\/whsyu\/?p=751"},"modified":"2011-08-04T19:35:37","modified_gmt":"2011-08-04T11:35:37","slug":"change-pool-name-for-zfsroot","status":"publish","type":"post","link":"https:\/\/blog.pighead.cc\/whsyu\/2010\/02\/23\/change-pool-name-for-zfsroot\/","title":{"rendered":"\u63db zfsroot pool \u7684\u540d\u4ed4"},"content":{"rendered":"<p class=\"bb-post-separator\"><strong>[\u5ba2\u5bb6\u8a71, hak-Hant-TW]  <\/strong><\/p><p>\u4e00\u822c\u8981\u63db zfs \u7684 pool \u540d\u5c31\u76f4\u63a5 export \u904e\u4f86 import \u63db\u65b0\u540d\u5c31\u597d\u4e86\uff0c\u6bcb\u904e\u662f\u8b1b pool \u889b\u809a\u6709 root \u5c31\u4f5c\u4e0d\u5f97 export\uff0c\u6309\u4ed4\u5c31\u8981\u7528\u5225\u96bb\u65b9\u6cd5\u4f86\u6539\u3002<\/p>\n<p>\u8981\u7528 zfs \u958b\u6a5f\u7684\u6642\u7bc0\uff0c\u7cfb\u7d71\u6703\u53c3\u8003 \/boot\/zfs\/zpool.cache \u4f86 import \u770b\u5f97\u5230\u7684 zfs pool\uff0c\u662f\u8b1b\u6c92\u627e\u5230 \/boot\/loader.conf \u5e95\u809a\u7684 vfs.root.mountform \u6307\u5b9a\u7684\u5730\u65b9\uff0c\u5c31\u6703\u8df3\u51fa\u932f\u8aa4\u8a0a\u606f\u53eb\u4f60\u8f38\u5165\u5c0d\u7684\u4f4d\u4ed4\uff0c\u6240\u4ee5\u5e38\u7406\u4f86\u8b1b\u662f\u6c92\u8981\u633a\u52d5\u8f03\u597d\uff0c\u6b63\u7d93\u60f3\u8981\u8981\u6539\u53ef\u4ee5\u6309\u4ed4\u505a\uff1a<\/p>\n<ol>\n<li>\u7528\u5225\u53f0\u96fb\u8166 (\u6c92\u5c31\u662f\u63db\u4e00\u500b\u786c\u789f\u958b\u6a5f) \u5f37\u5236 import \u9019\u96bb zfs pool \u540c\u6642\u6539\u540d\u4ed4\u3002<\/li>\n<li>\u62f7\u9019\u4e0b\u9019\u500b\u7cfb\u7d71\u7684 zpool.cache \u9032\u53bb\u9019\u96bb pool \u76f8\u5c0d\u7684\u4f4d\u4ed4\u3002 (\u53ef\u4ee5\u76f4\u63a5\u7528\u9019\u4e0b\u7684\u7cfb\u7d71 mount \u9019\u96bb pool \u7684 root)<\/li>\n<li>\u914d\u5408\u4fee\u6539 \/boot\/loader.conf \u7684 vfs.root.mountform \u8b8a\u4f5c\u65b0\u7684\u540d\u4ed4\u3002<\/li>\n<li>\u914d\u5408\u4fee\u6539 \/etc\/fstab \uff0c\u5171\u6a23\u6709\u770b\u5230\u820a\u4ed4\u540d\u4ed4\u5c31\u63db\u4f5c\u65b0\u540d\u3002<\/li>\n<li>\u63db\u8f49\u53bb\u7528\u9019\u96bb\u786c\u789f\u958b\u6a5f\uff0c\u662f\u8b1b\u6c92\u554f\u984c\u5c31\u770b\u5f97\u5230 pool \u7684\u540d\u63db\u4e86\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>[\u5ba2\u5bb6\u8a71, hak-Hant-TW] \u4e00\u822c\u8981\u63db zfs \u7684 pool \u540d\u5c31\u76f4\u63a5 export \u904e\u4f86 import \u63db\u65b0\u540d\u5c31\u597d\u4e86\uff0c\u6bcb\u904e\u662f\u8b1b pool \u889b\u809a\u6709 root \u5c31\u4f5c\u4e0d\u5f97 export\uff0c\u6309\u4ed4\u5c31\u8981\u7528\u5225\u96bb\u65b9\u6cd5\u4f86\u6539\u3002 \u8981\u7528 zfs \u958b\u6a5f\u7684\u6642\u7bc0\uff0c\u7cfb\u7d71\u6703\u53c3\u8003 \/boot\/zfs\/zpool.cache \u4f86 import \u770b\u5f97\u5230\u7684 zfs pool\uff0c\u662f\u8b1b\u6c92\u627e\u5230 \/boot\/loader.conf \u5e95\u809a\u7684 vfs.root.mountform \u6307\u5b9a\u7684\u5730\u65b9\uff0c\u5c31\u6703\u8df3\u51fa\u932f\u8aa4\u8a0a\u606f\u53eb\u4f60\u8f38\u5165\u5c0d\u7684\u4f4d\u4ed4\uff0c\u6240\u4ee5\u5e38\u7406\u4f86\u8b1b\u662f\u6c92\u8981\u633a\u52d5\u8f03\u597d\uff0c\u6b63\u7d93\u60f3\u8981\u8981\u6539\u53ef\u4ee5\u6309\u4ed4\u505a\uff1a \u7528\u5225\u53f0\u96fb\u8166 (\u6c92\u5c31\u662f\u63db\u4e00\u500b\u786c\u789f\u958b\u6a5f) \u5f37\u5236 import \u9019\u96bb zfs pool \u540c\u6642\u6539\u540d\u4ed4\u3002 \u62f7\u9019\u4e0b\u9019\u500b\u7cfb\u7d71\u7684 zpool.cache \u9032\u53bb\u9019\u96bb&hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[4591,107],"class_list":["post-751","post","type-post","status-publish","format-standard","hentry","category-freebsd","tag-freebsd","tag-zfs"],"_links":{"self":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/comments?post=751"}],"version-history":[{"count":4,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/751\/revisions"}],"predecessor-version":[{"id":754,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/751\/revisions\/754"}],"wp:attachment":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/media?parent=751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/categories?post=751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/tags?post=751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}