Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
linux上的Microsoft SQL Server 2019始终在PC上状态错误_Linux_Sql Server 2019_Alwayson - Fatal编程技术网

linux上的Microsoft SQL Server 2019始终在PC上状态错误

linux上的Microsoft SQL Server 2019始终在PC上状态错误,linux,sql-server-2019,alwayson,Linux,Sql Server 2019,Alwayson,这是一个新部署的环境,执行以下命令后报告了一个错误 pcs resource create sqlag ocf:mssql:ag ag_name=sqlag master notify=true 我怀疑这个错误是由VIP造成的,但我不知道如何消除它。DNS服务器使用的Windows DNS服务器请尝试这样做 pcs resource create AVGListener ocf:heartbeat:IPaddr2 ip=192.168.31.206 nic="lo" ci

这是一个新部署的环境,执行以下命令后报告了一个错误

pcs resource create sqlag ocf:mssql:ag ag_name=sqlag master notify=true

我怀疑这个错误是由VIP造成的,但我不知道如何消除它。DNS服务器使用的Windows DNS服务器请尝试这样做

pcs resource create AVGListener ocf:heartbeat:IPaddr2 ip=192.168.31.206 nic="lo" cidr_netmask=32 iflabel="pgrepvip" op monitor interval=90s
请检查您的网络名nic=“lo”或其他信息

pcs constraint colocation add AVGListener sqlag-master INFINITY with-rsc-role=Master
pcs constraint order promote sqlag-master then start AVGListener
[root@sqlag01 ~]# 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
pcs resource create AVGListener ocf:heartbeat:IPaddr2 ip=192.168.31.206 nic="lo" cidr_netmask=32 iflabel="pgrepvip" op monitor interval=90s