当前位置:网站首页>Not just running away, but saving the guy who mishandled rm -rf /*
Not just running away, but saving the guy who mishandled rm -rf /*
2022-08-10 11:34:00 【InfoQ】
Soul Painter is online again

Before dinner, let's understand the next two key configuration files
1. postgresql.conf in the data directory
listen_addresses The database master node ip or host name used by the remote client connection
local_bind_address The current node is bound when connecting to other openGauss nodesThe local IP address
replconninfo1 Set the first node information for local listening and authentication. If there are 2 standby machines, there will be replconninfo2
log_directory Determines the directory where the server log files are stored, and om is initializedThe name is related to the instance id during installation.
audit_directory The storage directory of the audit file. When the om is initialized, the name is related to the instance id.Relevant
2.$GAUSSHOME/box/cluster_static_config
The data directory of the backup machine of the appetizer platter is lost
gs_om -t status --detail
scp xb01:/data1/zxbog/openGauss/data/dn1/postgresql.conf ./data1/zxbog/openGauss/data/dn2/
gs_ctl build -D /data1/zxbog/openGauss/data/dn2
The data directory of the host of the appetizer platter is lost
gs_ctl failover -D /data1/zxbog/openGauss/data/dn2
gs_ctl switchover -D /data1/zxbog/openGauss/data/dn1
The GPHOME/GAUSSHOME directory of the appetizer platter is missing
node replacement and repair of the main dish
- The machine is damaged and needs to be rebuilt. The configuration such as ip remains unchanged
- The machine is requisitioned and needs to beFor a new machine, the ip address has also changed
[[email protected] ~]$ gs_dropnode -U xb0608 -G xb0608 -h 192.168.0.26
[[email protected] script]# /opt/software/script/gs_expansion -U xb0608 -G xb0608 -X ../double.xml -h 192.168.0.26
ps -ef|grep ^xb0608|awk '{print $2}'|xargs kill -9 && userdel -r xb0608
rm -rf /data1/zxbog/openGauss/
groupadd xb0608 && useradd xb0608 -g xb0608
passwd xb0608Legendary Dessert
边栏推荐
- 【电商运营】你真的了解社交媒体营销(SMM)吗?
- 面试官:项目中 Dao、Service、Controller、Util、Model 怎么划分的?
- 力扣练习—— 矩形区域不超过 K 的最大数值和(hard)
- Break through the dimensional barriers and let the dolls around you move on the screen!
- CPU多级缓存与缓存一致性
- Will SQL and NoSQL eventually converge?
- Centos7环境使用Mysql离线安装包安装Mysql5.7
- 石墨文档打开文档时快速定位到上次写的位置
- 杭电多校-Loop-(不确定性贪心+线段树)
- Several small projects that I have open sourced over the years
猜你喜欢

Redis设计与实现

A little self-deprecating deconstruction about farmers "code"

关于振弦采集模块及采集仪振弦频率值准确率的问题

STM32 encapsulation ESP8266 a key configuration function: implementations of AP mode and the STA mode switch, server and the client to create

【勇敢饭饭,不怕刷题之链表】有序链表的合并

AUTOCAD——减少样条曲线控制点数、CAD进阶练习(三)

老板加薪!看我做的WPF Loading!!!

接口定义与实现

4 of huawei offer levels, incredibly side is easing the bit in the interview ali?

微信小程序提交审核历史版本记录从哪里查看
随机推荐
What is affecting MySQL performance?
Interviewer: How are Dao, Service, Controller, Util, and Model divided in the project?
POJ 1026 Cipher (Permutation Groups)
In August the DB list latest scores - database Engines
CodeChef STMRRG String Merging (dp)
MLX90640 红外热成像仪测温传感器 手机 APP 软件 RedEye 连接详细
2022年裁员潮,失业程序员何去何从?
力扣练习——63 找到字符串中所有字母异位词
Mount [shell][mount -o loop]
runtime-core.esm-bundler.js?d2dd:218 Uncaught TypeError: formRef.value?.validate is not a function
机器学习之暴力调参案例
Double.doubleToLongBits()方法使用
[Brave food, not afraid of the linked list of brushing questions] Merging of ordered linked lists
A little self-deprecating deconstruction about farmers "code"
使用哈工大LTP测试分词并且增加自定义字典
Codeforces 862 C. Mahmoud and Ehab and the xor (技巧)
Codeforces 814 C. An impassioned circulation of affection (dp)
How can an organization judge the success of data governance?
HCIP ---- VLAN
【电商运营】你真的了解社交媒体营销(SMM)吗?