opengauss Need repair修复

 问题描述:opengauss集群在做切换的时候,或者增删节点的时候,很容易发生节点repair,找不到主库的情况,这种情况需要把主库使用primary角色启动,然后build重建从库,就可以恢复集群

 

1.集群状态

[omm@db01 ~]$ gs_om -t status --detail
[  CMServer State   ]

node                          node_ip         instance                                 state
----------------------------------------------------------------------------------------------
1  db01 192.168.163.21   1    /opt/openGauss/install/cm/cm_server Standby
3  db03 192.168.163.24   3    /opt/openGauss/install/cm/cm_server Primary

[   Cluster State   ]

cluster_state   : Unavailable
redistributing  : No
balanced        : No
current_az      : AZ_ALL

[  Datanode State   ]

node                          node_ip         instance                state
---------------------------------------------------------------------------------------
1  db01 192.168.163.21   6001 /data/openGauss/dn P Standby Need repair(Connecting)
3  db03 192.168.163.24   6003 /data/openGauss/dn S Pending Need repair

 

2.启动主库

[omm@db01 ~]$ gs_ctl restart -D /data/openGauss/dn/ -M primary
[2023-04-12 17:15:10.486][20342][][gs_ctl]: gs_ctl restarted ,datadir is /data/openGauss/dn
waiting for server to shut down... done
server stopped
[2023-04-12 17:15:11.490][20342][][gs_ctl]: waiting for server to start...
.0 LOG:  [Alarm Module]can not read GAUSS_WARNING_TYPE env.

0 LOG:  [Alarm Module]Host Name: db01

0 LOG:  [Alarm Module]Host IP: db01. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain <HOST IP>

0 LOG:  [Alarm Module]Cluster Name: Cluster_template

0 LOG:  [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57

0 WARNING:  failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or directory.
0 WARNING:  failed to parse feature control file: gaussdb.version.
0 WARNING:  Failed to load the product control file, so gaussdb cannot distinguish product version.
2023-04-12 17:15:11.572 6436769f.1 [unknown] 140342326707904 [unknown] 0 dn_6001_6002_6003 DB010  0 [REDO] LOG:  Recovery parallelism, cpu count = 4, max = 4, actual = 4
2023-04-12 17:15:11.572 6436769f.1 [unknown] 140342326707904 [unknown] 0 dn_6001_6002_6003 DB010  0 [REDO] LOG:  ConfigRecoveryParallelism, true_max_recovery_parallelism:4, max_recovery_parallelism:4
gaussdb.state does not exist, and skipt setting since it is optional.2023-04-12 17:15:11.577 6436769f.1 [unknown] 140342326707904 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  [Alarm Module]can not read GAUSS_WARNING_TYPE env.

2023-04-12 17:15:11.577 6436769f.1 [unknown] 140342326707904 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  [Alarm Module]Host Name: db01

2023-04-12 17:15:11.577 6436769f.1 [unknown] 140342326707904 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  [Alarm Module]Host IP: db01. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain <HOST IP>

2023-04-12 17:15:11.577 6436769f.1 [unknown] 140342326707904 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  [Alarm Module]Cluster Name: Cluster_template

2023-04-12 17:15:11.577 6436769f.1 [unknown] 140342326707904 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57

2023-04-12 17:15:11.579 6436769f.1 [unknown] 140342326707904 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  loaded library "security_plugin"
2023-04-12 17:15:11.580 6436769f.1 [unknown] 140342326707904 [unknown] 0 dn_6001_6002_6003 01000  0 [BACKEND] WARNING:  could not create any HA TCP/IP sockets
2023-04-12 17:15:11.589 6436769f.1 [unknown] 140342326707904 [unknown] 0 dn_6001_6002_6003 OP0A3  0 [BACKEND] LOG:  Max thread pool size 4096 should not be larger than max_connections 1000, so reduce max thread pool size to max_connections
2023-04-12 17:15:11.589 6436769f.1 [unknown] 140342326707904 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0.
2023-04-12 17:15:11.589 6436769f.1 [unknown] 140342326707904 [unknown] 0 dn_6001_6002_6003 01000  0 [BACKEND] WARNING:  Failed to initialize the memory protect for g_instance.attr.attr_storage.cstore_buffers (16 Mbytes) or shared memory (1554 Mbytes) is larger.
2023-04-12 17:15:11.608 6436769f.1 [unknown] 140342326707904 [unknown] 0 dn_6001_6002_6003 00000  0 [CACHE] LOG:  set data cache  size(12582912)
2023-04-12 17:15:11.691 6436769f.1 [unknown] 140342326707904 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  Get stream thread proc num [3].
2023-04-12 17:15:12.078 6436769f.1 [unknown] 140342326707904 [unknown] 0 dn_6001_6002_6003 00000  0 [SEGMENT_PAGE] LOG:  Segment-page constants: DF_MAP_SIZE: 8156, DF_MAP_BIT_CNT: 65248, DF_MAP_GROUP_EXTENTS: 4175872, IPBLOCK_SIZE: 8168, EXTENTS_PER_IPBLOCK: 1021, IPBLOCK_GROUP_SIZE: 4090, BMT_HEADER_LEVEL0_TOTAL_PAGES: 8323072, BktMapEntryNumberPerBlock: 2038, BktMapBlockNumber: 25, BktBitMaxMapCnt: 512
2023-04-12 17:15:12.115 6436769f.1 [unknown] 140342326707904 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  gaussdb: fsync file "/data/openGauss/dn/gaussdb.state.temp" success
2023-04-12 17:15:12.115 6436769f.1 [unknown] 140342326707904 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  create gaussdb state file success: db state(STARTING_STATE), server mode(Primary), connection index(1)
2023-04-12 17:15:12.148 6436769f.1 [unknown] 140342326707904 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  max_safe_fds = 976, usable_fds = 1000, already_open = 14

[2023-04-12 17:15:12.545][20342][][gs_ctl]:  done
[2023-04-12 17:15:12.545][20342][][gs_ctl]: server started (/data/openGauss/dn)

 

[omm@db01 ~]$ gs_om -t status --detail
[  CMServer State   ]

node                          node_ip         instance                                 state
----------------------------------------------------------------------------------------------
1  db01 192.168.163.21   1    /opt/openGauss/install/cm/cm_server Standby
3  db03 192.168.163.24   3    /opt/openGauss/install/cm/cm_server Primary

[   Cluster State   ]

cluster_state   : Degraded
redistributing  : No
balanced        : Yes
current_az      : AZ_ALL

[  Datanode State   ]

node                          node_ip         instance                state
---------------------------------------------------------------------------------------
1  db01 192.168.163.21   6001 /data/openGauss/dn P Primary Normal
3  db03 192.168.163.24   6003 /data/openGauss/dn S Pending Need repair
[omm@db01 ~]$
[omm@db01 ~]$

 

 

3.重建从库

[omm@db03 pg_xlog]$ gs_ctl build -D /data/openGauss/dn
[2023-04-12 17:18:25.751][43299][][gs_ctl]: gs_ctl incremental build ,datadir is /data/openGauss/dn
[2023-04-12 17:18:25.751][43299][][gs_ctl]: fopen build pid file "/data/openGauss/dn/gs_build.pid" success
[2023-04-12 17:18:25.751][43299][][gs_ctl]: fprintf build pid file "/data/openGauss/dn/gs_build.pid" success
[2023-04-12 17:18:25.752][43299][][gs_ctl]: fsync build pid file "/data/openGauss/dn/gs_build.pid" success
[2023-04-12 17:18:25.761][43299][][gs_ctl]: The local server run as Pending,build cannot be executed.
[omm@db03 pg_xlog]$
[omm@db03 pg_xlog]$
[omm@db03 pg_xlog]$ gs_ctl stop -D /data/openGauss/dn
[2023-04-12 17:18:40.455][43408][][gs_ctl]: gs_ctl stopped ,datadir is /data/openGauss/dn
waiting for server to shut down.... done
server stopped
[omm@db03 pg_xlog]$
[omm@db03 pg_xlog]$
[omm@db03 pg_xlog]$ gs_ctl build -D /data/openGauss/dn
[2023-04-12 17:18:43.047][43429][][gs_ctl]: gs_ctl incremental build ,datadir is /data/openGauss/dn
[2023-04-12 17:18:43.047][43429][][gs_ctl]: fopen build pid file "/data/openGauss/dn/gs_build.pid" success
[2023-04-12 17:18:43.047][43429][][gs_ctl]: fprintf build pid file "/data/openGauss/dn/gs_build.pid" success
[2023-04-12 17:18:43.048][43429][][gs_ctl]: fsync build pid file "/data/openGauss/dn/gs_build.pid" success
[2023-04-12 17:18:43.048][43429][][gs_ctl]: stop failed, killing gaussdb by force ...
[2023-04-12 17:18:43.048][43429][][gs_ctl]: command [ps c -eo pid,euid,cmd | grep gaussdb | grep -v grep | awk '{if($2 == curuid && $1!="-n") print "/proc/"$1"/cwd"}' curuid=`id -u`| xargs ls -l | awk '{if ($NF=="/data/openGauss/dn")  print $(NF-2)}' | awk -F/ '{print $3 }' | xargs kill -9 >/dev/null 2>&1 ] path: [/data/openGauss/dn]
[2023-04-12 17:18:43.062][43429][][gs_ctl]: server stopped
[2023-04-12 17:18:43.063][43429][dn_6001_6002_6003][gs_ctl]: Get repl_auth_mode is  and repl_uuid is
[2023-04-12 17:18:43.069][43429][dn_6001_6002_6003][gs_ctl]: build try host(192.168.163.21) port(26001) success
[2023-04-12 17:18:43.069][43429][dn_6001_6002_6003][gs_rewind]: set gaussdb state file when incremental build:db state(BUILDING_STATE), server mode(STANDBY_MODE), build mode(INC_BUILD).
[2023-04-12 17:18:43.087][43429][dn_6001_6002_6003][gs_rewind]: connected to server: host=192.168.163.21 port=26001 dbname=postgres application_name=gs_rewind connect_timeout=5  rw_timeout=600
[2023-04-12 17:18:43.090][43429][dn_6001_6002_6003][gs_rewind]: connect to primary success
[2023-04-12 17:18:43.101][43429][dn_6001_6002_6003][gs_rewind]: get pg_control success
[2023-04-12 17:18:43.101][43429][dn_6001_6002_6003][gs_rewind]: target server was interrupted in mode 2.
[2023-04-12 17:18:43.101][43429][dn_6001_6002_6003][gs_rewind]: sanityChecks success
[2023-04-12 17:18:43.101][43429][dn_6001_6002_6003][gs_rewind]: find last checkpoint at 1/FF001D68 and checkpoint redo at 1/FF001CE8 from source control file
[2023-04-12 17:18:43.101][43429][dn_6001_6002_6003][gs_rewind]: find last checkpoint at 1/FF001188 and checkpoint redo at 1/FF001108 from target control file
[2023-04-12 17:18:43.101][43429][dn_6001_6002_6003][gs_rewind]: find max lsn success, find max lsn rec (1/FF001188) success.
[2023-04-12 17:18:43.102][43429][dn_6001_6002_6003][gs_rewind]: Get repl_auth_mode is  and repl_uuid is
[2023-04-12 17:18:43.105][43429][dn_6001_6002_6003][gs_rewind]: build try host(192.168.163.21) port(26001) success
[2023-04-12 17:18:43.106][43429][dn_6001_6002_6003][gs_rewind]: request lsn is 1/FF001188 and its crc(source, target):[2730625033, 2730625033]
[2023-04-12 17:18:43.106][43429][dn_6001_6002_6003][gs_rewind]: find common checkpoint 1/FF001188
[2023-04-12 17:18:43.106][43429][dn_6001_6002_6003][gs_rewind]: find diverge point success
[2023-04-12 17:18:43.106][43429][dn_6001_6002_6003][gs_rewind]: read checkpoint redo (1/FF001108) success before rewinding.
[2023-04-12 17:18:43.106][43429][dn_6001_6002_6003][gs_rewind]: rewinding from checkpoint redo point at 1/FF001108 on timeline 1
[2023-04-12 17:18:43.106][43429][dn_6001_6002_6003][gs_rewind]: diverge xlogfile is 0000000100000001000000FF, older ones will not be copied or removed.

[2023-04-12 17:19:28.132][43429][dn_6001_6002_6003][gs_rewind]: targetFileStatThread success pid 139970650228480.
[2023-04-12 17:19:28.132][43429][dn_6001_6002_6003][gs_rewind]: reading source file list
[2023-04-12 17:19:28.132][43429][dn_6001_6002_6003][gs_rewind]: traverse_datadir start.
[2023-04-12 17:19:28.133][43429][dn_6001_6002_6003][gs_rewind]: Get log directory guc is /var/log/omm/omm/pg_log/dn_6003
[2023-04-12 17:19:28.318][43429][dn_6001_6002_6003][gs_rewind]: filemap_list_to_array start.
[2023-04-12 17:19:28.318][43429][dn_6001_6002_6003][gs_rewind]: filemap_list_to_array end sort start. length is 2651
[2023-04-12 17:19:28.318][43429][dn_6001_6002_6003][gs_rewind]: sort end.
[2023-04-12 17:19:28.318][43429][dn_6001_6002_6003][gs_rewind]: targetFileStatThread return success.
[2023-04-12 17:19:28.330][43429][dn_6001_6002_6003][gs_rewind]: reading target file list
[2023-04-12 17:19:28.334][43429][dn_6001_6002_6003][gs_rewind]: traverse target datadir success
[2023-04-12 17:19:28.334][43429][dn_6001_6002_6003][gs_rewind]: reading WAL in target
[2023-04-12 17:19:28.334][43429][dn_6001_6002_6003][gs_rewind]: could not read WAL record at 1/FF001228: record with incorrect prev-link 1/E8001188 at 1/FF001228
[2023-04-12 17:19:28.335][43429][dn_6001_6002_6003][gs_rewind]: calculate totals rewind success
[2023-04-12 17:19:28.335][43429][dn_6001_6002_6003][gs_rewind]: need to copy 60MB (total source directory size is 130MB)
[2023-04-12 17:19:28.335][43429][dn_6001_6002_6003][gs_rewind]: starting background WAL receiver
[2023-04-12 17:19:28.335][43429][dn_6001_6002_6003][gs_rewind]: Starting copy xlog, start point: 1/FF001108
[2023-04-12 17:19:28.335][43429][dn_6001_6002_6003][gs_rewind]: in gs_rewind proecess,so no need remove.
[2023-04-12 17:19:28.340][43429][dn_6001_6002_6003][gs_rewind]: build try host(192.168.163.21) port(26001) success
[2023-04-12 17:19:28.340][43429][dn_6001_6002_6003][gs_rewind]: check identify system success
[2023-04-12 17:19:28.340][43429][dn_6001_6002_6003][gs_rewind]: send START_REPLICATION 1/FF000000 success
[2023-04-12 17:19:28.465][43429][dn_6001_6002_6003][gs_rewind]: receiving and unpacking files...
[2023-04-12 17:19:28.766][43429][dn_6001_6002_6003][gs_rewind]: execute file map success
[2023-04-12 17:19:28.766][43429][dn_6001_6002_6003][gs_rewind]: find minRecoveryPoint success from xlog insert location 1/FF0068A0
[2023-04-12 17:19:28.766][43429][dn_6001_6002_6003][gs_rewind]: update pg_control file success, minRecoveryPoint: 1/FF0068A0, ckpLoc:1/FF001D68, ckpRedo:1/FF001CE8, preCkp:1/FF001C48
[2023-04-12 17:19:28.768][43429][dn_6001_6002_6003][gs_rewind]: update pg_dw file success
[2023-04-12 17:19:28.770][43429][dn_6001_6002_6003][gs_rewind]: xlog end point: 1/FF0068A0
[2023-04-12 17:19:28.770][43429][dn_6001_6002_6003][gs_rewind]: waiting for background process to finish streaming...
[2023-04-12 17:19:33.374][43429][dn_6001_6002_6003][gs_rewind]: truncating and removing old xlog files
[2023-04-12 17:19:33.416][43429][dn_6001_6002_6003][gs_rewind]: truncate and remove old xlog files success
[2023-04-12 17:19:33.416][43429][dn_6001_6002_6003][gs_rewind]: creating backup label and updating control file
[2023-04-12 17:19:33.416][43429][dn_6001_6002_6003][gs_rewind]: create backup label success
[2023-04-12 17:19:33.416][43429][dn_6001_6002_6003][gs_rewind]: read checkpoint redo (1/FF001108) success.
[2023-04-12 17:19:33.416][43429][dn_6001_6002_6003][gs_rewind]: read checkpoint rec (1/FF001188) success.
[2023-04-12 17:19:33.416][43429][dn_6001_6002_6003][gs_rewind]: dn incremental build completed.
[2023-04-12 17:19:33.420][43429][dn_6001_6002_6003][gs_rewind]: build try host(192.168.163.21) port(26001) success
[2023-04-12 17:19:33.420][43429][dn_6001_6002_6003][gs_rewind]: fetching MOT checkpoint
[2023-04-12 17:19:33.467][43429][dn_6001_6002_6003][gs_ctl]: waiting for server to start...
.0 LOG:  [Alarm Module]can not read GAUSS_WARNING_TYPE env.

0 LOG:  [Alarm Module]Host Name: db03

0 LOG:  [Alarm Module]Host IP: db03. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain <HOST IP>

0 LOG:  [Alarm Module]Cluster Name: Cluster_template

0 LOG:  [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57

0 WARNING:  failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or directory.
0 WARNING:  failed to parse feature control file: gaussdb.version.
0 WARNING:  Failed to load the product control file, so gaussdb cannot distinguish product version.
2023-04-12 17:19:33.552 643677a5.1 [unknown] 140581105604288 [unknown] 0 dn_6001_6002_6003 DB010  0 [REDO] LOG:  Recovery parallelism, cpu count = 4, max = 4, actual = 4
2023-04-12 17:19:33.552 643677a5.1 [unknown] 140581105604288 [unknown] 0 dn_6001_6002_6003 DB010  0 [REDO] LOG:  ConfigRecoveryParallelism, true_max_recovery_parallelism:4, max_recovery_parallelism:4
2023-04-12 17:19:33.557 643677a5.1 [unknown] 140581105604288 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  [Alarm Module]can not read GAUSS_WARNING_TYPE env.

2023-04-12 17:19:33.557 643677a5.1 [unknown] 140581105604288 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  [Alarm Module]Host Name: db03

2023-04-12 17:19:33.557 643677a5.1 [unknown] 140581105604288 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  [Alarm Module]Host IP: db03. Copy hostname directly in case of taking 10s to use 'gethostbyname' when /etc/hosts does not contain <HOST IP>

2023-04-12 17:19:33.557 643677a5.1 [unknown] 140581105604288 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  [Alarm Module]Cluster Name: Cluster_template

2023-04-12 17:19:33.557 643677a5.1 [unknown] 140581105604288 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57

2023-04-12 17:19:33.560 643677a5.1 [unknown] 140581105604288 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  loaded library "security_plugin"
2023-04-12 17:19:33.561 643677a5.1 [unknown] 140581105604288 [unknown] 0 dn_6001_6002_6003 01000  0 [BACKEND] WARNING:  could not create any HA TCP/IP sockets
2023-04-12 17:19:33.571 643677a5.1 [unknown] 140581105604288 [unknown] 0 dn_6001_6002_6003 OP0A3  0 [BACKEND] LOG:  Max thread pool size 4096 should not be larger than max_connections 1000, so reduce max thread pool size to max_connections
2023-04-12 17:19:33.571 643677a5.1 [unknown] 140581105604288 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0.
2023-04-12 17:19:33.571 643677a5.1 [unknown] 140581105604288 [unknown] 0 dn_6001_6002_6003 01000  0 [BACKEND] WARNING:  Failed to initialize the memory protect for g_instance.attr.attr_storage.cstore_buffers (16 Mbytes) or shared memory (1554 Mbytes) is larger.
2023-04-12 17:19:33.590 643677a5.1 [unknown] 140581105604288 [unknown] 0 dn_6001_6002_6003 00000  0 [CACHE] LOG:  set data cache  size(12582912)
2023-04-12 17:19:33.673 643677a5.1 [unknown] 140581105604288 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  Get stream thread proc num [3].
2023-04-12 17:19:34.068 643677a5.1 [unknown] 140581105604288 [unknown] 0 dn_6001_6002_6003 00000  0 [SEGMENT_PAGE] LOG:  Segment-page constants: DF_MAP_SIZE: 8156, DF_MAP_BIT_CNT: 65248, DF_MAP_GROUP_EXTENTS: 4175872, IPBLOCK_SIZE: 8168, EXTENTS_PER_IPBLOCK: 1021, IPBLOCK_GROUP_SIZE: 4090, BMT_HEADER_LEVEL0_TOTAL_PAGES: 8323072, BktMapEntryNumberPerBlock: 2038, BktMapBlockNumber: 25, BktBitMaxMapCnt: 512
2023-04-12 17:19:34.106 643677a5.1 [unknown] 140581105604288 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  gaussdb: fsync file "/data/openGauss/dn/gaussdb.state.temp" success
2023-04-12 17:19:34.106 643677a5.1 [unknown] 140581105604288 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  create gaussdb state file success: db state(STARTING_STATE), server mode(Standby), connection index(1)
2023-04-12 17:19:34.132 643677a5.1 [unknown] 140581105604288 [unknown] 0 dn_6001_6002_6003 00000  0 [BACKEND] LOG:  max_safe_fds = 974, usable_fds = 1000, already_open = 16
.
[2023-04-12 17:19:35.473][43429][dn_6001_6002_6003][gs_ctl]:  done
[2023-04-12 17:19:35.473][43429][dn_6001_6002_6003][gs_ctl]: server started (/data/openGauss/dn)
[2023-04-12 17:19:35.473][43429][dn_6001_6002_6003][gs_ctl]: fopen build pid file "/data/openGauss/dn/gs_build.pid" success
[2023-04-12 17:19:35.473][43429][dn_6001_6002_6003][gs_ctl]: fprintf build pid file "/data/openGauss/dn/gs_build.pid" success
[2023-04-12 17:19:35.473][43429][dn_6001_6002_6003][gs_ctl]: fsync build pid file "/data/openGauss/dn/gs_build.pid" success

 

 

4.查看集群

[omm@db01 ~]$ gs_om -t status --detail
[  CMServer State   ]

node                          node_ip         instance                                 state
----------------------------------------------------------------------------------------------
1  db01 192.168.163.21   1    /opt/openGauss/install/cm/cm_server Standby
3  db03 192.168.163.24   3    /opt/openGauss/install/cm/cm_server Primary

[   Cluster State   ]

cluster_state   : Normal
redistributing  : No
balanced        : Yes
current_az      : AZ_ALL

[  Datanode State   ]

node                          node_ip         instance                state
---------------------------------------------------------------------------------------
1  db01 192.168.163.21   6001 /data/openGauss/dn P Primary Normal
3  db03 192.168.163.24   6003 /data/openGauss/dn S Standby Normal

 

posted @ 2023-04-20 14:28  我爱睡莲  阅读(532)  评论(0编辑  收藏  举报