{"id":172254,"date":"2020-10-25T16:57:46","date_gmt":"2020-10-25T08:57:46","guid":{"rendered":"http:\/\/4563.org\/?p=172254"},"modified":"2020-10-25T16:57:46","modified_gmt":"2020-10-25T08:57:46","slug":"sql-2019-on-linux-alwayson-pcs-status-%e6%8a%a5%e9%94%99","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=172254","title":{"rendered":"sql 2019 on Linux alwayson pcs status \u62a5\u9519"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  sql 2019 on Linux alwayson pcs status \u62a5\u9519               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : pangshare <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5404\u4f4d\u5927\u5e08\uff0c\u8bf7\u6559\u4e2a\u95ee\u9898\u3002 \u76ee\u524d\u73af\u5883\u63cf\u8ff0\u5982\u4e0b\uff1a 3 \u53f0 Centos7 \u6784\u5efa\u7684\u4e09\u8282\u70b9 SQL 2019 1 \u53f0 windows DNS server \u7528\u505a DNS \u89e3\u6790<\/p>\n<p>\u76ee\u524d\u9047\u5230\u7684\u95ee\u9898\u662f\uff0calwayson \u90e8\u7f72\u5b8c\u6210\u540e\uff0c\u5728\u9700\u8981\u914d\u7f6e pacemaker \u7684\u65f6\u5019\u9047\u5230\u65e0\u6cd5\u5207\u6362\u7684\u95ee\u9898\uff0cVIP \u5904\u4e8e shutdown \u72b6\u6001\uff0c\u4e09\u8282\u70b9\u65e0\u6cd5\u4f7f\u7528<\/p>\n<pre><code>pcs resource create sqlag ocf:mssql:ag ag_name=sqlag master notify=true pcs resource create AVGListener ocf:heartbeat:IPaddr2 ip=192.168.31.206 cidr_netmask=24 pcs constraint colocation add AVGListener sqlag-master INFINITY with-rsc-role=Master pcs constraint order promote sqlag-master then start AVGListener <\/code><\/pre>\n<pre><code>[[email&#160;protected] ~]# pcs status Cluster name: sqlcluster Stack: corosync Current DC: sqlag01 (version 1.1.21-4.el7-f14e36fd43) - partition with quorum Last updated: Thu Oct 22 17:57:50 2020 Last change: Thu Oct 22 17:14:32 2020 by root via crm_resource on sqlag01  3 nodes configured 4 resources configured  Online: [ sqlag01 sqlag02 ] OFFLINE: [ sqlag03 ]  Full list of resources:   Master\/Slave Set: sqlag-master [sqlag]      sqlag      (ocf::mssql:ag):        FAILED sqlag01      sqlag      (ocf::mssql:ag):        FAILED sqlag02      Stopped: [ sqlag03 ]  AVGListener    (ocf::heartbeat:IPaddr2):       Stopped  Failed Resource Actions: * sqlag_start_0 on sqlag01 'unknown error' (1): call=1487, status=complete, exitreason='2020\/10\/22 17:57:50 Did not find AG row in sys.availability_groups',     last-rc-change='Thu Oct 22 17:57:45 2020', queued=1ms, exec=5157ms * sqlag_start_0 on sqlag02 'unknown error' (1): call=1487, status=complete, exitreason='2020\/10\/22 17:57:49 Did not find AG row in sys.availability_groups',     last-rc-change='Thu Oct 22 17:57:44 2020', queued=0ms, exec=5145ms  Daemon Status:   corosync: active\/disabled   pacemaker: active\/disabled   pcsd: active\/enabled <\/code><\/pre>\n<p>\u5728\u5c1d\u8bd5\u5c06\u5168\u90e8\u8282\u70b9\u5173\u95ed\u540e\uff0c\u9010\u4e00\u542f\u52a8\u53d1\u73b0\u5355\u72ec\u542f\u52a8 \u4e00\u4e2a\u8282\u70b9\u5728\u67e5\u770b pcs status \u7684\u65f6\u5019\u662f\u6b63\u5e38\u7684\uff0c\u4f46\u5728\u542f\u52a8\u7b2c\u4e8c\u4e2a\u8282\u70b9\u7684\u65f6\u5019\uff0c\u67e5\u770b pcs status \u7684\u65f6\u5019\u53d1\u73b0\uff0cSQLAG \u7684\u72b6\u6001\u4ece start \u53d8\u6210 failed \u3002 \u7136\u540e\u76d1\u542c\u5c31 \u4e00\u76f4\u662f stopped \u7684\u72b6\u6001\u3002<\/p>\n<p>\u5e0c\u671b\u5927\u5e08\u4eec\u5e2e\u5fd9\u51fa\u51fa\u62db\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>0<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>sql 2019 on Linux&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/172254"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=172254"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/172254\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=172254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=172254"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=172254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}