<br />
<b>Warning</b>:  Trying to access array offset on null in <b>/pub/websites/318/weblog/wordpress/wp-content/plugins/pighead_langtag.php</b> on line <b>187</b><br />
<br />
<b>Warning</b>:  Trying to access array offset on null in <b>/pub/websites/318/weblog/wordpress/wp-content/plugins/pighead_langtag.php</b> on line <b>134</b><br />
<br />
<b>Warning</b>:  Trying to access array offset on null in <b>/pub/websites/318/weblog/wordpress/wp-content/plugins/pighead_langtag.php</b> on line <b>187</b><br />
<br />
<b>Warning</b>:  Trying to access array offset on null in <b>/pub/websites/318/weblog/wordpress/wp-content/plugins/pighead_langtag.php</b> on line <b>134</b><br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /pub/websites/318/weblog/wordpress/wp-content/plugins/pighead_langtag.php:187) in <b>/pub/websites/318/weblog/wordpress/wp-includes/rest-api/class-wp-rest-server.php</b> on line <b>1902</b><br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /pub/websites/318/weblog/wordpress/wp-content/plugins/pighead_langtag.php:187) in <b>/pub/websites/318/weblog/wordpress/wp-includes/rest-api/class-wp-rest-server.php</b> on line <b>1902</b><br />
{"id":77,"date":"2008-04-02T19:19:10","date_gmt":"2008-04-02T11:19:10","guid":{"rendered":"http:\/\/blog.pighead.cc\/whsyu\/?p=77"},"modified":"2008-11-05T12:02:14","modified_gmt":"2008-11-05T04:02:14","slug":"zfs-hostid","status":"publish","type":"post","link":"https:\/\/blog.pighead.cc\/whsyu\/2008\/04\/02\/zfs-hostid\/","title":{"rendered":"zfs, hostid"},"content":{"rendered":"<p class=\"bb-post-separator\"><strong>[]  <\/strong><\/p><p>zfs \u7684\u8a2d\u5b9a\u7684\u78ba\u662f\u5f88\u8f15\u9b06\u6109\u5feb\uff0c\u4e0d\u904e\u60f3\u8981\u628a\u786c\u789f\u62ff\u5230\u5225\u7684\u6a5f\u5668\u7528\u7684\u8a71\u5c31\u6703\u51fa\u73fe\u4e00\u4e9b\u554f\u984c\uff0c\u7c21\u55ae\u7684\u8aaa\u5c31\u662f\u6703\u8a8d\u6a5f\u5668\u5c31\u662f\u4e86\u3002<\/p>\n<p>\u5728\u5225\u53f0\u6a5f\u5668\u60f3\u8981\u639b\u4e0a\u53bb\u7684\u8a71\uff0c\u5c31\u6703\u51fa\u73fe\u8b66\u544a\u8a0a\u606f\u8aaa\u9019\u9846\u786c\u789f (\u5176\u5be6\u61c9\u8a72\u8aaa\u9019\u500b pool) \u4e4b\u524d\u6709\u88ab\u5225\u7684\u7cfb\u7d71\u5b58\u53d6\u904e\u6240\u4ee5\u4e0d\u8b93\u4f60\u639b\u8f09\u9019\u500b pool\uff0c\u932f\u8aa4\u8a0a\u606f\u985e\u4f3c\u9019\u500b\u6a23\u5b50\uff1a<br \/>\n<code><br \/>\nZFS: WARNING: pool 'tank' could not be loaded as it was last<br \/>\naccessed by another system (host: hostid: 0x0). See:<br \/>\nhttp:\/\/www.sun.com\/msg\/ZFS-8000-EY<br \/>\n<\/code><\/p>\n<p>\u7576\u7136\uff0c\u8981\u5f37\u5236\u639b\u4e0a\u4e5f\u4e0d\u662f\u4e0d\u884c\uff0c\u52a0\u53c3\u6578\u5373\u53ef\u3002<br \/>\n<code>zpool import -f tank\u00a0<\/code><\/p>\n<p>\u4ee5\u9019\u500b\u4f8b\u5b50\u7684\u8a71\uff0c\u5c31\u662f\u628a tank \u9019\u500b pool \u5f37\u5236\u639b\u8f09\u4e0a\u53bb\u3002 \u7576\u7136\uff0c\u65b0\u7684\u7cfb\u7d71\u88e1\u9762\u4e0d\u80fd\u5b58\u5728\u53e6\u4e00\u500b\u4e5f\u53eb tank \u7684 pool\uff0c\u4e0d\u7136\u5c31\u7b97\u52a0\u53c3\u6578\u5f37\u5236\u639b\u8f09\u9084\u662f\u6703\u639b\u8f09\u5931\u6557\u7684\u3002<\/p>\n<p>zfs \u53c8\u662f\u600e\u9ebc\u77e5\u9053\u7cfb\u7d71\u662f\u4e0d\u662f\u540c\u4e00\u500b\u5462\uff1f\u53ea\u8981\u770b hostid \u5c31\u77e5\u9053\u4e86\uff0c\u6240\u4ee5\u8aaa\u5728 single user mode \u4e0b\u8981\u505a zfs \u7684\u64cd\u4f5c\u4e4b\u524d\uff0c\u6700\u597d\u662f\u5148\u8dd1\u4e00\u4e0b \/etc\/rc.d\/hostid start\uff0c\u4e0d\u7136\u4ed6\u6703\u4ee5\u70ba\u662f\u5728\u4e0d\u540c\u7684\u7cfb\u7d71\u5c31\u51fa\u73fe\u524d\u9762\u8b1b\u7684\u932f\u8aa4\u8a0a\u606f\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[] zfs \u7684\u8a2d\u5b9a\u7684\u78ba\u662f\u5f88\u8f15\u9b06\u6109\u5feb\uff0c\u4e0d\u904e\u60f3\u8981\u628a\u786c\u789f\u62ff\u5230\u5225\u7684\u6a5f\u5668\u7528\u7684\u8a71\u5c31\u6703\u51fa\u73fe\u4e00\u4e9b\u554f\u984c\uff0c\u7c21\u55ae\u7684\u8aaa\u5c31\u662f\u6703\u8a8d\u6a5f\u5668\u5c31\u662f\u4e86\u3002 \u5728\u5225\u53f0\u6a5f\u5668\u60f3\u8981\u639b\u4e0a\u53bb\u7684\u8a71\uff0c\u5c31\u6703\u51fa\u73fe\u8b66\u544a\u8a0a\u606f\u8aaa\u9019\u9846\u786c\u789f (\u5176\u5be6\u61c9\u8a72\u8aaa\u9019\u500b pool) \u4e4b\u524d\u6709\u88ab\u5225\u7684\u7cfb\u7d71\u5b58\u53d6\u904e\u6240\u4ee5\u4e0d\u8b93\u4f60\u639b\u8f09\u9019\u500b pool\uff0c\u932f\u8aa4\u8a0a\u606f\u985e\u4f3c\u9019\u500b\u6a23\u5b50\uff1a ZFS: WARNING: pool &#8216;tank&#8217; could not be loaded as it was last accessed by another system (host: hostid: 0x0). See: http:\/\/www.sun.com\/msg\/ZFS-8000-EY \u7576\u7136\uff0c\u8981\u5f37\u5236\u639b\u4e0a\u4e5f\u4e0d\u662f\u4e0d\u884c\uff0c\u52a0\u53c3\u6578\u5373\u53ef\u3002 zpool import -f tank\u00a0 \u4ee5\u9019\u500b\u4f8b\u5b50\u7684\u8a71\uff0c\u5c31\u662f\u628a tank \u9019\u500b pool \u5f37\u5236\u639b\u8f09\u4e0a\u53bb\u3002 \u7576\u7136\uff0c\u65b0\u7684\u7cfb\u7d71\u88e1\u9762\u4e0d\u80fd\u5b58\u5728\u53e6\u4e00\u500b\u4e5f\u53eb&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":[],"class_list":["post-77","post","type-post","status-publish","format-standard","hentry","category-freebsd"],"_links":{"self":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/77","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=77"}],"version-history":[{"count":0,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/77\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/media?parent=77"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/categories?post=77"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/tags?post=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}