当前位置:网站首页>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 xb0608
Legendary Dessert
边栏推荐
- Several small projects that I have open sourced over the years
- Three-phase 380V rectified voltage
- YTU 2894: G--我要去内蒙古大草原
- 零基础想自学软件测试,有没有大佬可以分享下接下来的学习书籍和路线?
- 第2章-矩阵及其运算-矩阵运算(2)
- 三个绘图工具类详解Paint(画笔)Canvas(画布)Path(路径)
- 学长告诉我,大厂MySQL都是通过SSH连接的
- Short video software development - how to break the platform homogenization
- 阻塞 非阻塞 poll机制 异步
- HDU 1520 Anniversary party (tree dp)
猜你喜欢
英特尔推送20220809 CPU微码更新 修补Intel-SA-00657安全漏洞
从产品维度来看 我们为什么不能完全信任Layer2?
Research on motion capture system for indoor combined positioning technology
中小规模网站架构
A case of violent parameter tuning in machine learning
runtime-core.esm-bundler.js?d2dd:218 Uncaught TypeError: formRef.value?.validate is not a function
振弦传感器及核心VM系列振弦采集模块
1-IMU参数解析以及选择
基于UiAutomator2+PageObject模式开展APP自动化测试实战
Several small projects that I have open sourced over the years
随机推荐
C#实战:基于ItextSharp技术标签生成小工具
力扣练习——63 找到字符串中所有字母异位词
Gartner reiterates the important value of 'data weaving'
【无标题】
力扣练习——60 二叉搜索子树的最大键值和
Spss-多元回归案例实操
【电商运营】你真的了解社交媒体营销(SMM)吗?
A little self-deprecating deconstruction about farmers "code"
3 injured in 'electrical accident' at Google data center
[E-commerce operation] Do you really understand social media marketing (SMM)?
LeetCode50天刷题计划(Day 19—— 在排序数组中查找元素的第一个和最后一个位置(9.10-10.40)
快速上手,征服三种不同分布式架构调用方案
The brave rice rice, does not fear the brush list of 】 list has a ring
POJ 1026 Cipher (Permutation Groups)
Short video software development - how to break the platform homogenization
力扣练习——59 从二叉搜索树到更大和树
第2章-矩阵及其运算-矩阵创建(1)
WeChat applet, global variables change in one place and the state in other places also changes.
接口定义与实现
CPU多级缓存与缓存一致性