Tâche #15233
Scénario #14967: Traitement express (07-09)
Erreur logrotate : les fichiers de log des services smbd & nmbd ne se termine pas par .log
Description
Le fichier logrotate.d/samba gère les fichiers *.log, or les deux démons Samba (smbd & nmbd) génèrent des fichiers de log ne finissant pas par ".log" mais :
log.smbd log.nmbd
Ce qui a comme conséquence :
error: failed to rename /var/log/samba/log.nmbd-20160228 to /var/log/samba/log.nmbd-20160228-20160308: Aucun fichier ou dossier de ce type error: failed to rename /var/log/samba/log.smbd-20160228 to /var/log/samba/log.smbd-20160228-20160308: Aucun fichier ou dossier de ce type
Related issues
Associated revisions
logrotate : modification de la configuration logrotate.d/samba
REF #15233 @2h
logrotate : modification de la configuration logrotate.d/samba
REF #15233
logrotate : modification de la configuration logrotate.d/samba
Cherry pick for 2.4.0 from 5ace6d41c253c9b864cb65d2bbd499a5c027c726
Ref: #15233
logrotate : modification de la configuration logrotate.d/samba
Cherry pick for 2.4.1 from 5ace6d41c253c9b864cb65d2bbd499a5c027c726
Ref: #15233
logrotate : modification de la configuration logrotate.d/samba
Cherry pick for 2.5.1 from 5ace6d41c253c9b864cb65d2bbd499a5c027c726
Ref: #15233
History
#1 Updated by Gérald Schwartzmann over 7 years ago
- Subject changed from Samba : erreur logrotate to Erreur logrotate : les fichiers de log des services smbd & nmbd ne se termine pas par .log
#2 Updated by Daniel Dehennin over 7 years ago
- Estimated time set to 2.00 h
- Parent task set to #14967
Les demandes de l’équipe ne doivent pas être placée en Demande: https://dev-eole.ac-dijon.fr/projects/modules-eole/wiki/Gestion_des_demandes_entrantes
#3 Updated by Klaas TJEBBES over 7 years ago
- Assigned To set to Klaas TJEBBES
- Remaining (hours) set to 2.0
#4 Updated by Klaas TJEBBES over 7 years ago
- Status changed from Nouveau to En cours
#5 Updated by Klaas TJEBBES over 7 years ago
- Status changed from En cours to Résolu
#6 Updated by Lionel Morin over 7 years ago
- Description updated (diff)
#7 Updated by Scrum Master over 7 years ago
- % Done changed from 0 to 100
#8 Updated by Daniel Dehennin about 7 years ago
- Status changed from Résolu to En cours
- % Done changed from 100 to 40
Ce n’est pas suffisant, le delaycompress
pose problème.
root@scribe:/var/log/samba# ls -l total 52 -rw-rw-rw- 1 root root 0 mars 6 06:29 connexions.log -rw-rw-rw- 1 root root 264 mars 4 17:50 connexions.log-20160306 drwx------ 5 root root 4096 mars 1 16:03 cores -rw-rw-rw- 1 root root 0 mars 6 06:29 desktop-76n2s9c.log -rw-rw-rw- 1 root root 264 mars 4 17:50 desktop-76n2s9c.log-20160306 -rw-r--r-- 1 root root 2965 mars 4 00:52 log.%m -rw-r--r-- 1 root root 0 mars 6 06:29 log.nmbd -rw-r--r-- 1 root root 0 mars 7 09:48 log.nmbd-20160304 -rw-r--r-- 1 root root 12927 mars 4 17:33 log.nmbd-20160304-20160307 -rw-r--r-- 1 root root 0 mars 7 09:44 log.nmbd-20160306 -rw-r--r-- 1 root root 0 mars 4 17:12 log.samba -rw-r--r-- 1 root root 0 mars 6 06:29 log.smbd -rw-r--r-- 1 root root 0 mars 7 09:48 log.smbd-20160304 -rw-r--r-- 1 root root 4301 mars 4 17:29 log.smbd-20160304-20160307 -rw-r--r-- 1 root root 0 mars 7 09:44 log.smbd-20160306 -rw-r--r-- 1 root root 0 mars 4 17:33 log.wb-SCRIBE -rw-r--r-- 1 root root 0 mars 6 06:29 log.wb-SCRIBE-20160304 -rw-r--r-- 1 root root 0 mars 4 17:33 log.winbindd -rw-r--r-- 1 root root 2415 mars 4 00:02 log.winbindd-20160304 -rw-r--r-- 1 root root 0 mars 7 09:44 tdbbackup.log -rw-r--r-- 1 root root 792 mars 6 04:06 tdbbackup.log-20160306 -rw-r--r-- 1 root root 396 mars 7 04:06 tdbbackup.log-20160307
#9 Updated by Daniel Dehennin about 7 years ago
- Status changed from En cours to Reporté