{"id":2656,"date":"2013-02-19T22:58:59","date_gmt":"2013-02-19T13:58:59","guid":{"rendered":"http:\/\/yasu2.prosou.nu\/blog\/index.php\/2013\/02\/19\/_howto_gmirror\/"},"modified":"2013-02-19T22:58:59","modified_gmt":"2013-02-19T13:58:59","slug":"_howto_gmirror","status":"publish","type":"post","link":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/2013\/02\/19\/2656\/","title":{"rendered":"\u30c7\u30a3\u30b9\u30af\u304c\u58ca\u308c\u305f\u3089 HOWTO (gmirror\u7de8)"},"content":{"rendered":"<p>\u30c7\u30a3\u30b9\u30af\u304c\u58ca\u308c\u305f\u3002<br \/>\n\u307e\u305f\u3001\u3060\u3002\u5bb6\u306e Aspire One \u306e\u30c7\u30a3\u30b9\u30af\u304c\u58ca\u308c\u3066\u304b\u3089\u30012\u9031\u9593\u3082\u7d4c\u3063\u3066\u306a\u3044\u306e\u306b\u3002<br \/>\n\u4eca\u5ea6\u306f\u7814\u7a76\u5ba4\u306e\u30b5\u30fc\u30d0\u3067\u3001ad4 \u3068 ad6 \u304c\u540c\u3058\u30b5\u30a4\u30ba\u306e\u30c7\u30a3\u30b9\u30af\u3067\u3001gmirror \u3067\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3054\u3068\u306b\u30df\u30e9\u30fc\u3055\u308c\u3066\u3044\u308b\u69cb\u6210\u3002\u540c\u3058\u30b5\u30a4\u30ba\u306e\u30c7\u30a3\u30b9\u30af\u306f\u7814\u7a76\u5ba4\u306e\u3042\u3061\u3053\u3061\u3067\u4f7f\u3063\u3066\u308b\u306e\u3067\u3001\u65b0\u54c1\u3082\u4f7f\u3044\u304b\u3051\u3082\u542b\u3081\u3066\u4e88\u5099\u3082\u3044\u3063\u3071\u3044\u3042\u308b\u306e\u3067\u3001\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3057\u3066\u4ea4\u63db\u3059\u308c\u3070\u3088\u3044\u3002<br \/>\n\u306a\u305c\u6c17\u3065\u3044\u305f\u304b\u3068\u3044\u3046\u3068\u3001\u7279\u306b\u306a\u306b\u304b\u91cd\u305f\u3044\u30d7\u30ed\u30bb\u30b9\u304c\u8d70\u3063\u3066\u3044\u308b\u308f\u3051\u3067\u3082\u306a\u3044\u306e\u306b\u305a\u3063\u3068 load average \u304c 1.0 \u524d\u5f8c\u3067\u3001CPU \u4f7f\u7528\u7387\u3082\u3001user \u304c 0% \u306a\u306e\u306b system \u304c 50% \u306b\u306a\u3063\u3066\u3044\u305f\u308a\u3068\u304b\u3001\u306a\u3093\u3067\u304b\u306a\u30fc\u3001\u3068\u601d\u3063\u3066\u3044\u305f\u3002\u3067\u3001\u8a66\u3057\u306b\u518d\u8d77\u52d5\u3057\u3066\u307f\u305f\u3089\u3001\u3044\u3064\u307e\u3067\u305f\u3063\u3066\u3082\u8d77\u52d5\u3057\u306a\u3044\u306e\u3067\u3001\u30b7\u30ea\u30a2\u30eb\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u306e\u305e\u3044\u3066\u307f\u305f\u3089\u3001BIOS \u304c &#8220;SATA port A \u306b\u30c7\u30a3\u30b9\u30af\u304c\u3064\u306a\u304c\u3063\u3066\u306a\u3044\u3088\u30fc&#8221; \u3068\u3002\u8a8d\u8b58\u3059\u3089\u3055\u308c\u3066\u306a\u3044\u306e\u3067\u3001\u304a\u305d\u3089\u304f\u57fa\u677f\u3054\u3068\u30c7\u30a3\u30b9\u30af\u304c\u58ca\u308c\u307e\u3057\u305f (\u53d6\u308a\u5916\u3059\u3060\u3051\u5916\u3057\u3066\u3001\u307e\u3060\u78ba\u8a8d\u3057\u3066\u306a\u3044)\u3002<br \/>\n\u751f\u304d\u3066\u3044\u308b\u307b\u3046\u306e\u30c7\u30a3\u30b9\u30af\u304b\u3089\u8d77\u52d5\u3057\u305f\u3068\u3053\u308d\u3061\u3083\u3093\u3068\u8d77\u52d5\u3057\u305f\u3002Filesystem \u3082 clean \u3067\u3042\u308b\u3002gmirror \u3067\u52d5\u3044\u3066\u308b\u306e\u3060\u304b\u3089\u5f53\u7136\u3068\u3044\u3048\u3070\u5f53\u7136\u306a\u3093\u3060\u3051\u3069\u3001\u3059\u3054\u3044\u306a\u3002gmirror status \u3059\u308b\u3068\u3001\u5168\u90e8 degraded \u306b\u306a\u3063\u3066\u3044\u308b\u3002\u3053\u308c\u3082\u5f53\u7136\u3002<br \/>\n\u305d\u308c\u3067\u3001\u65b0\u3057\u3044\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u3092\u5165\u308c\u3066\u3001\u30df\u30e9\u30fc\u3092\u5fa9\u6d3b\u3055\u305b\u308b\u307e\u3067\u306e\u4f5c\u696d\u304c\u4ee5\u4e0b\u306e\u901a\u308a\u3002ad4 \u304c\u6b63\u5e38\u306b\u8d77\u52d5\u3057\u3066\u3044\u308b\u30c7\u30a3\u30b9\u30af\u3001ad6 \u304c\u65b0\u3057\u3044\u30c7\u30a3\u30b9\u30af\u3001gm0 \u304c\u30df\u30e9\u30fc\u3002<br \/>\n\u307e\u305a fdisk -p \u3067\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3 (\u30b9\u30e9\u30a4\u30b9) \u60c5\u5831\u304c\u51fa\u308b\u306e\u3092\u78ba\u8a8d\u3002<br \/>\nroot# fdisk -p \/dev\/ad4<br \/>\n# \/dev\/ad4<br \/>\ng c969021 h16 s63<br \/>\np 1 0xa5 63 976773105<br \/>\na 1<br \/>\n\u3053\u308c\u3092\u30d5\u30a1\u30a4\u30eb (\/tmp\/config\u306b\u3057\u305f) \u306b\u843d\u3068\u3057\u3066\u3001fdisk -f \u3067\u65b0\u3057\u3044\u30c7\u30a3\u30b9\u30af\u306b\u66f8\u304d\u8fbc\u3081\u3070 OK.<br \/>\nroot# fdisk -p \/dev\/ad4 > \/tmp\/config<br \/>\nroot# fdisk -f \/tmp\/config \/dev\/ad6<br \/>\n******* Working on device \/dev\/ad6 *******<br \/>\nfdisk: WARNING line 2: number of cylinders (969021) may be out-of-range<br \/>\n(must be within 1-1024 for normal BIOS operation, unless the entire disk<br \/>\nis dedicated to FreeBSD)<br \/>\n\u3053\u308c\u3067\u3061\u3083\u3093\u3068 \/dev\/ad6s1 \u304c\u3067\u304d\u308b\u306f\u305a\u3002\u6b21\u306f disklabel \u3067\u540c\u3058\u3053\u3068\u3092\u3057\u3066\u3001BSD \u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u4f5c\u308b\u3002\u307e\u305a\u306f\u78ba\u8a8d\u304b\u3089\u3002<br \/>\n# disklabel \/dev\/ad4s1<br \/>\n# \/dev\/ad4s1:<br \/>\n8 partitions:<br \/>\n# size offset fstype [fsize bsize bps\/cpg]<br \/>\na: 4194304 0 4.2BSD 0 0 0<br \/>\nb: 16777216 4194304 swap<br \/>\nc: 976773105 0 unused 0 0 # &#8220;raw&#8221; part, don&#8217;t edit<br \/>\nd: 16777216 20971520 4.2BSD 0 0 0<br \/>\ne: 8388608 37748736 4.2BSD 0 0 0<br \/>\nf: 268435456 46137344 4.2BSD 0 0 0<br \/>\ng: 662200305 314572800 4.2BSD 0 0 0<br \/>\ndisklabel: partition c doesn&#8217;t cover the whole unit!<br \/>\ndisklabel: An incorrect partition c may cause problems for standard system utilities<br \/>\n\u540c\u69d8\u306b\u30d5\u30a1\u30a4\u30eb\u306b\u843d\u3068\u3057\u3066\u3001\u4eca\u5ea6\u306f disklabel -R \u3067\u66f8\u304d\u3053\u307f\u3002<br \/>\nroot# disklabel \/dev\/ad4s1 > \/tmp\/config<br \/>\ndisklabel: partition c doesn&#8217;t cover the whole unit!<br \/>\ndisklabel: An incorrect partition c may cause problems for standard system utilities<br \/>\nroot# disklabel -R \/dev\/ad6s1 \/tmp\/config<br \/>\n\u3053\u308c\u3067\u3001\/dev\/ad6s1a \u3068\u304b\u304c\u898b\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u3002<br \/>\n\u3053\u3053\u307e\u3067\u306f\u9806\u8abf\u3060\u3063\u305f\u304c\u3001\u65b0\u3057\u3044\u30c7\u30a3\u30b9\u30af\u3092 mirror \u306b\u53c2\u52a0\u3055\u305b\u308b\u3068\u3053\u308d\u3067\u306f\u307e\u3063\u305f\u3002\u666e\u901a\u3001\u65b0\u3057\u3044\u30c7\u30a3\u30b9\u30af\u3092 mirror \u306e\u30e1\u30f3\u30d0\u306b\u3059\u308b\u306b\u306f\u3001<br \/>\nroot# gmirror insert gm0s1a \/dev\/ad6s1a<br \/>\n\u306e\u3088\u3046\u306b\u3059\u308c\u3070\u3088\u3044\u306e\u3060\u304c\u3001\u3053\u3046\u3059\u308b\u3068 &#8220;not all disks connected&#8221; \u3068\u306a\u308b\u3002\u3064\u307e\u308a\u3001gmirror \u7684\u306b\u306f\u6614\u306e\u30e1\u30f3\u30d0\u306e\u4e00\u89a7\u3068\u9055\u3046\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u308b (degraded) \u304b\u3089\u306a\u306e\u3060\u3002\u3053\u308c\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f\u3001<br \/>\nroot# gmirror forget gm0s1a<br \/>\n\u3068\u3059\u308b\u3002\u305d\u3046\u3059\u308b\u3068\u3001\u58ca\u308c\u3061\u3083\u3063\u305f\u307b\u3046\u306e\u30c7\u30a3\u30b9\u30af\u4e0a\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306e\u3053\u3068\u306f\u5fd8\u308c\u53bb\u3089\u308c\u308b\u306e\u3067\u3001gmirror status \u3067\u307f\u305f\u3068\u304d\u306e\u72b6\u614b\u306f complete \u306b\u5909\u308f\u308b\u3002\u305d\u3053\u3067 gmirror insert \u3059\u308c\u3070 OK.<br \/>\n\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u3059\u3079\u3066\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092 mirror \u3057\u3066\u3001\u7d42\u4e86\u3002<br \/>\nswap \u306f\u30df\u30e9\u30fc\u3057\u3066\u306a\u304b\u3063\u305f\u3093\u3060\u3051\u3069\u3001\u30e1\u30e2\u30ea\u304c\u591a\u304b\u3063\u305f\u304b\u3089\u52a9\u304b\u3063\u305f\u306e\u304b\u3057\u3089\u3093\u3002<br \/>\n\u3042\u3068\u3001\u7247\u65b9\u306e\u30c7\u30a3\u30b9\u30af\u304c\u58ca\u308c\u305f\u3089\u4f55\u304b\u901a\u77e5\u304c\u304f\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u306a&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30c7\u30a3\u30b9\u30af\u304c\u58ca\u308c\u305f\u3002 \u307e\u305f\u3001\u3060\u3002\u5bb6\u306e Aspire One \u306e\u30c7\u30a3\u30b9\u30af\u304c\u58ca\u308c\u3066\u304b\u3089\u30012\u9031\u9593\u3082\u7d4c\u3063\u3066\u306a\u3044\u306e\u306b\u3002 \u4eca\u5ea6\u306f\u7814\u7a76\u5ba4\u306e\u30b5\u30fc\u30d0\u3067\u3001ad4 \u3068 ad6 \u304c\u540c\u3058\u30b5\u30a4\u30ba\u306e\u30c7\u30a3\u30b9\u30af\u3067\u3001gmirror \u3067\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3054\u3068\u306b\u30df\u30e9 &hellip; <a href=\"https:\/\/yasu2.prosou.nu\/blog\/index.php\/2013\/02\/19\/2656\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u30c7\u30a3\u30b9\u30af\u304c\u58ca\u308c\u305f\u3089 HOWTO (gmirror\u7de8)&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-2656","post","type-post","status-publish","format-standard","hentry","category-unix-"],"_links":{"self":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=2656"}],"version-history":[{"count":0,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2656\/revisions"}],"wp:attachment":[{"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=2656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=2656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yasu2.prosou.nu\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=2656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}