
Warning: Error while sending QUERY packet. PID=31460 in /home/uls/public_html/wordpress/wp-includes/class-wpdb.php on line 2357
{"id":63,"date":"2009-02-25T21:32:21","date_gmt":"2009-02-25T21:32:21","guid":{"rendered":"http:\/\/192.168.1.20\/wordpress\/freebsd\/2009\/02\/25\/freebsdraid1mirror\/"},"modified":"2015-01-25T02:21:00","modified_gmt":"2015-01-25T02:21:00","slug":"freebsdraid1mirror","status":"publish","type":"post","link":"http:\/\/uls.self.jp\/wordpress\/freebsd\/?p=63","title":{"rendered":"FreeBSD\u3067RAID1(mirror)\u306e\u8a2d\u5b9a"},"content":{"rendered":"<p>\u707d\u5bb3\u306f\u5fd8\u308c\u305f\u9803\u306b\u3084\u3063\u3066\u304f\u308b\u300224H\u904b\u8ee2\u306e\u30b5\u30fc\u30d0\u3092\u904b\u55b6\u3057\u3066\u3044\u308b\u3068\u3001\u4f55\u6642\u304b\u7a81\u7136\u306bHDD\u306e\u6545\u969c\u306b\u898b\u821e\u308f\u308c\u308b\u3002\u305d\u306e\u305f\u3081\u306b\u30012\u53f0\u306e\u30b5\u30fc\u30d0\u3067\u771f\u591c\u4e2d\u306b\u304a\u4e92\u3044\u306e\u30c7\u30fc\u30bf\u30fc\u9818\u57df\u3092Backup\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u304c\u3001\u6700\u60aa\u6545\u969c\u524d24\u6642\u9593\u306e\u30c7\u30fc\u30bf\u306f\u5931\u308f\u308c\u308b\u3057\u3001\u306a\u306b\u3088\u308a\u3082HDD\u3092\u4ea4\u63db\u3057\u3066\u3001\u518d\u5ea6\u30b5\u30fc\u30d0\u3092\u7acb\u3061\u4e0a\u3052\u76f4\u3059\u306e\u306f\u7c21\u5358\u306a\u4ed5\u4e8b\u3067\u306f\u306a\u3044\u3002\u512a\u306b\uff11\u65e5\u3050\u3089\u3044\u306f\u5fc5\u8981\u3067\u3042\u308b\u3002<br \/>\n\u305d\u3053\u3067\u3001HDD\u3092\u30df\u30e9\u30fc\u69cb\u6210\u306b\u3057\u3066\u7a81\u7136\u306e\u4e8b\u6545\u306b\u5099\u3048\u308b\u3053\u3068\u306b\u3057\u305f\u3002<br \/>\nFreeBSD\u3067\u306fgmirror\u3068\u3044\u3046\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30df\u30e9\u30fc\u304c\u5099\u308f\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u7528\u3044\u308b\u3002<br \/>\n\u307e\u305a\u3001\u7a7a\u3044\u3066\u3044\u308bPC\u3092\u7528\u3044\u3066\u30c8\u30e9\u30a4\u30a2\u30eb\u3059\u308b\u3053\u3068\u306b\u3057\u3001\u4ee5\u4e0b\u306f\u305d\u306e\u8a18\u9332\u3067\u3042\u308b\u3002<\/p>\n<h4>1. \u6e96\u5099<\/h4>\n<blockquote><p>FreeBSD release\u306e\u6700\u65b0\u7248\u3067\u3042\u308b7.1\u7248\u306e7.1-RELEASE-i386-disc1.iso\u30687.1-RELEASE-i386-livefs.iso\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u3069\u3061\u3089\u3082CDR\u3092\u4f5c\u6210\u3057\u3066\u304a\u304f\u3002<br \/>\n\u5b9f\u9a13\u7528\u306b\u7528\u610f\u3057\u305fPC\u306b\u306f2\u53f0\u306eHDD\u3092\u5165\u308c\u3001ad0(40GB)\u3068ad2(160GB)\u3068\u306a\u3063\u3066\u3044\u3066\u3001ad0\u306b\u306fFreeBSD-7.1\u3092\u666e\u901a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u3044\u305f\u3002\u306a\u304a\u3001DVD\u304cacd1\u306b\u5272\u308a\u4ed8\u3051\u3089\u308c\u3066\u3044\u308b\u3002<\/p><\/blockquote>\n<h4>2. gmirror\u306e\u8a2d\u5b9a<\/h4>\n<blockquote><p>\u666e\u901a\u306fLivefs CD\u3067\u8d77\u52d5\u3059\u308b\u304c\u3001\u30c6\u30b9\u30c8\u306b\u7528\u3044\u305fPC\u3067\u306f\u4f55\u6545\u304b\u8d77\u52d5\u3067\u304d\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30ebCD\u3067\u8d77\u52d5\u3057\u3066\u3001\u4ee5\u4e0b\u306b\u793a\u3059\u3088\u3046\u306b\u9032\u3081\u305f\u3002<br \/>\n\u306a\u304a\u3001Livefs CD\u3067\u8d77\u52d5\u51fa\u6765\u3066\u3082\u3001\u540c\u3058\u3088\u3046\u306b\u9032\u3093\u3067\u884c\u304d\u3001\u9014\u4e2d\u3067CD\u306e\u5165\u308c\u66ff\u3048\u304c\u4e0d\u8981\u306a\u3060\u3051\u3067\u3042\u308b\u3002<\/p><\/blockquote>\n<blockquote><p>(1) FreeBSD\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30c7\u30a3\u30b9\u30af\u3067\u8d77\u52d5\u3057\u3001\u56fd\u306e\u9078\u629e\u3067Japan\u3092\u9078\u3073\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u30b3\u30fc\u30c9\u306fJapanese 106\u3092\u9078\u3076\u3002\u3053\u3053\u3067\u82f1\u6587\u3067\u3082\u826f\u3044\u3068\u601d\u3063\u3066USA\u306e\u307e\u307e\u9032\u3081\u308b\u3068\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u304c\u65e5\u672c\u8a9e\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u3068\u304d\u3001\u8a18\u53f7\u306e\u914d\u7f6e\u304c\u9055\u3044\u82e6\u52b4\u3059\u308b\u3002<\/p><\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"mirror_01.jpg\" src=\"http:\/\/uls.self.jp\/bsdimg\/mirror_01.jpg\" width=\"512\" height=\"350\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" alt=\"mirror_02.jpg\" src=\"http:\/\/uls.self.jp\/bsdimg\/mirror_02.jpg\" width=\"512\" height=\"276\" \/><\/p>\n<blockquote><p>(2) \u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u9078\u3093\u3067\u73fe\u308c\u308b\u753b\u9762\u3067\u3001<br \/>\nFixit: Repair mode with CDROM\/DVD\/Floppy or start shell\u3092\u9078\u629e\u3059\u308b\u3002<\/p><\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"mirror_03.jpg\" src=\"http:\/\/uls.self.jp\/bsdimg\/mirror_03.jpg\" width=\"512\" height=\"275\" \/><\/p>\n<blockquote><p>(3) \u73fe\u308c\u305f\u753b\u9762\u3067\u3001<br \/>\nCDROM\/DVD\uff1aUse the &#8220;live&#8221; filesystem CDROM\/DVD \u3092\u9078\u3076\u3002<br \/>\nLivefs CD\u3092\u4f7f\u3063\u3066Boot\u3057\u3066\u3082\u3001\u3053\u3053\u307e\u3067\u306f\u540c\u3058\u3067\u3001\u3053\u308c\u4ee5\u964d\u306fCD\u306e\u5165\u308c\u66ff\u3048\u7121\u3057\u3067\u3001\u6b21\u306e3. \u8a2d\u5b9a\u306b\u9032\u3080\u3002<\/p><\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"mirror_04.jpg\" src=\"http:\/\/uls.self.jp\/bsdimg\/mirror_04.jpg\" width=\"512\" height=\"193\" \/><\/p>\n<blockquote><p>(4) Please insert a FreeBSD live filesystem CD\/DVD and press return \u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u3067\u305f\u3089\u3001CD\u3092FreBSD Live CD \u306b\u4ea4\u63db\u3057\u3066Return\u3092\u62bc\u3059\u3002<\/p><\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"mirror_05.jpg\" src=\"http:\/\/uls.self.jp\/bsdimg\/mirror_05.jpg\" width=\"512\" height=\"193\" \/><\/p>\n<h4>3. \u8a2d\u5b9a<\/h4>\n<blockquote><p># Fixit\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u3002<br \/>\nIDE\u3067\u306fad0, ad2\u306e\u3088\u3046\u306bprimary\u3068secoondary\u306eMaster\u63a5\u7d9a\u304c\u3088\u304f\u3001sata\u3067\u306fad4, ad6\u304c\u3088\u3044\u3002dmesg\u3067\u30c9\u30e9\u30a4\u30d6\u540d\u3092\u8abf\u3079\u3066\u304a\u304f\u3068\u3088\u3044\u3002<br \/>\n\u306a\u304a\u3001\u30df\u30e9\u30fc\u306e\u5f62\u5f0f\u306eround-robin\u306f\u8ca0\u8377\u5206\u6563\u306e\u65b9\u5f0f\u306e1\u3064\u3067\u3042\u308b\u3002\u4ed6\u306b\u3082\u5e7e\u3064\u304b\u306e\u7a2e\u985e\u304c\u3042\u308b\u304c\u3001round-robin\u304c\u6700\u3082\u30dd\u30d4\u30e5\u30e9\u30fc\u3089\u3057\u3044\u3002<\/p><\/blockquote>\n<pre>Fixit# chroot \/dist\nFixit# kldload geom_mirror\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000 <font color=\"#ff0000\">\u2190 gmirror\u306eload<\/font>\nFixit# exit\nFixit# gmirror label -b round-robin gm0 ad0\u3000<font color=\"#ff0000\">\u2190 round-robin\u3067mirror\u3092\u69cb\u6210<\/font><\/pre>\n<p>\u4e0b\u8a18\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n<pre>Metadata value stored ad0.\nDone.<\/pre>\n<p>Status\u3092\u8868\u793a\u3057\u3066\u307f\u308b\u3068\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308cmirror\u6a5f\u80fd\u304c\u51fa\u6765\u3066\u3044\u308b\u3002<\/p>\n<pre>Fixit# gmirror status\n\u3000Name         Status   Components\nmirror\/gm0  COMPLETE    ad0<\/pre>\n<p>\u51fa\u6765\u305f\u30df\u30e9\u30fc\u30c7\u30a3\u30b9\u30af\u3092\/mnt\u306b\u30de\u30a6\u30f3\u30c8\u3057\u3066fstab\u3092\u66f8\u304d\u63db\u3048\u308b\u3002<br \/>\nsed\u306e\u66ff\u308f\u308a\u306b\u3001ee\u3067\/mnt\/etc\/fstab\u3092\u7de8\u96c6\u3057\u3066\/dev\/ad4s1a \u2192 \/dev\/mirror\/gm0s1a\u306e\u3088\u3046\u306b\u5168\u3066\u306e\u3000ad4\u3092mirror\/gm0\u306b\u5909\u66f4\u3057\u3066\u3082\u826f\u3044\u3002\u306a\u304a\u3001vi\u306ftemporary file\u9818\u57df\u304c\u3044\u308b\u306e\u3067\u4f7f\u7528\u4e0d\u53ef\u3002<\/p>\n<pre>Fixit# mount \/dev\/mirror\/gm0s1a \/mnt\nFixit# sed -i bak s\/ad0\/mirror\\\/gm0\/ \/mnt\/etc\/fstab\/<\/pre>\n<p>geom_mirror\u306e\u8aad\u307f\u8fbc\u307f\u3092\/boot\/loader.conf\u306b\u8a2d\u5b9a\u3057\u3001\/etc\/rc.conf\u3082\u4fee\u6b63\u3002<br \/>\n\u3053\u308c\u306f\u3001ee\u3092\u4f7f\u3063\u305f\u65b9\u304c\u697d\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n<pre>echo 'geom_mirror_load=\"YES\"' &gt;&gt; \/mnt\/boot\/loader.conf\necho 'swapoff=\"YES\"' &gt;&gt; \/mnt\/etc\/rc.conf<\/pre>\n<p>CDR\u3092\u629c\u3044\u3066\u3001\u518d\u8d77\u52d5\u3059\u308b\u3002\u7acb\u3061\u4e0a\u304c\u3063\u305f\u3089root\u6a29\u9650\u3067ad2\u3092\u7d44\u307f\u8fbc\u3080\u3002<\/p>\n<pre># gmirror insert gmo ad2\u3000\u3000 <font color=\"#ff0000\">\u2190 ad2\u306e\u7d44\u307f\u8fbc\u307f<\/font><\/pre>\n<p>\u3053\u308c\u3067\u3001\u540c\u671f\u5316\u304c\u59cb\u307e\u308b\u3001status\u3092\u898b\u308b\u3068\u3001<\/p>\n<pre># gmirror status\n\u3000\u3000\u3000Name\u3000\u3000\u3000\u3000\u3000Status\u3000\u3000Components\n\u3000\u3000mirror\/gm0\u3000\u3000DEGRADED\u3000\u3000\u3000 ad0\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000 ad2(2%)<\/pre>\n<p>30\u5206\u307b\u3069\u3067ad2(100%)\u306b\u306a\u308a\u30df\u30e9\u30fc\u69cb\u6210\u306f\u5b8c\u4e86\u3057\u305f\u3002<\/p>\n<pre># gmirror status\nName          Status   Components\nmirror\/gm0     COMPLETE      ad0\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000ad2<\/pre>\n<h4>4. \u72b6\u614b\u306e\u76e3\u8996<\/h4>\n<blockquote><p>\u30df\u30e9\u30fc\u3067\u52d5\u4f5c\u3055\u305b\u3066\u3044\u308b\u3068\u30011\u53f0\u306eHDD\u304c\u6545\u969c\u3057\u3066\u3082\u30b5\u30fc\u30d0\u306e\u52d5\u4f5c\u306f\u7d9a\u884c\u3059\u308b\u304c\u30011\u53f0\u304c\u6545\u969c\u3057\u305f\u6642\u70b9\u3067\u5bfe\u51e6\u3057\u306a\u3044\u3068\u3001\u30df\u30e9\u30fc\u306b\u3057\u3066\u3044\u308b\u610f\u5473\u304c\u306a\u3044\u3002<br \/>\n\u3053\u306e\u305f\u3081\u306b\u3001\/etc\/defaults\/periodic.conf\u3092\u7de8\u96c6\u3057\u3066\u30df\u30e9\u30fc\u306e\u72b6\u614b\u3092\u6bce\u65e5\u30e1\u30fc\u30eb\u3067\u77e5\u3089\u305b\u3066\u3082\u3089\u3046\u3088\u3046\u306b\u3059\u308b\u3002<br \/>\n\/etc\/defaults\/periodic.conf\u3092\u307f\u308b\u3068\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306bDaily check\u9805\u76ee\u306e406\u756a\u304c&#8221;NO&#8221;\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/p><\/blockquote>\n<pre># 406.status-gmirror\ndaily_status_gmirror_enable=\"NO\"                # Check gmirror(8)<\/pre>\n<blockquote><p>&#8220;NO&#8221;\u3092\u201dYES&#8221;\u306b\u76f4\u3057\u3066\u3082\u826f\u3044\u306e\u3060\u304c\u3001\/etc\/defaults\/rc.conf\u306e\u5185\u5bb9\u306f\u66f8\u304d\u63db\u3048\u305a\u3001\/etc\/rc.conf\u3092\u4f5c\u6210\u3057\u3066\u6307\u5b9a\u3059\u308b\u306e\u3068\u540c\u69d8\u306b\/etc\/periodic.conf\u3092\u4f5c\u3063\u3066\u8a18\u8ff0\u3059\u308b\u3002\u3053\u306e\u8a18\u8ff0\u304c\u512a\u5148\u3055\u308c\u308b\u3002<\/p><\/blockquote>\n<pre># cd \/etc\n# vi periodic.conf\ndaily_status_gmirror_enable=\"YES\"\n: wq<\/pre>\n<blockquote><p>\u3053\u308c\u3067\u3001\u6bce\u65e5\u306edaily check\u30e1\u30fc\u30eb\u306bgmirror status\u306e\u60c5\u5831\u304c\u8f09\u308b\u3002<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u707d\u5bb3\u306f\u5fd8\u308c\u305f\u9803\u306b\u3084\u3063\u3066\u304f\u308b\u300224H\u904b\u8ee2\u306e\u30b5\u30fc\u30d0\u3092\u904b\u55b6\u3057\u3066\u3044\u308b\u3068\u3001\u4f55\u6642\u304b\u7a81\u7136\u306bHDD\u306e\u6545\u969c\u306b\u898b\u821e\u308f\u308c\u308b\u3002\u305d\u306e\u305f\u3081\u306b\u30012\u53f0\u306e\u30b5\u30fc\u30d0\u3067\u771f\u591c\u4e2d\u306b\u304a\u4e92\u3044\u306e\u30c7\u30fc\u30bf\u30fc\u9818\u57df\u3092Backup\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u304c\u3001\u6700\u60aa\u6545\u969c\u524d24\u6642\u9593\u306e\u30c7\u30fc\u30bf\u306f &hellip; <a href=\"http:\/\/uls.self.jp\/wordpress\/freebsd\/?p=63\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-63","post","type-post","status-publish","format-standard","hentry","category-freebsd","wpautop"],"_links":{"self":[{"href":"http:\/\/uls.self.jp\/wordpress\/freebsd\/index.php?rest_route=\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/uls.self.jp\/wordpress\/freebsd\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/uls.self.jp\/wordpress\/freebsd\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/uls.self.jp\/wordpress\/freebsd\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/uls.self.jp\/wordpress\/freebsd\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=63"}],"version-history":[{"count":3,"href":"http:\/\/uls.self.jp\/wordpress\/freebsd\/index.php?rest_route=\/wp\/v2\/posts\/63\/revisions"}],"predecessor-version":[{"id":305,"href":"http:\/\/uls.self.jp\/wordpress\/freebsd\/index.php?rest_route=\/wp\/v2\/posts\/63\/revisions\/305"}],"wp:attachment":[{"href":"http:\/\/uls.self.jp\/wordpress\/freebsd\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/uls.self.jp\/wordpress\/freebsd\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/uls.self.jp\/wordpress\/freebsd\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}