chengaofeng
发布于 2024-10-09 / 7 阅读
0
0

2核2Git的服务器老挂问题排查

  1. 查看异常时间段日志

sudo journalctl --since "2024-10-09 16:00:00" --until "2024-10-09 18:00:00"
Oct 09 16:50:01 iZbpdsfds6wipZ systemd[1]: Starting system activity accounting tool...
Oct 09 16:50:01 iZbpfsdfdsi6wipZ systemd[1]: sysstat-collect.service: Succeeded.
Oct 09 16:50:01 iZbpdsf5i6wipZ systemd[1]: Started system activity accounting tool.
Oct 09 16:50:59 iZbpdsfds6wipZ systemd[1]: Starting dnf makecache...
Oct 09 16:51:01 iZbp1dfsf5i6wipZ dnf[2182210]: alinux3-os                                      285 kB/s | 3.8 kB     00:00
Oct 09 16:51:01 iZbp15dsfdp25i6wipZ dnf[2182210]: alinux3-updates                                 214 kB/s | 4.1 kB     00:00
Oct 09 16:51:02 iZbp15sdf6wipZ dnf[2182210]: alinux3-module                                  536 kB/s | 4.2 kB     00:00
Oct 09 16:51:02 iZbp15sdfup25i6wipZ dnf[2182210]: alinux3-plus                                    259 kB/s | 3.0 kB     00:00
Oct 09 16:51:02 iZbp15fsdfp25i6wipZ dnf[2182210]: alinux3-powertools                              159 kB/s | 3.0 kB     00:00
Oct 09 16:51:03 iZbp15msdfs6wipZ dnf[2182210]: Docker CE Stable - x86_64                       3.0 kB/s | 3.5 kB     00:01
Oct 09 16:51:03 iZbp15mysp25i6dfsfwipZ dnf[2182210]: Extra Packages for Enterprise Linux 8 - x86_64  400 kB/s | 4.4 kB     00:00
Oct 09 16:51:03 iZbp15sdf5i6wipZ dnf[2182210]: Extra Packages for Enterprise Linux 8 - x86_64   55 MB/s |  14 MB     00:00
  1. 怀疑系统在执行dnf makecache定时任务时导致系统崩溃或卡死

  2. 查看定时器

systemctl list-timers
  1. 关闭dnf

systemctl stop dnf-makecache.timer
systemctl disable dnf-makecache.timer
  1. 观察问题是否已解决


评论