{"id":10394,"date":"2013-12-27T23:59:15","date_gmt":"2013-12-27T14:59:15","guid":{"rendered":"http:\/\/oichinote.com\/plus\/?p=10394"},"modified":"2013-12-31T13:56:08","modified_gmt":"2013-12-31T04:56:08","slug":"moving-usr-local-to-other-pool","status":"publish","type":"post","link":"https:\/\/oichinote.com\/plus\/2013\/12\/moving-usr-local-to-other-pool.html","title":{"rendered":"ZFS\u3067\/usr\/local\u3092\u5f15\u3063\u8d8a\u3059"},"content":{"rendered":"<p>FreeBSD 9.1\u3092\u30d5\u30ebZFS\u3067\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2013\/04\/install-freebsd-with-full-zfs.html\" rel=\"_RAclick\">FreeBSD\u3067Full ZFS\u30b7\u30b9\u30c6\u30e0\u4f5c\u6210\u306e\u5b9f\u9a13[\u8ffd\u8a18\u3042\u308a]: \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2013\u5e744\u670829\u65e5)<\/em><\/li>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2013\/08\/setting-up-freebsd-as-a-server.html\" rel=\"_RAclick\">FreeBSD\u306b\u30b5\u30fc\u30d0\u7528\u30bd\u30d5\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u304f\u308a: \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2013\u5e748\u670813\u65e5)<\/em><\/li>\n<\/ul>\n<p>\u30bd\u30d5\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u304f\u3063\u3066\u3044\u305f\u3089\u3001\u30b7\u30b9\u30c6\u30e0\u7528\u306e\u30d7\u30fc\u30eb(rpool)\u3092\u3042\u3075\u308c\u3055\u305b\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3055\u3089\u306b\u306f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308bPHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5909\u66f4\u3057\u3088\u3046\u3068\u3057\u3066\u3001\u9006\u306b\u4ed6\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u305f\u30bd\u30d5\u30c8\u3092\u6d88\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f&#8230;\u3002<\/p>\n<p>\u3053\u3093\u306a\u3053\u3068\u3082\u3042\u308d\u3046\u304b\u3068\u3001\u6570\u65e5\u524d\u306b\u53d6\u3063\u3066\u3042\u3063\u305f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u304b\u3089\u3001\u30c7\u30fc\u30bf\u3092\u5fa9\u65e7\u3067\u304d\u307e\u3057\u305f\u3002ZFS\u3001\u3059\u3054\u3059\u304e\u307e\u3059&#8230;\u3002<\/p>\n<p>\u3067\u3082\u3001\/usr\/local\u9818\u57df\u4e0d\u8db3\u306f\u5426\u3081\u307e\u305b\u3093\u3002\u305d\u3053\u3067\u3001\/usr\/local\u3092\u5bb9\u91cf\u306e\u5c11\u306a\u3044rpool\u304b\u3089upool\u306b\u5f15\u3063\u8d8a\u3059\u3053\u3068\u3092\u691c\u8a0e\u3057\u307e\u3057\u305f\u3002\u307e\u305f\u3001upool\u306f\u30df\u30e9\u30fc\u69cb\u6210\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u8010\u969c\u5bb3\u6027\u304c\u9ad8\u3044\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/oichinote.com\/plus\/files\/2013\/12\/20131227freebsd-zfs.png\" alt=\"ZFS\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\" width=\"480\" height=\"178\" class=\"alignnone size-full wp-image-10396\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2013\/12\/20131227freebsd-zfs.png 480w, https:\/\/oichinote.com\/plus\/files\/2013\/12\/20131227freebsd-zfs-150x56.png 150w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>\u6b21\u306e\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u30b7\u30f3\u30b0\u30eb\u30e6\u30fc\u30b6\u30e2\u30fc\u30c9\u3067\u8d77\u52d5<\/li>\n<li>rpool\/root\/usr\/local\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u4f5c\u6210<\/li>\n<li>upool\/usr\/local\u4f5c\u6210<\/li>\n<li>\u30c7\u30fc\u30bf\u30b3\u30d4\u30fc<\/li>\n<li>\u30de\u30a6\u30f3\u30c8\u30dd\u30a4\u30f3\u30c8\u518d\u8a2d\u5b9a<\/li>\n<\/ol>\n<h3>1. \u30b7\u30f3\u30b0\u30eb\u30e6\u30fc\u30b6\u30e2\u30fc\u30c9\u3067\u8d77\u52d5<\/h3>\n<p>\u30b7\u30b9\u30c6\u30e0\u8d77\u52d5\u6642\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3001\u30b7\u30f3\u30b0\u30eb\u30e6\u30fc\u30b6\u30e2\u30fc\u30c9\u3092\u9078\u3093\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>2. rpool\/root\/usr\/local\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u4f5c\u6210<\/h3>\n<p>\u30b7\u30b9\u30c6\u30e0\u304c\u7acb\u3061\u4e0a\u304c\u3063\u305f\u3089\u3001\u6b21\u306e\u65b9\u6cd5\u3067\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre># zfs snapshot rpool\/root\/usr\/local@snap20131227<\/pre>\n<h3>3. upool\/usr\/local\u4f5c\u6210<\/h3>\n<p>\u65b0\u3057\u304f\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u4f5c\u308a\u307e\u3059\u3002&#8221;-o mountpoint=none&#8221;\u3067\u81ea\u52d5\u30de\u30a6\u30f3\u30c8\u3055\u308c\u306a\u3044\u69d8\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre># zfs create -o mountpoint=none upool\/usr\r\n# zfs create -o mountpoint=none upool\/usr\/local<\/pre>\n<h3>4. \u30c7\u30fc\u30bf\u30b3\u30d4\u30fc<\/h3>\n<p>\u4f5c\u3063\u305f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u3001\u65b0\u3057\u304f\u4f5c\u3063\u305f\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002ZFS\u306e\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u4f7f\u3048\u3070\u3001\u697d\u30c1\u30f3\u3067\u3059\u3002<\/p>\n<p>&#8220;-F&#8221;\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u306a\u3044\u3068\u3001\u3046\u307e\u304f\u884c\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<pre># zsend rpool\/usr\/local@snap20131227 | zrecv -F upool\/usr\/local<\/pre>\n<h3>5. \u30de\u30a6\u30f3\u30c8\u30dd\u30a4\u30f3\u30c8\u518d\u8a2d\u5b9a<\/h3>\n<p>\u30c7\u30fc\u30bf\u30b3\u30d4\u30fc\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u30de\u30a6\u30f3\u30c8\u30dd\u30a4\u30f3\u30c8\u3092\u518d\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u307e\u3067\u306e\u3001rpool\u306b\u3042\u3063\u305f\/usr\/local\u306e\u30de\u30a6\u30f3\u30c8\u3092\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u3001\u65b0\u3057\u304f\u4f5c\u3063\u305fupool\/usr\/local\u3092\u3001\/usr\/local\u306b\u30de\u30a6\u30f3\u30c8\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre># zfs set mountpoint=none rpool\/usr\/local\r\n# zfs set mountpoint=\/usr\/local upool\/usr\/local<\/pre>\n<p>zfs list\u30b3\u30de\u30f3\u30c9\u3067\u3001\u78ba\u8a8d\u3057\u3066\u304a\u3044\u305f\u65b9\u304c\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0a\u306e\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u901a\u5e38\u901a\u308a\u3001\u30ea\u30d6\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001upool\/usr\/local\u304c\u3001\/usr\/local\u3068\u3057\u3066\u30de\u30a6\u30f3\u30c8\u3055\u308c\u3066\u3044\u308c\u3070\u3001\u5f15\u3063\u8d8a\u3057\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FreeBSD 9.1\u3092\u30d5\u30ebZFS\u3067\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002 FreeBSD\u3067Full ZFS\u30b7\u30b9\u30c6\u30e0\u4f5c\u6210\u306e\u5b9f\u9a13[\u8ffd\u8a18\u3042\u308a]: \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593 (2013\u5e744\u670829\u65e5) FreeBSD\u306b\u30b5\u30fc\u30d0\u7528\u30bd\u30d5\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u304f\u308a: \u30d7\u30e9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":10396,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u65b0\u3057\u3044\u8a18\u4e8b\u300eZFS\u3067\/usr\/local\u3092\u5f15\u3063\u8d8a\u3059\u300f\u3092\u6295\u7a3f\u3057\u307e\u3057\u305f\u3002\u8aad\u3093\u3067\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\u3002","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[59],"tags":[],"class_list":["post-10394","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nas"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/oichinote.com\/plus\/files\/2013\/12\/20131227freebsd-zfs.png","jetpack-related-posts":[{"id":7985,"url":"https:\/\/oichinote.com\/plus\/2013\/04\/install-freebsd-with-full-zfs.html","url_meta":{"origin":10394,"position":0},"title":"FreeBSD9\u3067Full ZFS\u30b7\u30b9\u30c6\u30e0\u4f5c\u6210\u306e\u5b9f\u9a13[\u8ffd\u8a18\u3042\u308a]","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2013\u5e744\u670829\u65e5","format":false,"excerpt":"FreeBSD\u52c9\u5f37\u30b7\u30ea\u30fc\u30ba\u306e\u4e00\u74b0\u3067\u3059\u3002 FreeBSD\u306e\u52c9\u5f37\u4e2d: \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593 (2012\u5e7411\u67083\u2026","rel":"","context":"NAS","block_context":{"text":"NAS","link":"https:\/\/oichinote.com\/plus\/category\/nas"},"img":{"alt_text":"\u30b7\u30b9\u30c6\u30e0\u7528\u30d7\u30fc\u30eb","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2013\/04\/20130428zfs_rpool.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":20256,"url":"https:\/\/oichinote.com\/plus\/2017\/06\/mooving-the-system-pool-to-another-disk.html","url_meta":{"origin":10394,"position":1},"title":"FreeBSD\u306eRoot on ZFS\u30b7\u30b9\u30c6\u30e0\u306e\u5225\u30c7\u30a3\u30b9\u30af\u3078\u306e\u79fb\u884c","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2017\u5e746\u670817\u65e5","format":false,"excerpt":"FreeBSD10\u306eRoot\u3067\u4f7f\u3063\u3066\u3044\u308b\u30d7\u30fc\u30eb(rpool)\u3092\u5225\u306e\u30c7\u30a3\u30b9\u30af\u306b\u30b3\u30d4\u30fc\u3057\u3001\u305d\u306e\u30c7\u30a3\u30b9\u30af\u304b\u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"Install\u958b\u59cb","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-1-install.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":20537,"url":"https:\/\/oichinote.com\/plus\/2017\/06\/install-freebsd11-with-hand-made-partition.html","url_meta":{"origin":10394,"position":2},"title":"\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092shell\u3067\u8a2d\u5b9a\u3057\u3066Root on ZFS\u306bFreeBSD11\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2017\u5e746\u670814\u65e5","format":false,"excerpt":"FreeBSD10\u306e\u5165\u3063\u305fZPOOL\u304b\u3089\u5225\u306e\u30c7\u30a3\u30b9\u30af\u306b\u30ea\u30b9\u30c8\u30a2\u3057\u3088\u3046\u3068\u3057\u307e\u3057\u305f\u304c\u3046\u307e\u304f\u3044\u304b\u305a\u3001Fre\u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"Install\u958b\u59cb","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2017\/06\/20170614freebsd-1-install.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":11371,"url":"https:\/\/oichinote.com\/plus\/2014\/04\/have-upgraded-freebsd-10-0-almost.html","url_meta":{"origin":10394,"position":3},"title":"FreeBSD 10.0\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3067\u304d\u305f\u3001\u304b\u306a?","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2014\u5e744\u67082\u65e5","format":false,"excerpt":"\u305a\u3063\u3068\u82e6\u3057\u3093\u3067\u3044\u305f\u3001FreeBSD 10.0\u3078\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u304c\u534a\u5206\u304f\u3089\u3044\u7d42\u308f\u308a\u307e\u3057\u305f\u3002 FreeB\u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":8922,"url":"https:\/\/oichinote.com\/plus\/2013\/08\/install-netatalk-3-0-4-on-freebsd-9-1.html","url_meta":{"origin":10394,"position":4},"title":"FreeBSD 9.1\u306bnetatalk 3.0.4\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb[\u8ffd\u8a18\u3042\u308a]","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2013\u5e748\u67088\u65e5","format":false,"excerpt":"FreeBSD 9.1\u3092\u642d\u8f09\u3057\u305f\u30b5\u30fc\u30d0\u3092\u7acb\u3066\u307e\u3057\u305f\u3002Full ZFS\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002\u307e\u3060\u4eee\u904b\u7528\u4e2d\u3067\u3001\u30e6\u2026","rel":"","context":"Mac","block_context":{"text":"Mac","link":"https:\/\/oichinote.com\/plus\/category\/mac"},"img":{"alt_text":"NAS\u6027\u80fd\u6bd4\u8f03","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2013\/08\/20130808nas-performance-comparison.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":11271,"url":"https:\/\/oichinote.com\/plus\/2014\/03\/rename-directory-from-exports-to-export.html","url_meta":{"origin":10394,"position":5},"title":"ZFS\u306e\u5fa9\u65e7\u3064\u3044\u3067\u306b\/exports\u304b\u3089\/export\u306b\u79fb\u52d5","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2014\u5e743\u670821\u65e5","format":false,"excerpt":"\u5f15\u304d\u7d9a\u3044\u3066\u3001FreeBSD\u6a5f\u306eZFS\u30c9\u30e9\u30a4\u30d6\u306e\u5fa9\u65e7\u3092\u3057\u3066\u3044\u307e\u3059\u3002\u306a\u304b\u306a\u304b\u9032\u307e\u306a\u3044\u3067\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/10394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/comments?post=10394"}],"version-history":[{"count":3,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/10394\/revisions"}],"predecessor-version":[{"id":10398,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/10394\/revisions\/10398"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media\/10396"}],"wp:attachment":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media?parent=10394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/categories?post=10394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/tags?post=10394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}