{"id":111,"date":"2016-10-14T17:52:00","date_gmt":"2016-10-14T08:52:00","guid":{"rendered":"https:\/\/blog.maaya.jp\/?p=111"},"modified":"2019-01-07T17:28:20","modified_gmt":"2019-01-07T08:28:20","slug":"freebsd-11-0-release%e3%81%a7zpool%e3%82%92upgrade%e3%81%97%e3%81%9f%e5%be%8cbootstrap-code%e3%81%8c%e6%9b%b8%e3%81%91%e3%81%aa%e3%81%8b%e3%81%a3%e3%81%9f%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/blog.maaya.jp\/?p=111","title":{"rendered":"FreeBSD 11.0-RELEASE\u3067zpool\u3092upgrade\u3057\u305f\u5f8cbootstrap code\u304c\u66f8\u3051\u306a\u304b\u3063\u305f\u4ef6"},"content":{"rendered":"<p>\u5148\u65e5\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f FreeBSD 11.0-RELEASE(-p1)\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u307e\u3057\u305f\u3002\u3068\u306f\u3044\u3063\u3066\u3082\u305d\u3053\u306f\u4f55\u6642\u3082\u901a\u308a freebsd-update upgrade \u304b\u307e\u3059\u3060\u3051\u306a\u306e\u3067\u5272\u611b\u3002<\/p>\n<p>\u4eca\u56de\u56f0\u3063\u305f\u306e\u306f\u305d\u306e\u3042\u3068\u306e\u3053\u3068\u3002\u666e\u6bb5\u306f\u6c17\u306b\u3057\u306a\u3044\u3082\u306e\u306e\u3001\u30e1\u30b8\u30e3\u30fc\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u306e\u6642\u306fzfs\u306estatus\u3082\u3061\u3087\u3063\u3068\u6c17\u306b\u3059\u308b\u3082\u306e\u3067\u3059\u3002<br \/>\n\u305d\u3057\u305f\u3089\u3001\u4e45\u3005\u306bsupported features\u8ffd\u52a0\u3042\u308b\u305e\u3068\u4ef0\u308b\u3002\u304a\u3082\u3080\u308d\u306bzpool upgrade\u304b\u307e\u3059\u308f\u3051\u3067\u3059\u3088\u3002\u305d\u3053\u307e\u3067\u306f\u554f\u984c\u306a\u3044\u3002<br \/>\nzfs root\u306a\u74b0\u5883\u306a\u306e\u3067\u3001\u6b21\u306fbootstrap code\u66f8\u3044\u3068\u3051\u3088\u3068\u89aa\u5207\u306b\u6559\u3048\u3066\u304f\u308c\u308b\u308f\u3051\u3067\u3059\u3002\u3084\u306f\u308a\u305d\u306e\u901a\u308a\u306b\u3057\u307e\u3059\u3088\u306d\u3002\u305d\u3057\u305f\u3089not enough space\u8a00\u308f\u308c\u308b\u308f\u3051\u3067\u3059\u3088\u3002<br \/>\n<strong>\u5618\u3060\u308d?<\/strong><\/p>\n<p>(\u305f\u3076\u3093\u3082\u3046\u4eca\u5f8c\u306a\u3044\u3060\u308d\u3046\u3051\u3069)\u305d\u306e\u6642\u306e\u5bfe\u51e6\u306e\u30e1\u30e2\u3002<br \/>\n<!--more--><br \/>\n\u53c2\u8003: <a href=\"https:\/\/forums.freebsd.org\/threads\/57955\/\">https:\/\/forums.freebsd.org\/threads\/57955\/<\/a><\/p>\n<p>\u3067\u306f\u3001bootstrap code\u304b\u3051\u306a\u304b\u3063\u305f\u3001GPT\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n<code>% gpart show<br \/>\n=&gt; 34 419430333 vtbd0 GPT (200G)<br \/>\n34 128 1 freebsd-boot (64K)<br \/>\n162 8388608 2 freebsd-swap (4.0G)<br \/>\n8388770 411041597 3 freebsd-zfs (196G)<\/code><br \/>\n\u3053\u308c\u4f5c\u3063\u305f\u5f53\u6642\u306f\u78ba\u304b\u307e\u3060\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3067zfs root\u306f\u6307\u5b9a\u3067\u304d\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u81ea\u5206\u3067\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u5207\u3063\u305f\u306f\u305a\u3002\u306764K\u3058\u3083\u53ce\u307e\u3089\u306a\u304f\u306a\u3063\u305f\u3089\u3057\u3044\u3002<br \/>\n\u305d\u308c\u3088\u308a\u5f8c\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u4f7f\u3063\u3066zfs root\u74b0\u5883\u306b\u3057\u305f\u30de\u30b7\u30f3\u3060\u3068\u3001boot\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306f512K\u306b\u306a\u3063\u3066\u308b\u306e\u3067\u305d\u308c\u306b\u5023\u3046\u3002<br \/>\n\u3058\u3083\u3041\u3069\u3053\u304b\u3089\u305d\u306e\u5bb9\u91cf\u637b\u308a\u51fa\u3059\u304b\u3002\u307e\u3041swap\u3057\u304b\u306a\u3044\u3067\u3059\u3088\u3002\u307b\u3093\u306e\u3061\u3087\u3073\u3063\u3068\u6e1b\u308b\u306e\u306f\u6211\u6162\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><code># swapoff -a<br \/>\n# gpart delete -i 1 vtbd0<br \/>\n# gpart delete -i 2 vtbd0<br \/>\n# gpart add -b 34 -s 512K -i 1 -t freebsd-boot -l gptboot0 vtbd0<br \/>\n# gpart add -b 1058 -i 2 -t freebsd-swap -l swap0 vtbd0<br \/>\n# gpart show<br \/>\n=&gt;       34  419430333  vtbd0  GPT  (200G)<br \/>\n34       1024      1  freebsd-boot  (512K)<br \/>\n1058    8387712      2  freebsd-swap  (4.0G)<br \/>\n8388770  411041597      3  freebsd-zfs  (196G)<br \/>\n# swapon -a<\/code><br \/>\nswapoff\u3059\u308b\u3068\u304d\u306bswap\u3057\u3066\u305f\u5bb9\u91cf\u5206\u3092\u30e1\u30e2\u30ea\u306b\u623b\u305b\u308b\u3088\u3046\u306b\u30e1\u30e2\u30ea\u306e\u7a7a\u304d\u3092\u7a7a\u3051\u3066\u304a\u304f\u3053\u3068\u3001\u524a\u9664\u3059\u308b\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u9593\u9055\u3048\u306a\u3044\u3053\u3068\u3002\u3053\u308c\u3055\u3048\u6c17\u3092\u4ed8\u3051\u308c\u3070\u5927\u4e08\u592b\u3002\u79c1\u3082ssh\u8d8a\u3057\u306b\u30c9\u30ad\u30c9\u30ad\u3057\u306a\u304c\u3089\u3084\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u306a\u3093\u306711.0-R\u306b\u306a\u3063\u3066\u7a81\u7136code\u5bb9\u91cf\u304c\u3067\u304b\u304f\u306a\u3063\u305f\u3093\u3060\u308d\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u65e5\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f FreeBSD 11.0-RELEASE(-p1)\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u307e\u3057\u305f\u3002\u3068\u306f\u3044\u3063\u3066\u3082\u305d\u3053\u306f\u4f55\u6642\u3082\u901a\u308a freebsd-update upgrade \u304b\u307e\u3059\u3060\u3051\u306a\u306e\u3067\u5272\u611b\u3002 \u4eca\u56de\u56f0\u3063\u305f\u306e\u306f\u305d\u306e\u3042\u3068\u306e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48],"tags":[40,39,41],"class_list":["post-111","post","type-post","status-publish","format-standard","hentry","category-freebsd","tag-11-0-release","tag-freebsd","tag-gpart"],"_links":{"self":[{"href":"https:\/\/blog.maaya.jp\/index.php?rest_route=\/wp\/v2\/posts\/111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.maaya.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.maaya.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.maaya.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.maaya.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=111"}],"version-history":[{"count":3,"href":"https:\/\/blog.maaya.jp\/index.php?rest_route=\/wp\/v2\/posts\/111\/revisions"}],"predecessor-version":[{"id":589,"href":"https:\/\/blog.maaya.jp\/index.php?rest_route=\/wp\/v2\/posts\/111\/revisions\/589"}],"wp:attachment":[{"href":"https:\/\/blog.maaya.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.maaya.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.maaya.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}