{"id":719,"date":"2011-11-02T17:03:35","date_gmt":"2011-11-02T08:03:35","guid":{"rendered":"http:\/\/unos.biz\/blog\/?p=719"},"modified":"2011-11-04T02:30:35","modified_gmt":"2011-11-03T17:30:35","slug":"openindiana%e3%81%a8freebsd%e3%81%aezfs%e4%ba%92%e6%8f%9b%e6%80%a7","status":"publish","type":"post","link":"http:\/\/unos.biz\/blog\/archives\/719","title":{"rendered":"openindiana\u3068FreeBSD\u306ezfs\u4e92\u63db\u6027"},"content":{"rendered":"<p>opensolaris\u304c\u3001\u3068\u3044\u3046\u3088\u308a\u306fsolaris\u304c\u5b88\u92ad\u5974\u69d8\u306b\u8cb7\u53ce\u3055\u308c\u3066\u4e45\u3057\u3044\u3002<\/p>\n<p>\u3046\u3061\u306f\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u306bopensolaris\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3060\u304c\u3001\u3053\u306e\u969bsolaris\u306e\u4e00\u756a\u5b89\u3044\u30e9\u30a4\u30bb\u30f3\u30b9\u304c\u73fe\u5b9f\u7684\u306a\u5024\u6bb5\u3067\u3042\u308c\u3070O\u793e\u3068\u5951\u7d04\u3057\u3088\u3046\u304b\u3068\u3082\u601d\u3063\u305f\u306e\u3060\u304c\u3001\u3060\u3044\u3076\u975e\u73fe\u5b9f\u7684\u306a\u4fa1\u683c\u3060\u3063\u305f\u3053\u3068\u3082\u3042\u3063\u3066\u5951\u7d04\u306b\u81f3\u3089\u305a\u3001\u304b\u3068\u3044\u3063\u3066opensolaris\u306f\u72b6\u6cc1\u304c\u72b6\u6cc1\u3067\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u79fb\u884c\u5148\u306b\u60a9\u3093\u3067\u3044\u305f\u3002<\/p>\n<p>\u79fb\u884c\u5148\u306f\u3044\u304f\u3064\u304b\u3042\u308b\u304c\u3001\u305d\u306e\u4e2d\u3067\u3082\u4e00\u756a\u624b\u9593\u7121\u304f\u3059\u3063\u3068\u79fb\u884c\u3067\u304d\u305d\u3046\u306a\u306e\u304copenindiana\u3002\u51fa\u305f\u5f53\u521d\u306f\u3061\u3087\u3063\u3068\u624b\u9593\u304c\u8981\u308a\u305d\u3046\u306a\u6c17\u914d\u3067\u306f\u3042\u3063\u305f\u304c\u4eca\u306f\u3060\u3044\u3076\u624b\u8efd\u306b\u4f7f\u3048\u308b\u6a21\u69d8\u3001VM\u4e0a\u3067\u8272\u3005\u30c6\u30b9\u30c8\u4e2d\u3060\u3002<\/p>\n<p>\u3068\u3053\u308d\u3067\u3046\u3061\u306f\u6614\u306f\u3088\u304fFreeBSD\u3092\u4f7f\u3063\u3066\u3044\u305f\u3002\u3057\u3070\u3089\u304f\u4f7f\u308f\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u305f\u304c\u3001zfs\u306eOS\u9593\u4e92\u63db\u304c\u3069\u308c\u304f\u3089\u3044\u52b9\u304f\u306e\u304b\u77e5\u308a\u305f\u304f\u3066\u3001FreeBSD9-RC1\u3092\u5165\u308c\u3066\u307f\u305f\u3002\u8a66\u3059\u306e\u306f\u3001zfs\u306e\u30a2\u30ec\u30a4\u3092\u76f8\u4e92\u306eOS\u9593\u3067\u5165\u308c\u66ff\u3048\u3066\u4f7f\u3048\u308b\u306e\u304b\u3001\u3060\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u307e\u305a\u74b0\u5883\u3002openindiana\u306b\u3064\u3044\u3066\u306f<a href=\"http:\/\/unos.biz\/blog\/archives\/690\" target=\"_blank\">\u5148\u65e5\u306e\u8a18\u4e8b<\/a>\u306e\u901a\u308a\u3002\u3042\u306e\u5f8c\u3001pkg image-update &#8211;be-name solaris-151\u3068\u3057\u3066\u3001openindiana 151a\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u305f\u304c\u305d\u306e\u7a0b\u5ea6\u306e\u9055\u3044\u3002\u3044\u305a\u308c\u3082\u3001zfs version5\u3068zfs pool version28\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n<p>FreeBSD\u306f\u30010.5GB\u306eSCSI\u30c7\u30a3\u30b9\u30af\u30923\u53f0\u8ffd\u52a0(\/dev\/da1, \/dev\/da2, \/dev\/da3)\u3057\u3066\u304b\u3089\u3001\u305d\u308c\u305e\u308c\u306bfdisk\u3067500MB\u306e\u30b9\u30e9\u30a4\u30b9(partition type=191(=0xbf, Solaris(new)))\u3092\u4f5c\u6210\u3057\u305f\u3002\u305d\u308c\u305e\u308c\/dev\/daNs1\u3068\u306a\u3063\u3066\u3044\u308b\u3002\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<pre>\r\nfreebsd# fdisk \/dev\/da1\r\n******* Working on device \/dev\/da1 *******\r\nparameters extracted from in-core disklabel are:\r\ncylinders=512 heads=64 sectors\/track=32 (2048 blks\/cyl)\r\n\r\nparameters to be used for BIOS calculations are:\r\ncylinders=512 heads=64 sectors\/track=32 (2048 blks\/cyl)\r\n\r\nMedia sector size is 512\r\nWarning: BIOS sector numbering starts with sector 1\r\nInformation from DOS bootblock is:\r\nThe data for partition 1 is:\r\nsysid 191 (0xbf),(Solaris x86 (new))\r\n    start 32, size 1023968 (499 Meg), flag 0\r\n\tbeg: cyl 0\/ head 1\/ sector 1;\r\n\tend: cyl 499\/ head 63\/ sector 32\r\nThe data for partition 2 is:\r\n&lt;UNUSED&gt;\r\nThe data for partition 3 is:\r\n&lt;UNUSED&gt;\r\nThe data for partition 4 is:\r\n&lt;UNUSED&gt;\r\n<\/pre>\n<p>\u3053\u308c\u3067\u3001<\/p>\n<pre>\r\nfreebsd# zpool create tank raidz1 \/dev\/da1s1 \/dev\/da2s1 \/dev\/da3s1\r\n<\/pre>\n<p>\u3057\u3066\u3084\u3063\u3066\u3001\u3053\u306e\u3088\u3046\u306bzpool\u3092\u4f5c\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u3002<\/p>\n<pre>\r\nfreebsd# zpool status tank\r\n  pool: tank\r\n state: ONLINE\r\n scan: scrub repaired 0 in 0h0m with 0 errors on Wed Nov  2 16:25:18 2011\r\nconfig:\r\n\r\n\tNAME        STATE     READ WRITE CKSUM\r\n\ttank        ONLINE       0     0     0\r\n\t  raidz1-0  ONLINE       0     0     0\r\n\t    da1s1   ONLINE       0     0     0\r\n\t    da2s1   ONLINE       0     0     0\r\n\t    da3s1   ONLINE       0     0     0\r\n\r\nerrors: No known data errors\r\n<\/pre>\n<p>\u3053\u3053\u304b\u3089\u304c\u672c\u756a\u3002\u3053\u308c\u3067FreeBSD\u5074\u3092\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3057\u3066(*)\u3001openindiana\u5074\u306e\u30c7\u30a3\u30b9\u30af\u3068\u3057\u3066\u3053\u308c\u30893\u672c\u306e\u30c7\u30a3\u30b9\u30af\u3092\u8ffd\u52a0\u3002openindiana\u5074\u3092\u8d77\u52d5\u3059\u308b\u3002\u3067\u304a\u3082\u3080\u308d\u306bimport\u3057\u3066\u307f\u308b\u3068\u3002<\/p>\n<pre>\r\nroot@solaris:~# zpool import\r\n  pool: tank\r\n    id: 7276812488085196296\r\n state: ONLINE\r\nstatus: The pool was last accessed by another system.\r\naction: The pool can be imported using its name or numeric identifier and\r\n        the '-f' flag.\r\n   see: http:\/\/www.sun.com\/msg\/ZFS-8000-EY\r\nconfig:\r\n\r\n        tank           ONLINE\r\n          raidz1-0     ONLINE\r\n            c2t8d0p1   ONLINE\r\n            c2t9d0p1   ONLINE\r\n            c2t10d0p1  ONLINE\r\n<\/pre>\n<p>\u4ed6\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u4f7f\u3063\u3066\u308b\u3088\u3063\u3066\u6012\u3089\u308c\u3066\u3057\u307e\u3046(export\u3092\u5fd8\u308c\u305f\u305f\u3081\u304b)\u304c\u3001\u6307\u793a\u306e\u901a\u308a\u540d\u524d\u3092\u6307\u5b9a\u3057\u3066import\u3057\u3066\u307f\u308b\u3068\u3001\u3059\u3067\u306btank\u3068\u3044\u3046\u540d\u524d\u306ezpool\u304c\u3042\u308b\u306e\u3067\u307e\u305f\u3082\u6012\u3089\u308c\u3066\u3057\u307e\u3046\u3002\u3067\u3001\u65b0\u3057\u3044\u540d\u524d\u3082\u6307\u5b9a\u3057\u3066\u3084\u308b\u3068\u3001\u3053\u3046\u306a\u308b\u3002<\/p>\n<pre>\r\nroot@solaris:~# zpool import -f tank tankbsd\r\nroot@solaris:~# zpool status\r\n  pool: rpool\r\n state: ONLINE\r\n  scan: none requested\r\nconfig:\r\n\r\n        NAME        STATE     READ WRITE CKSUM\r\n        rpool       ONLINE       0     0     0\r\n          c2t0d0s0  ONLINE       0     0     0\r\n\r\nerrors: No known data errors\r\n\r\n  pool: tank\r\n state: ONLINE\r\n  scan: resilvered 63K in 0h0m with 0 errors on Tue Jun 28 18:55:01 2011\r\nconfig:\r\n\r\n        NAME          STATE     READ WRITE CKSUM\r\n        tank          ONLINE       0     0     0\r\n          raidz1-0    ONLINE       0     0     0\r\n            c2t3d0s0  ONLINE       0     0     0\r\n            c2t4d0s0  ONLINE       0     0     0\r\n            c2t6d0s0  ONLINE       0     0     0\r\n\r\nerrors: No known data errors\r\n\r\n  pool: tankbsd\r\n state: ONLINE\r\n  scan: scrub repaired 0 in 0h0m with 0 errors on Wed Nov  2 16:25:18 2011\r\nconfig:\r\n\r\n        NAME           STATE     READ WRITE CKSUM\r\n        tankbsd        ONLINE       0     0     0\r\n          raidz1-0     ONLINE       0     0     0\r\n            c2t8d0p1   ONLINE       0     0     0\r\n            c2t9d0p1   ONLINE       0     0     0\r\n            c2t10d0p1  ONLINE       0     0     0\r\n\r\nerrors: No known data errors\r\n<\/pre>\n<p>\u3053\u306e\u901a\u308a\u3002\u4e2d\u306b\u3042\u3063\u305f\u30c7\u30fc\u30bf\u3082\u3068\u308a\u3042\u3048\u305a\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u306f\u554f\u984c\u306a\u304f\u6271\u3046\u3053\u3068\u304c\u51fa\u6765\u305f\u3002uid\/gid\u3082\u305d\u306e\u307e\u307e\u3001\u65e5\u4ed8\u6642\u523b\u3082\u540c\u3058\u3002\u3061\u306a\u307f\u306b\u3001\u3053\u306e\u72b6\u614b\u3067openindiana\u3092\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3057\u3066(*)\u3001FreeBSD\u5074\u3092\u8d77\u52d5(\u307e\u3060\u540c\u3058disk\u306f\u30de\u30a6\u30f3\u30c8\u3057\u3066\u3044\u308b)\u3059\u308b\u3068\u3001\u3053\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306e\u30de\u30a6\u30f3\u30c8\u306b\u5931\u6557\u3059\u308b\u3002\u3082\u3046\u4e00\u5ea6FreeBSD\u5074\u3067import\u3057\u3066\u3084\u308c\u3070\u8aad\u3080\u3053\u3068\u306f\u53ef\u80fd\u3060\u3002<\/p>\n<p>\u7d50\u8ad6\u3068\u3057\u3066\u306f\u3001\u3069\u3046\u3084\u3089\u3042\u307e\u308a\u51dd\u3063\u305f\u3053\u3068\u3092\u3057\u306a\u3051\u308c\u3070\u3001openindiana\u3068FreeBSD\u306e\u9593\u3067zpool\u3092\u79fb\u884c\u3059\u308b\u3053\u3068\u306f\u3055\u3057\u3066\u96e3\u3057\u304f\u306a\u3044\u3001\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308b\u3060\u308d\u3046\u3002\u53c2\u8003\u306b\u306a\u308c\u3070\u5e78\u3044\u3002<\/p>\n<p>&#8211;\u8ffd\u8a18(2011\/11\/04)<\/p>\n<p>\u3088\u304f\u898b\u305f\u3089\u3001\u30a4\u30f3\u30dd\u30fc\u30c8\u5f8c\u306bopenindiana\u5074\u3067\u898b\u305f\u7389\u306e\u30c7\u30a3\u30b9\u30af\u540d\u304cc2t8d0p1\u3068\u304b\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u306b\u6c17\u304c\u3064\u3044\u305f\u3002\u8ad6\u7406\u30c7\u30a3\u30b9\u30af\u540d\u306f<a href=\"http:\/\/download.oracle.com\/docs\/cd\/E19455-01\/806-2717\/6jbtqleep\/index.html\" taget=\"_blank\">\u3053\u3053<\/a>\u306b\u3042\u308b\u3088\u3046\u306b\u3001c[\u8ad6\u7406\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u756a\u53f7]t[\u8ad6\u7406\u30d0\u30b9\u30bf\u30fc\u30b2\u30c3\u30c8\u756a\u53f7]d[\u30c9\u30e9\u30a4\u30d6\u756a\u53f7]\u3068\u306a\u3063\u3066\u3001\u305d\u306e\u5f8c\u308d\u306bs[\u30b9\u30e9\u30a4\u30b9\u756a\u53f7]\u3082\u3057\u304f\u306fp[fdisk\u30d0\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u756a\u53f7]\u304c\u4ed8\u304f\u3002\u3046\u3063\u304b\u308a\u7656\u3067fdisk\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3(FreeBSD\u306efdisk\u3060\u3068\u30b9\u30e9\u30a4\u30b9\u3063\u3066\u66f8\u3044\u3066\u3042\u308b\u306e\u304c\u3084\u3084\u3053\u3057\u3044)\u3092\u5207\u3063\u305f\u306e\u304c\u539f\u56e0\u3060\u3063\u305f\u308f\u3051\u3067\u3001\u9069\u5f53\u306bopenindiana\u3067\u8a66\u3057\u305f\u3068\u304d\u306e\u3088\u3046\u306bs0\u306b\u306a\u308b\u3088\u3046\u306b\u5207\u308a\u305f\u3051\u308c\u3070\u3001use entire disk\u3057\u3066\u304a\u304d\u3064\u3064disklabel\u3067\u672b\u5c3e\u304ca\u306eFreeBSD\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3(\u3053\u308c\u304csolaris\u3060\u3068\u30b9\u30e9\u30a4\u30b9)\u3092\u4f5c\u3063\u3066\u304a\u3051\u3070\u3044\u3044\u3093\u3058\u3083\u306a\u304b\u308d\u3046\u304b\u3002\u305d\u3046\u306a\u308b\u3068da1s1a\u3068\u304b\u306b\u306a\u308b\u306f\u305a\u3002\u305d\u306e\u3046\u3061\u6687\u304c\u51fa\u6765\u3066\u5fc5\u8981\u306b\u306a\u3063\u305f\u3089\u691c\u8a3c\u3057\u3066\u307f\u3088\u3046\u3002<\/p>\n<p>(*)\u3069\u3063\u3061\u3082export\u3092\u5fd8\u308c\u305f\u3002\u3060\u304b\u3089\u3044\u3061\u3044\u3061import\u3067\u6012\u3089\u308c\u308b\u306e\u3060\u3068\u601d\u308f\u308c\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>opensolaris\u304c\u3001\u3068\u3044\u3046\u3088\u308a\u306fsolaris\u304c\u5b88\u92ad\u5974\u69d8\u306b\u8cb7\u53ce\u3055\u308c\u3066\u4e45\u3057\u3044\u3002 \u3046\u3061\u306f\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u306bopensolaris\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3060\u304c\u3001\u3053\u306e\u969bsolaris\u306e\u4e00\u756a\u5b89\u3044\u30e9\u30a4\u30bb\u30f3\u30b9\u304c\u73fe\u5b9f\u7684\u306a\u5024\u6bb5\u3067\u3042\u308c\u3070O\u793e\u3068\u5951\u7d04 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[35,36],"tags":[],"_links":{"self":[{"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/posts\/719"}],"collection":[{"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/comments?post=719"}],"version-history":[{"count":7,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/posts\/719\/revisions"}],"predecessor-version":[{"id":725,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/posts\/719\/revisions\/725"}],"wp:attachment":[{"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/media?parent=719"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/categories?post=719"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/tags?post=719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}