{"id":2500,"date":"2021-08-11T15:33:47","date_gmt":"2021-08-11T06:33:47","guid":{"rendered":"https:\/\/www.kinryo.net\/?p=2500"},"modified":"2021-08-11T15:41:44","modified_gmt":"2021-08-11T06:41:44","slug":"standalone-%e3%81%8b%e3%82%89-connected-%e3%81%ab%e3%81%aa%e3%82%89%e3%81%aa%e3%81%84%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.kinryo.net\/?p=2500","title":{"rendered":"DRBD\u3067 standalone \u304b\u3089 connected \u306b\u306a\u3089\u306a\u3044\u3002"},"content":{"rendered":"\r\n<p class=\"wp-block-paragraph\">DRBD\u3067\u52d5\u3044\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u306e1\u53f0(secondary)\u304c\u983b\u7e41\u306bdiskless \u306b\u306a\u308b\u3002\u30c7\u30a3\u30b9\u30af\u306fSSD\u3092\u4f7f\u7528\u3057\u3066\u3044\u3066\u3001\u30a8\u30e9\u30fc\u306e\u5185\u5bb9\u306f<br \/><span style=\"color: #0000ff;\">Device: \/dev\/sdc [SAT], 157 Offline uncorrectable sectors<\/span> <br \/><span style=\"color: #0000ff;\">Device: \/dev\/sdc [SAT], 11 Currently unreadable (pending) sectors<\/span><br \/>\u30682\u901a\u306e\u30e1\u30fc\u30eb\u304c\u6765\u308b\u3002Currently unreadable (pending) sectors \u306f\u4fee\u6b63\u53ef\u80fd\u306a\u30a8\u30e9\u30fc\u3060\u304c\u3001\u3053\u306eSSD(<span id=\"productTitle\" class=\"a-size-large product-title-word-break\">\u30b7\u30ea\u30b3\u30f3\u30d1\u30ef\u30fc SSD 512GB)<\/span>\u7d4c\u9a13\u4e0a\u3042\u307e\u308a\u826f\u304f\u306a\u3044\u306e\u3067\u3001\u65b0\u3057\u3044SSD\u306b\u4ea4\u63db\u3059\u308b\u4e8b\u306b\u3057\u305f\u3002\u73fe\u5728\u306fds:UpToDate\/UpToDate \u3060\u304c\u3001\u5ff5\u306e\u70ba\u30c7\u30a3\u30b9\u30af\u3092\u5916\u3059\u3002<br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">drbddm detach r0<\/span> (r0\u306f\u30ea\u30bd\u30fc\u30b9\uff09<br \/>\u305d\u306e\u5f8c\u3001\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3002\u65b0\u3057\u3044SSD\u306b\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u5207\u3063\u3066\u3001\u5143\u306e\u30c7\u30a3\u30b9\u30af\u3068\u540c\u3058vdc1\u306b\u3057\u3066\u3001\u30b5\u30d6\u30db\u30b9\u30c8\u3092\u8d77\u52d5\u3002\uff08KVM\u3092\u4f7f\u7528\u3057\u305f\u30b5\u30d6\u30db\u30b9\u30c8\u3068\u3057\u3066\u52d5\u3044\u3066\u3044\u308b\uff09<\/p>\r\n<p>\u3042\u308c\u30fc\uff01\uff01\uff01\u30b3\u30d4\u30fc\u304c\u59cb\u307e\u3089\u306a\u3044\u305e\u30fc\uff01<br \/>\u8abf\u3079\u305f\u3089\u3001\u30b3\u30ec\u3067\u59cb\u307e\u308b\u306f\u305a\u3060\u304c\uff1f \u65e9\u901f\u8abf\u3079\u308b\u3002<br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">pcs status<\/span><br \/><span style=\"color: #ff6600;\">2 nodes configured<\/span><br \/><span style=\"color: #ff6600;\">7 resource instances configured<\/span><br \/><span style=\"color: #ff6600;\">Online: [ smb3 smb4 ]<\/span><br \/><span style=\"color: #ff6600;\">Full list of resources:<\/span><br \/><span style=\"color: #ff6600;\">Resource Group: smbgroup<\/span><br \/><span style=\"color: #ff6600;\">vipcheck_res (ocf::myres:VIPcheck): Started smb3<\/span><br \/><span style=\"color: #ff6600;\">VirtualIP (ocf::heartbeat:IPaddr2): Started smb3<\/span><br \/><span style=\"color: #ff6600;\">FS_DRBD0 (ocf::heartbeat:Filesystem): Started smb3<\/span><br \/><span style=\"color: #ff6600;\">SAMBA (systemd:smb): Started smb3<\/span><br \/><span style=\"color: #ff6600;\">NAMED (systemd:nmb): Started smb3<\/span><br \/><span style=\"color: #ff6600;\">Master\/Slave Set: MS_DRBD0 [DRBD0]<\/span><br \/><span style=\"color: #ff6600;\">Masters: [ smb3 ]<\/span><br \/><span style=\"color: #ff6600;\">Slaves: [ smb4 ]<\/span><br \/><span style=\"color: #ff6600;\">Daemon Status:<\/span><br \/><span style=\"color: #ff6600;\">corosync: active\/enabled<\/span><br \/><span style=\"color: #ff6600;\">pacemaker: active\/enabled<\/span><br \/><span style=\"color: #ff6600;\">pcsd: active\/enabled<\/span><br \/>\u306b\u306a\u3063\u3066\u304a\u308a\u3001\u7279\u306b\u30a8\u30e9\u30fc\u306f\u51fa\u3066\u3044\u306a\u3044\u3002<br \/><span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> cat \/proc\/drbd<\/span><br \/><span style=\"color: #ff6600;\">0: cs: WFConnection ro:Secondary\/Unknown ds:Inconsistent<span class=\"typ\"><\/span>\/DUnknown<\/span><br \/>\u3067\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30fc\u5074\u306f<br \/><span style=\"color: #ff6600;\">0: cs:StandAlone ro:Primary\/Unknown ds:UpToDate\/DUnknown<\/span><br \/>\u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30fc\u5074\u3067<br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">drbdadm connect r0<\/span><br \/>\u30a8\u30e9\u30fc\u306f\u7121\u304f\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u623b\u308b\u3051\u3069<br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">cat \/proc\/drbd<\/span><br \/>\u3067\u898b\u3066\u3082<br \/><span style=\"color: #ff6600;\">0: cs:StandAlone ro:Primary\/Unknown ds:UpToDate\/DUnknown<\/span><br \/>\u3068\u306a\u3063\u3066\u304a\u308a\u3001\u672c\u6765\u306a\u3089 cs:SyncSource \u306b\u306a\u308b\u7b48\u3060\u304c StandAlone \u306e\u307e\u307e\u3060\uff01<br \/>\u3053\u308c\u306b\u306f\u6570\u6642\u9593\u3092\u8cbb\u3084\u3057\u305f\u304c\u539f\u56e0\u304c\u5206\u304b\u3089\u306a\u3044\u3002<br \/><span style=\"color: #333333;\">\u3084\u3063\u3068LOG\u3092\u898b\u3066\u307f\u3088\u3046\u3068\u6c17\u304c\u4ed8\u3044\u305f\u3002\u305d\u306e\u30ed\u30b0(\/var\/log\/messages)\u304c<\/span><br \/><span style=\"color: #0000ff;\">Aug 11 12:46:04 smb3 kernel: drbd r0: conn( WFConnection -&gt; WFReportParams ) <\/span><br \/><span style=\"color: #0000ff;\">Aug 11 12:46:04 smb3 kernel: drbd r0: Starting ack_recv thread (from drbd_r_r0 [23143])<\/span><br \/><span style=\"color: #0000ff;\">Aug 11 12:46:04 smb3 kernel: block drbd0: <strong><span style=\"color: #ff0000;\">The peer&#8217;s disk size is too small! (999958656 &lt; 1000171640 sectors)<\/span><\/strong><\/span><br \/><span style=\"color: #0000ff;\">Aug 11 12:46:04 smb3 kernel: drbd r0: conn( WFReportParams -&gt; Disconnecting ) <\/span><br \/><span style=\"color: #0000ff;\">Aug 11 12:46:04 smb3 kernel: drbd r0: error receiving ReportSizes, e: -5 l: 0!<\/span><br \/><span style=\"color: #0000ff;\">Aug 11 12:46:04 smb3 kernel: drbd r0: ack_receiver terminated<\/span><br \/><span style=\"color: #0000ff;\">Aug 11 12:46:04 smb3 kernel: drbd r0: Terminating drbd_a_r0<\/span><br \/><span style=\"color: #0000ff;\">Aug 11 12:46:04 smb3 kernel: drbd r0: Connection closed<\/span><br \/><span style=\"color: #0000ff;\">Aug 11 12:46:04 smb3 kernel: drbd r0: conn( Disconnecting -&gt; StandAlone ) <\/span><br \/><span style=\"color: #0000ff;\">Aug 11 12:46:04 smb3 kernel: drbd r0: receiver terminated<\/span><br \/><span style=\"color: #0000ff;\">Aug 11 12:46:04 smb3 kernel: drbd r0: Terminating drbd_r_r0<br \/><span style=\"color: #333333;\">\u5bfe\u5411\u306e\u30c7\u30a3\u30b9\u30af\u30b5\u30a4\u30ba\u304c\u5c0f\u3055\u904e\u304e\u308b\u3060\u3068\u3001<br \/>primary(smb3)\u306e\u30b5\u30a4\u30ba\u306f 476.93GiB<br \/><\/span><\/span>secondary(smb4)\u306e\u30b5\u30a4\u30ba\u306f 476.83GiB \u3068\u306a\u3063\u3066\u304a\u308a\u3001\u307b\u3093\u306e\u308f\u305a\u304b\u306b\u5c0f\u3055\u3044\u3002<br \/>\u3053\u308c\u304c\u539f\u56e0\u3067\u30b3\u30d4\u30fc\u304c\u59cb\u307e\u3089\u306a\u304b\u3063\u305f\uff01\uff01<br \/>\u306a\u306e\u3067\u3001smb4\u306e\u30c7\u30a3\u30b9\u30af\u3092\u4f5c\u308a\u76f4\u3057\u3066\uff08\u524d\u306fGB\u3067\u4f5c\u3063\u305f\u304c\u3001\u4eca\u5ea6\u306fGiB \u3067\u6307\u5b9a\u3057\u3066\u4f5c\u6210\uff09\u305d\u306e\u5f8c\u30db\u30b9\u30c8\u3092\u30aa\u30f3\u30e9\u30a4\u30f3\u306b\u3059\u308b\u3068\u81ea\u52d5\u7684\u306b\u30b3\u30d4\u30fc\uff08\u30b7\u30f3\u30af\u30ed\u30ca\u30a4\u30ba\uff09\u304c\u59cb\u307e\u3063\u305f\u3002\u3064\u307e\u308a\u30e1\u30bf\u30c7\u30fc\u30bf\u30fc\u3055\u3048\u3082\u4f5c\u308b\u5fc5\u8981\u306f\u7121\u3044\u306e\u3060\u3002<br \/>\u305f\u3060\u3001\u59cb\u307e\u308a\u306e\u6642\u9593\u3092\u5fd8\u308c\u305f\u306e\u3067\u61b6\u6e2c\u3060\u304c\u30013\u6642\u9593\u534a\u306764.9\uff05\u3068\u51fa\u3066\u3044\u308b\u306e\u3067\u3001\u5f8c\u3001\u6570\u6642\u9593\u306f\u304b\u304b\u308a\u305d\u3046\u3060\uff01\uff01<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>DRBD\u3067\u52d5\u3044\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u306e1\u53f0(secondary)\u304c\u983b\u7e41\u306bdiskless \u306b\u306a\u308b\u3002\u30c7\u30a3\u30b9\u30af\u306fSSD\u3092\u4f7f\u7528\u3057\u3066\u3044\u3066\u3001\u30a8\u30e9\u30fc\u306e\u5185\u5bb9\u306fDevice: \/dev\/sdc [SAT], 157 Offline un &hellip; <a href=\"https:\/\/www.kinryo.net\/?p=2500\">\u7d9a\u304d\u3092\u8aad\u3080 <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":{"_acf_changed":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[20],"tags":[],"class_list":["post-2500","post","type-post","status-publish","format-standard","hentry","category-drbdcentos7"],"acf":[],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/2500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2500"}],"version-history":[{"count":8,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/2500\/revisions"}],"predecessor-version":[{"id":2509,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/2500\/revisions\/2509"}],"wp:attachment":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}