当前位置:网站首页>HAC cluster modifying administrator user password
HAC cluster modifying administrator user password
2022-07-05 19:08:00 【51CTO】
Henkel database
Catalog
Environmental Science
Document purpose
Details
Environmental Science
system platform :Linux x86-64 Red Hat Enterprise Linux 7
edition :4.5.6,4.5.7
Document purpose
This document is used to guide HAC The cluster modifies the administrator user password
Details
1、 Check cluster status , Use A、B There are two ways to judge
Method A: Use the cluster command , Make sure TL The timeline is consistent ,Lag in MB The data synchronization delay should not be too high , The best delay is 0.
[
root
@localhost
~]
#
hghactl
list
+
Cluster:
ha (
7072256965608815760)
-------+---------+----+-----------+
|
Member
|
Host
|
Role
|
State
|
TL
|
Lag
in
MB
|
+----------+---------------------+---------+---------+----+-----------+
|
hghac228
|
192.168.80.228:
5866
|
Leader
|
running
|
6
|
|
|
hghac230
|
192.168.80.230:
5866
|
Replica
|
running
|
6
|
0
|
+----------+---------------------+---------+---------+----+-----------+
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
Method B: Each node queries the process , Yes sender The node is the main library , Yes receiver The node is a standby database
2、 Pause the cluster
( Any node can execute , Suspending the cluster only stops the active / standby switchover of the cluster , It does not affect the use of the database )


3、 Change Password ( It can only be executed in the main library )
4、 The primary and secondary databases modify password files
The colon is the separator , The penultimate user name , The last database password , Change the password to the modified password , Save and exit .
5、 The primary and standby databases modify the cluster configuration file
vim
/
opt
/
HighGo
/
tools
/
hghac
/
hghac.
yaml
authentication:
replication:
password:
Hello
@123
username:
sysdba
rewind:
password:
Hello
@123
username:
sysdba
sysdba:
password:
Hello
@123
syssso:
password:
Hello
@123
syssao:
password:
Hello
@123
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
- 22.
- 23.
- 24.
- 25.
- 26.
- 27.
Change the password according to the corresponding user name , Save and exit .
6、 Repository modification data In the catalog postgresql.auto.conf file
vim
$PGDATA
/
postgresql.
auto.
conf
primary_conninfo
=
'user=sysdba password='
'[email protected]'
' host=192.168.80.228 port=5866 sslmode=prefer sslcompression=0 gssencmode=disable krbsrvname=postgres target_session_attrs=any'
- 1.
- 2.
- 3.
Be careful :password The front one user by sysdba, That is, modify the user sysdba Password
7、 Recovery cluster ( Any node can execute )


8、 Restart the cluster to take effect ( Any node can execute )


Be careful :
Last parameter c Is the name of the cluster , Check the method
9、 View the cluster status


10、 Reinitialize all nodes hgproxy
( If not used hgproxy Please skip this step )
systemctl
stop
hgproxy
-
4.0.2.service
--
Stop hgproxy service ,hgproxy Please use tab Health Supplement (
proxy Version of the iteration service Dissimilarity )
proxy_ctl
init
-
h
192.168.1.54
-
U
sysdba
-
d
highgo
-
p
5866
--
initialization
systemctl
start
hgproxy
-
4.0.2.service
--
start-up hgproxy service
- 1.
- 2.
- 3.
- 4.
- 5.
11、 other
perform hghactl Wait for the cluster command prompt “ Command not found ”, Please configure the environment variable , Refer to the following :
vim
~
/.
bash_profile
export
PGPORT
=
5866
export
PGUSER
=
sysdba
export
PGDATABASE
=
highgo
export
PGHOME
=/
opt
/
HighGo4
.5
.7
-
see
export
PGDATA
=/
opt
/
HighGo4
.5
.7
-
see
/
data
export
PATH
=
$PGHOME
/
bin:
$PATH:
$HOME
/
bin:
/
opt
/
HighGo
/
tools
/
hgproxy
/
bin:
/
opt
/
HighGo
/
tools
/
hghac:
/
opt
/
HighGo
/
tools
/
hghac
/
etcd
export
LD_LIBRARY_PATH
=
$PGHOME
/
lib:
/
usr
/
lib64:
$LD_LIBRARY_PATH
export
ETCDCTL_ENDPOINTS
=
http:
//10.1.194.182:2379,http://10.1.194.191:2379,http://10.1.194.192:2379
export
PATRONICTL_CONFIG_FILE
=/
opt
/
HighGo
/
tools
/
hghac
/
hghac
-
see.
yaml
source
~
/.
bash_profile
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
- 22.
- 23.
- 24.
- 25.
Be careful :
1、 You need to modify the actual path of environment variables according to the actual situation , have access to find Command to find the file path
example : lookup hghac find / -iname hghac -print
2、ETCDCTL_ENDPOINTS Three ip It needs to be modified to configuration etcd Three node ip, You can refer to /opt/HighGo/tools/hghac/hghac-see.yaml In the document etcd:hosts
边栏推荐
- Video fusion cloud platform easycvr adds multi-level grouping, which can flexibly manage access devices
- Thoroughly understand why network i/o is blocked?
- Simple query cost estimation
- 华为让出的高端市场,小米12S靠徕卡能抢到吗?
- flume系列之:拦截器过滤数据
- RedHat7.4配置yum软件仓库(RHEL7.4)
- 14、用户、组和权限(14)
- Oracle Chinese sorting Oracle Chinese field sorting
- Talking about fake demand from takeout order
- After the company went bankrupt, the blackstones came
猜你喜欢

Isprs2022/ cloud detection: cloud detection with boundary nets

企业数字化转型之路,从这里开始

Mariadb root用户及普通用户的密码 重置

Teach you to deal with JS reverse picture camouflage hand in hand

Postman核心功能解析 —— 参数化和测试报告

1亿单身男女撑起一个IPO,估值130亿

Benefits of automated testing

C# 语言的基本语法结构
![2022 latest intermediate and advanced Android interview questions, [principle + practice + Video + source code]](/img/c9/f4ab4578029cf043155a5811a64489.png)
2022 latest intermediate and advanced Android interview questions, [principle + practice + Video + source code]

2022 latest Android interview written examination, an Android programmer's interview experience
随机推荐
Debezium系列之:修改源码支持unix_timestamp() as DEFAULT value
Debezium系列之:解析默认值字符集
14、用户、组和权限(14)
JS解力扣每日一题(十二)——556. 下一个更大元素 III(2022-7-3)
【AI 框架基础技术】自动求导机制 (Autograd)
Simple query cost estimation
CF: B. almost Ternary Matrix [symétrie + règles de recherche + Construction + I am Construction Waste]
在线协作产品哪家强?微软 Loop 、Notion、FlowUs
图扑软件数字孪生智慧风电系统
The easycvr authorization expiration page cannot be logged in. How to solve it?
[detailed explanation of AUTOSAR 14 startup process]
After the company went bankrupt, the blackstones came
EasyCVR授权到期页面无法登录,该如何解决?
Oracle Chinese sorting Oracle Chinese field sorting
2022年5月腾讯云开发者社区视频月度榜单公布
Mariadb root用户及普通用户的密码 重置
数学分析_笔记_第9章:曲线积分与曲面积分
Go语言学习教程(十六)
手把手教你处理 JS 逆向之图片伪装
决策树与随机森林