当前位置:网站首页>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
边栏推荐
- 【Untitled】
- 软件架构简介
- 即时零售业态下如何实现自动做账?
- GPU accelerated Pinterest recommendation model, the number of parameters increased by 100 times, and the user activity increased by 16%
- 力扣练习—— 矩形区域不超过 K 的最大数值和(hard)
- 面试官:项目中 Dao、Service、Controller、Util、Model 怎么划分的?
- AUTOCAD——减少样条曲线控制点数、CAD进阶练习(三)
- Store limited time seckill function system
- Several small projects that I have open sourced over the years
- [Go WebSocket] 多房间的聊天室(一)思考篇
猜你喜欢
mysql appears: ERROR 1524 (HY000): Plugin '123' is not loaded
[Brave food, not afraid of the linked list of brushing questions] Merging of ordered linked lists
Alibaba最新神作!耗时182天肝出来1015页分布式全栈手册太香了
Open Office XML 格式里如何描述多段具有不同字体设置的段落
[Brave food, not afraid to write the linked list] The problem of the penultimate node of the linked list
Memory problems difficult to locate, it is because you do not use ASAN
中小规模网站架构
如何使用工程仪器设备在线监测管理系统
Unsafe的一些使用技巧
【勇敢饭饭,不怕刷题之链表】有序链表的合并
随机推荐
不止跑路,拯救误操作rm -rf /*的小伙儿
Module 9 - Designing an e-commerce seckill system
用proteus直接仿真stm32-可以完全丢弃编程器
2023版揽胜运动曝光,安全、舒适一个不落
mysql appears: ERROR 1524 (HY000): Plugin '123' is not loaded
一文带你搞懂中断按键驱动程序之poll机制
学长告诉我,大厂MySQL都是通过SSH连接的
从产品角度看 L2 应用:为什么说这是一个游乐场?
leetcode 823. Binary Trees With Factors(因子二叉树)
老板加薪!看我做的WPF Loading!!!
力扣练习——64 最长和谐子序列
【无标题】
Emulate stm32 directly with proteus - the programmer can be completely discarded
【小程序 | 启航篇】一文打通任督二脉
POJ 2891 Strange Way to Express Integers (扩展欧几里得)
零基础想自学软件测试,有没有大佬可以分享下接下来的学习书籍和路线?
std::move()
程序员追求技术夯实基础学习路线建议
Double.doubleToLongBits()方法使用
POJ 3101 Astronomy (Mathematics)