Bug 32376 - Не ротейтятся корректно логи
Summary: Не ротейтятся корректно логи
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: mariadb-server (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-15 06:20 MSK by Evgenii Terechkov
Modified: 2016-11-07 04:12 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evgenii Terechkov 2016-08-15 06:20:24 MSK
=8<==============================================================
root@zabbix ~ # rpm -qf /var/log/mysql
mariadb-server-10.1.16-alt1

root@zabbix ~ # ls -lht /var/log/mysql
total 160M
-rw-rw-r-- 1 root mysql 139M Aug 15 10:17 slow.log.1
-rw-rw-r-- 1 root mysql    0 Aug 14 00:00 error.log
-rw-rw-r-- 1 root mysql    0 Aug 14 00:00 slow.log
-rw-rw-r-- 1 root mysql 3.8K Aug 12 19:03 error.log.1
-rw-rw-r-- 1 root mysql  26K Aug 12 18:49 error.log.2
-rw-rw-r-- 1 root mysql 6.6M Aug 12 18:44 slow.log.2
-rw-rw-r-- 1 root mysql  56K Aug  5 09:11 error.log.3
-rw-rw-r-- 1 root mysql  14M Aug  5 09:08 slow.log.3
-rw-rw-r-- 1 root mysql 172K Jul 26 00:39 error.log.4
-rw-rw-r-- 1 root mysql 669K Jul 26 00:05 slow.log.4

root@zabbix ~ # lsof +d /var/log/mysql
COMMAND    PID  USER   FD   TYPE DEVICE  SIZE/OFF   NODE NAME
mysqld   30125 mysql    1w   REG  253,5      3854 262159 /var/log/mysql/error.log.1
mysqld   30125 mysql    2w   REG  253,5      3854 262159 /var/log/mysql/error.log.1
mysqld   30125 mysql   17w   REG  253,5 145229337 262152 /var/log/mysql/slow.log.1

root@zabbix ~ # rpm -V mariadb-server
S.5....T c /etc/my.cnf.d/server.cnf
S.5....T c /etc/my.cnf.server/server-no-chroot.cnf
.M......   /var/lib/mysql/dev
...D.... g /var/lib/mysql/dev/urandom
missing    /var/lib/mysql/log/queries
missing    /var/lib/mysql/run/systemd/notify
missing    /var/lib/mysql/var/nis/NIS_COLD_START
missing    /var/log/mysql/info
=8<==============================================================
Comment 1 Repository Robot 2016-11-03 16:32:38 MSK
mariadb-10.1.18-alt2 -> sisyphus:

* Thu Nov 03 2016 Alexey Shabalin <shaba@altlinux> 10.1.18-alt2
- do not install and delete log files with rpm package
- update logrotate config (ALT #32376)
- add Conflicts: mytop
- add mariadb-server-control package for fix upgrade (ALT #31936)
Comment 2 Evgenii Terechkov 2016-11-07 04:12:18 MSK
Спасибо, будем посмотреть.