centos7.4通过x2openeuler升级到openeuler2003sp3后,sysstat包由于版本升级,升级后系统会出现:
- sysstat无法记录历史性能数据数据, 在/var/log/sa/下无新性能数据文件生成;
- sa无法读取历史数
原因:
sysstat版本升级后,定时记录sa性能数据由之前的/etc/cron.d/sysstat变为systemd的相关服务进行管理;升级后的sysstat服务没有随系统启动
解决方法:
- 将升级后的/var/log/sa的历史数据移走;
- systemctl enable sysstat && systemctl start sysstat