2011-07-14 20:47:50 |
Simon Déziel |
bug |
|
|
added bug |
2011-07-14 20:56:08 |
Simon Déziel |
description |
After the log rotation, logrotate needs to notify all samba processes to release their open file descriptors on the log files.
The current logrotate configuration file does not do so and only notify the process that has it's PID stored /var/run/samba/.
This is wrong as other child will keep logging to the "deleted" files and may use all the disk space. Those "deleted" files are not showing in ls output but they are still consuming space in the file system.
I think the right solution to this bug would be to have logrotate to call "smbcontrol all reload-config". This solution was proposed by Andrew Bartlett, a Samba developer, in this email http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=160076#25.
I have confirmed that this problem affects Samba from Lucid to Natty at least. |
After the log rotation, logrotate needs to notify all samba processes to release their open file descriptors on the log files.
The current logrotate configuration file does not do so and only notify the process that has it's PID stored /var/run/samba/.
This is wrong as other child will keep logging to the "deleted" files and may use all the disk space. Those "deleted" files are not showing in ls output but they are still consuming space in the file system.
I think the right solution to this bug would be to have logrotate to call "smbcontrol all reload-config". This solution was proposed by Andrew Bartlett, a Samba developer, in this email http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=160076#25. The smbcontrol utility will notify all related daemons (smbd, nmbd and winbindd) and their children to re-open a new log file.
I have confirmed that this problem affects Samba from Lucid to Natty at least. |
|
2011-07-14 21:10:23 |
Simon Déziel |
description |
After the log rotation, logrotate needs to notify all samba processes to release their open file descriptors on the log files.
The current logrotate configuration file does not do so and only notify the process that has it's PID stored /var/run/samba/.
This is wrong as other child will keep logging to the "deleted" files and may use all the disk space. Those "deleted" files are not showing in ls output but they are still consuming space in the file system.
I think the right solution to this bug would be to have logrotate to call "smbcontrol all reload-config". This solution was proposed by Andrew Bartlett, a Samba developer, in this email http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=160076#25. The smbcontrol utility will notify all related daemons (smbd, nmbd and winbindd) and their children to re-open a new log file.
I have confirmed that this problem affects Samba from Lucid to Natty at least. |
After the log rotation, logrotate needs to notify all samba processes to release their open file descriptors on the log files.
The current logrotate configuration file does not do so and only notify the process that has it's PID stored /var/run/samba/.
This is wrong as other child will keep logging to the "deleted" files and may use all the disk space. Those "deleted" files are not showing in ls output but they are still consuming space in the file system.
I think the right solution to this bug would be to have logrotate to call "smbcontrol all reload-config". This solution was proposed by Andrew Bartlett, a Samba developer, in this email http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=160076#25. The smbcontrol utility will notify all related daemons (smbd, nmbd and winbindd) and their child processes to re-open a new log file.
I have confirmed that this problem affects Samba from Lucid to Natty at least. |
|
2011-07-15 13:24:44 |
Dave Walker |
samba (Ubuntu): importance |
Undecided |
Medium |
|
2011-07-15 13:24:49 |
Dave Walker |
samba (Ubuntu): status |
New |
Confirmed |
|
2017-08-10 20:05:41 |
Andreas Hasenack |
tags |
|
server-next |
|
2018-04-13 14:27:34 |
Robie Basak |
tags |
server-next |
server-next server-next-drop |
|
2018-05-02 15:25:16 |
Robie Basak |
bug |
|
|
added subscriber Ubuntu Server |
2018-05-02 15:27:55 |
Robie Basak |
tags |
server-next server-next-drop |
|
|
2022-05-02 16:09:52 |
schamane |
bug |
|
|
added subscriber schamane |