{"id":2152,"date":"2021-02-02T18:43:05","date_gmt":"2021-02-02T09:43:05","guid":{"rendered":"https:\/\/www.kinryo.net\/?p=2152"},"modified":"2022-02-20T16:34:06","modified_gmt":"2022-02-20T07:34:06","slug":"drbd%e3%81%ab%e6%8c%91%e6%88%a6-%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%929-0%e3%81%ab%e3%82%a2%e3%83%83%e3%83%97-%e3%81%9d%e3%81%ae3","status":"publish","type":"post","link":"https:\/\/www.kinryo.net\/?p=2152","title":{"rendered":"DRBD\u306b\u6311\u6226 ; \u30d0\u30fc\u30b8\u30e7\u30f3\u30929.0\u306b\u30a2\u30c3\u30d7 \u305d\u306e3"},"content":{"rendered":"\r\n<p>\u3044\u3088\u3044\u3088drbd\u3092\u524a\u9664\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/><span style=\"color: #ff6600;\"># <span style=\"color: #008000;\">rmmod drbd<\/span><\/span> \u2192 drbd.ko\u3092\u524a\u9664<br \/><span style=\"color: #ff6600;\"># <span style=\"color: #008000;\">lsmod |grep drbd<\/span><\/span> \u2192 \u524a\u9664\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3002\u4f55\u3082\u8868\u793a\u3055\u308c\u305a\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u51fa\u308c\u3070OK<br \/><span style=\"color: #ff6600;\"># <span style=\"color: #008000;\">yum remove kmod-drbd84<\/span><\/span> \u2192 \u79c1\u306e\u5834\u5408\u306f\u51c4\u304f\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u3002<br \/><span style=\"color: #ff6600;\"># <span style=\"color: #008000;\">yum remove drbd*<\/span><\/span><span style=\"color: #008000;\">\u00a0<\/span> \u2192 drbd84-utils \u3092\u524a\u9664<br \/><span style=\"color: #ff6600;\"># <span style=\"color: #008000;\">rpm -qa | grep drbd<\/span><\/span> \u2192 \u5ff5\u306e\u70ba\u3001drbd\u95a2\u9023\u304c\u7121\u3044\u304b\u78ba\u8a8d\u3002\u4f55\u3082\u8868\u793a\u304c\u306a\u3051\u308c\u3070OK<\/p>\r\n<p>\u305d\u3057\u3066\u3001drbd9.0\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/><span style=\"color: #ff6600;\"># <span style=\"color: #008000;\">yum install kmod-drbd90 drbd90-utils<\/span><\/span> \u2192 kmod\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u3002<br \/><span style=\"color: #ff6600;\"># <span style=\"color: #008000;\">modprobe drbd<\/span><\/span> \u2192 drbd\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/><span style=\"color: #ff6600;\"># <span style=\"color: #008000;\">cat \/proc\/drbd<\/span><\/span> \u2192 \u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8abf\u3079\u308b<br \/><span style=\"color: #ff6600;\">version: 9.0.22-2 (api:2\/proto:86-116)<\/span><br \/><span style=\"color: #ff6600;\">GIT-hash: 719792f2cc1360c65c848ffdb66090959e27fde5 build by akemi@Build64R7, 2020-09-29 17:13:49<\/span><br \/><span style=\"color: #ff6600;\">Transports (api:16):<\/span><\/p>\r\n<p>\u30e1\u30bf\u30c7\u30fc\u30bf\u30fc\u306e\u5909\u63db\u3002<span>DRBD 8\u3068DRBD 9\u3067\u306f\u5185\u90e8\u306e\u5f62\u5f0f\u304c\u7570\u306a\u308b\u305f\u3081\u3001drbdadm create-md\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001\u30e1\u30bf\u30c7\u30fc\u30bf\u3092\u5909\u63db\u3057\u307e\u3059\u3002<\/span><br \/><span style=\"color: #ff6600;\"># <span style=\"color: #008000;\">drbdadm create-md r0 <span style=\"color: #ff00ff;\">\uff08\u6ce8\uff1a\u30c7\u30fc\u30bf\u30fc\u306e\u3042\u308b\u30c7\u30a3\u30b9\u30af\u306b\u884c\u3063\u3066\u3082\u30c7\u30fc\u30bf\u306f\u6d88\u3048\u306a\u3044\uff09<\/span><\/span><\/span><br \/><span style=\"color: #ff6600;\">&#8211;== Thank you for participating in the global usage survey ==&#8211;<\/span><br \/><span style=\"color: #ff6600;\">The server&#8217;s response is:<\/span><\/p>\r\n<p><span style=\"color: #ff6600;\">you are the 31399th user to install this version<\/span><br \/><span style=\"color: #ff6600;\">You want me to create a v09 style flexible-size internal meta data block.<\/span><br \/><span style=\"color: #ff6600;\">There appears to be a v08 flexible-size internal meta data block<\/span><br \/><span style=\"color: #ff6600;\">already in place on \/dev\/vdd at byte offset 499826814976<\/span><\/p>\r\n<p><span style=\"color: #ff6600;\">Valid v08 meta-data found, convert to v09?<\/span><br \/><span style=\"color: #ff6600;\">[need to type &#8216;yes&#8217; to confirm] <span style=\"color: #008000;\">yes<\/span><\/span><\/p>\r\n<p><span style=\"color: #ff6600;\">md_offset 499826814976<\/span><br \/><span style=\"color: #ff6600;\">al_offset 499826782208<\/span><br \/><span style=\"color: #ff6600;\">bm_offset 499811528704<\/span><\/p>\r\n<p><span style=\"color: #ff6600;\">Found xfs filesystem<\/span><br \/><span style=\"color: #ff6600;\">488097196 kB data area apparently used<\/span><br \/><span style=\"color: #ff6600;\">488097196 kB left usable by current configuration<\/span><\/p>\r\n<p><span style=\"color: #ff6600;\">Even though it looks like this would place the new meta data into<\/span><br \/><span style=\"color: #ff6600;\">unused space, you still need to confirm, as this is only a guess.<\/span><\/p>\r\n<p><span style=\"color: #ff6600;\">Do you want to proceed?<\/span><br \/><span style=\"color: #ff6600;\">[need to type &#8216;yes&#8217; to confirm] <span style=\"color: #008000;\">yes<\/span><\/span><\/p>\r\n<p><span style=\"color: #ff6600;\">Writing meta data&#8230;<\/span><br \/><span style=\"color: #ff6600;\">New drbd meta data block successfully created.<\/span><br \/><span style=\"color: #ff6600;\">success<\/span><br \/>\u6700\u5f8c\u306b\u30b5\u30af\u30bb\u30b9\u3068\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u6210\u529f\u3057\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\r\n<p>\u30d7\u30e9\u30a4\u30de\u30ea\u30fc\u3068\u306e\u540c\u671f\u3092\u3092\u518d\u958b\u3002<br \/><span style=\"color: #ff6600;\">#<span style=\"color: #008000;\"> drbdadm up r0<\/span><\/span><br \/><span style=\"color: #ff6600;\"># <span style=\"color: #008000;\">drbdadm status<\/span><\/span><br \/><span style=\"color: #ff6600;\">r0 role:Secondary<\/span><br \/><span style=\"color: #ff6600;\">disk:UpToDate<\/span><br \/><span style=\"color: #ff6600;\">smb0.kinryo.net role:Primary<\/span><br \/><span style=\"color: #ff6600;\">peer-disk:UpToDate<br \/><span style=\"color: #333333;\">\u30bb\u30ab\u30f3\u30c0\u30ea\u30fc\u3068UpToDate\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u540c\u671f\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\u3061\u306a\u307f\u306b\u30018.4\u3067\u4f7f\u3063\u3066\u3044\u305f cat \/proc\/drbd\u3067\u306f\u3053\u306e\u60c5\u5831\u306f\u51fa\u3066\u304d\u307e\u305b\u3093\u3002<br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">crm_mon -1<\/span> \u2192 \u30ea\u30bd\u30fc\u30b9\u306e\u72b6\u614b\u3092\u8abf\u3079\u308b<br \/><\/span>Node smb1: standby<\/span><br \/><span style=\"color: #ff6600;\">Online: [ smb0 ]<\/span><br \/><span style=\"color: #ff6600;\">Active resources:<\/span><br \/><span style=\"color: #ff6600;\"> Resource Group: smbgroup<\/span><br \/><span style=\"color: #ff6600;\">vipcheck_res (ocf::myres:VIPcheck): Started smb0<\/span><br \/><span style=\"color: #ff6600;\">VirtualIP (ocf::heartbeat:IPaddr2): Started smb0<\/span><br \/><span style=\"color: #ff6600;\">FS_DRBD0 (ocf::heartbeat:Filesystem): Started smb0<\/span><br \/><span style=\"color: #ff6600;\">SAMBA (systemd:smb): Started smb0<\/span><br \/><span style=\"color: #ff6600;\">NAMED (systemd:nmb): Started smb0<\/span><br \/><span style=\"color: #ff6600;\">Master\/Slave Set: MS_DRBD0 [DRBD0]<\/span><br \/><span style=\"color: #ff6600;\">Masters: [ smb0 ]<br \/><span style=\"color: #333333;\">\u3042\u308c\u30b9\u30bf\u30f3\u30d0\u30a4\u306e\u307e\u307e\u3060<\/span><br \/># <span style=\"color: #008000;\">pcs cluster unstandby smb1<span style=\"color: #333333;\"> \u2192 smb1\u3092\u30aa\u30f3\u30e9\u30a4\u30f3\u306b\u3059\u308b<\/span><\/span><\/span><br \/><span style=\"color: #ff6600;\"># <span style=\"color: #008000;\">crm_mon -1<span style=\"color: #333333;\"> \u2192 \u518d\u3073\u78ba\u8a8d<\/span> <\/span><\/span><br \/><span style=\"color: #ff6600;\">Stack: corosync<\/span><br \/><span style=\"color: #ff6600;\">Current DC: smb0 (version 1.1.23-1.el7_9.1-9acf116022) &#8211; partition with quorum<\/span><br \/><span style=\"color: #ff6600;\">Last updated: Thu Feb 4 15:45:54 2021<\/span><br \/><span style=\"color: #ff6600;\">Last change: Thu Feb 4 15:45:45 2021 by root via cibadmin on smb1<\/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: [ smb0 smb1 ]<\/span><br \/><span style=\"color: #ff6600;\">Active resources:<\/span><br \/><span style=\"color: #ff6600;\">Resource Group: smbgroup<\/span><br \/><span style=\"color: #ff6600;\">vipcheck_res (ocf::myres:VIPcheck): Started smb0<\/span><br \/><span style=\"color: #ff6600;\">VirtualIP (ocf::heartbeat:IPaddr2): Started smb0<\/span><br \/><span style=\"color: #ff6600;\">FS_DRBD0 (ocf::heartbeat:Filesystem): Started smb0<\/span><br \/><span style=\"color: #ff6600;\">SAMBA (systemd:smb): Started smb0<\/span><br \/><span style=\"color: #ff6600;\">NAMED (systemd:nmb): Started smb0<\/span><br \/><span style=\"color: #ff6600;\">Master\/Slave Set: MS_DRBD0 [DRBD0]<\/span><br \/><span style=\"color: #ff6600;\">Masters: [ smb0 ]<\/span><br \/><span style=\"color: #ff6600;\">Slaves: [ smb1 ]<br \/><span style=\"color: #333333;\">\u3084\u3063\u3068\u3001\u4e21\u65b9\u5171\u30aa\u30f3\u30e9\u30a4\u30f3\u306b\u306a\u3063\u305f\u3002<br \/>\u3078\u30fc\u30fc\u30fc smb0\u304c8.4\u3067smb1\u304c9.0\u3067\u3082\u52d5\u304f\u3093\u3060\uff01\uff01<\/span><\/span><\/p>\r\n<p>\u3053\u308c\u3067smb1\u304c9.0\u306b\u306a\u3063\u305f\u306e\u3067\u3001smb0\u3092\u540c\u3058\u3088\u3046\u306b\u3084\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\r\n<p><span style=\"color: #ff0000;\">2022-2-18 \u8ffd\u8a18\uff1a<br \/><span style=\"color: #333333;\">\u3053\u306e\u307e\u307e\u3060\u3068drbdmanage\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u53c8\u3001elrepo\u306b\u3082\u7121\u3044\u3088\u3046\u3067\u3059\u3002\u305d\u3053\u3067drbdmanage\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3059\uff08\u53c2\u7167\uff1a<a href=\"https:\/\/qiita.com\/nagase\/items\/8316e02f16acf4567326\">https:\/\/qiita.com\/nagase\/items\/8316e02f16acf4567326<\/a>\uff09<br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">yum install rpmdevtools git libxslt pygobject2 help2man<br \/><span style=\"color: #ff6600;\">#<\/span> git clone https:\/\/github.com\/LINBIT\/drbdmanage.git<\/span><br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">cd drbdmanage<\/span><br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">sed -ie &#8216;s\/drbd-utils\/drbd90-utils\/g&#8217; setup.cfg<\/span><br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">make rpm<\/span><br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">ls dist<\/span><br \/><\/span><\/span><span style=\"color: #ff0000;\"><span style=\"color: #333333;\"><span style=\"color: #ff6600;\">drbdmanage-0.99.18-1.noarch.rpm drbdmanage-0.99.18.tar.gz drbdmanage-0.99.18-1.src.rpm<\/span><br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">yum localinstall dist\/drbdmanage-0.99.18-1.noarch.rpm <\/span><\/span><\/span><\/p>\r\n<p>\u3053\u308c\u3067\u3001drbdmanage\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u304c\u3001\u79c1\u306fdrbdmanage\u306e\u4f7f\u3044\u65b9\u304c\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u3057\u3001NODE\u30822\u3064\u3057\u304b\u306a\u3044\u306e\u30678.4\u306e\u307e\u307e\u306b\u3057\u3066\u3044\u308b\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>\u3044\u3088\u3044\u3088drbd\u3092\u524a\u9664\u3057\u3066\u3044\u304d\u307e\u3059\u3002# rmmod drbd \u2192 drbd.ko\u3092\u524a\u9664# lsmod |grep drbd \u2192 \u524a\u9664\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3002\u4f55\u3082\u8868\u793a\u3055\u308c\u305a\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u51fa\u308c\u3070OK# yum remove kmod &hellip; <a href=\"https:\/\/www.kinryo.net\/?p=2152\">\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,"vkexunit_cta_each_option":"","footnotes":""},"categories":[20],"tags":[],"class_list":["post-2152","post","type-post","status-publish","format-standard","hentry","category-drbdcentos7"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/2152","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=2152"}],"version-history":[{"count":13,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/2152\/revisions"}],"predecessor-version":[{"id":2792,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/2152\/revisions\/2792"}],"wp:attachment":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}