Files
geedge-jira/md/OMPUB-875.md

134 lines
3.7 KiB
Markdown
Raw Permalink Normal View History

2025-09-14 21:52:36 +00:00
# 【E21现场】国家中心NZ服务器10.224.11.3-6硬盘/分区使用率接近80%
| ID | Creation Date | Assignee | Status |
|----|----------------|----------|--------|
| OMPUB-875 | 2023-03-29T16:16:49.000+0800 | 史振东 | 已关闭 |
---
查询过去24小时告警发现NeZha Server3频繁出现Disk_usages_sysroot和NZ Disk space告警
后续查询了国家中心的8台NZ服务器发现10.224.11.3-6这四台硬盘/分区使用率已接近80%
最终定位到/var/log/messages文件占用较大而且目前还在持续频繁写入日志详情如下
10.224.11.379%  messages 84G
10.224.11.468%  messages 51G
10.224.11.580%  messages 237G
10.224.11.672%  messages 208G
附件包含以下内容:
告警截图以及这四台服务器硬盘空间占用情况、messages文件大小截图和对应服务器的messages文件部分内容截图。**shizhendong** commented on *2023-03-29T16:24:56.724+0800*:
通过执行  ll /var/log -hl | grep messages 命令,发现 /var/log 目录下只存在一个 message 文件logrotate 未生效
!11.png!
---
**shizhendong** commented on *2023-03-29T16:47:19.384+0800*:
通过检查其他服务器,确认 10.224.11.3-10 八台服务器存在该问题,均为 National Center NZ Server
!33.png!
---
**shizhendong** commented on *2023-03-30T09:20:27.331+0800*:
排查步骤:
* 检查其他日志是否被轮播
# ll /var/log
* 检查 rsyslog 状态
# systemctl status rsyslog
* 检查 cron 状态
# systemctl status crond.service
* 检查 logrotate syslog 
# logrotate -d -f /etc/logrotate.d/syslog
* 查看 logrotate 状态
# cat /var/lib/logrotate/logrotate.status
其中检查发现 cron 服务未开启,由于 Logrotate 是基于 crond.service 实现日志轮播的,所以造成了该问题
centos 默认不开启 crond.service开机不自启
 
现已将 10.224.11.3-6 都执行启动了 crond 并开机自启,并手动对日志进行轮播,持续观察中
---
2025-09-14 22:26:17 +00:00
# Attachments
2025-09-14 21:52:36 +00:00
2025-09-14 22:26:17 +00:00
Attachment: 11.png
2025-09-14 22:27:11 +00:00
2025-09-14 22:26:17 +00:00
![11.png](https://gfwleak.exec.li/admin/geedge-jira/raw/branch/master/attachment/36714/11.png)
2025-09-14 21:52:36 +00:00
2025-09-14 22:26:17 +00:00
Attachment: 33.png
2025-09-14 22:27:11 +00:00
2025-09-14 22:26:17 +00:00
![33.png](https://gfwleak.exec.li/admin/geedge-jira/raw/branch/master/attachment/36722/33.png)
2025-09-14 21:52:36 +00:00
2025-09-14 22:26:17 +00:00
Attachment: 微信图片_20230329110851.png
2025-09-14 22:27:11 +00:00
2025-09-14 22:26:17 +00:00
![微信图片_20230329110851.png](https://gfwleak.exec.li/admin/geedge-jira/raw/branch/master/attachment/36713/微信图片_20230329110851.png)
2025-09-14 21:52:36 +00:00
2025-09-14 22:26:17 +00:00
Attachment: 微信图片_20230329110902.png
2025-09-14 22:27:11 +00:00
2025-09-14 22:26:17 +00:00
![微信图片_20230329110902.png](https://gfwleak.exec.li/admin/geedge-jira/raw/branch/master/attachment/36712/微信图片_20230329110902.png)
2025-09-14 21:52:36 +00:00
2025-09-14 22:26:17 +00:00
Attachment: 微信图片_20230329110906.png
2025-09-14 22:27:11 +00:00
2025-09-14 22:26:17 +00:00
![微信图片_20230329110906.png](https://gfwleak.exec.li/admin/geedge-jira/raw/branch/master/attachment/36711/微信图片_20230329110906.png)
2025-09-14 21:52:36 +00:00
2025-09-14 22:26:17 +00:00
Attachment: 微信图片_20230329110913.png
2025-09-14 22:27:11 +00:00
2025-09-14 22:26:17 +00:00
![微信图片_20230329110913.png](https://gfwleak.exec.li/admin/geedge-jira/raw/branch/master/attachment/36710/微信图片_20230329110913.png)
2025-09-14 21:52:36 +00:00
2025-09-14 22:26:17 +00:00
Attachment: 微信图片_20230329110917.png
2025-09-14 22:27:11 +00:00
2025-09-14 22:26:17 +00:00
![微信图片_20230329110917.png](https://gfwleak.exec.li/admin/geedge-jira/raw/branch/master/attachment/36709/微信图片_20230329110917.png)
Attachment: 微信图片_20230329110920.png
2025-09-14 22:27:11 +00:00
2025-09-14 22:26:17 +00:00
![微信图片_20230329110920.png](https://gfwleak.exec.li/admin/geedge-jira/raw/branch/master/attachment/36708/微信图片_20230329110920.png)
Attachment: 微信图片_20230329110925.png
2025-09-14 22:27:11 +00:00
2025-09-14 22:26:17 +00:00
![微信图片_20230329110925.png](https://gfwleak.exec.li/admin/geedge-jira/raw/branch/master/attachment/36707/微信图片_20230329110925.png)
Attachment: 微信图片_20230329110928.png
2025-09-14 22:27:11 +00:00
2025-09-14 22:26:17 +00:00
![微信图片_20230329110928.png](https://gfwleak.exec.li/admin/geedge-jira/raw/branch/master/attachment/36706/微信图片_20230329110928.png)
2025-09-14 21:52:36 +00:00