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
Demandes liées
Révisions associées
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
Historique
#1 Mis à jour par Gérald Schwartzmann il y a environ 8 ans
- Sujet changé de Samba : erreur logrotate à Erreur logrotate : les fichiers de log des services smbd & nmbd ne se termine pas par .log
#2 Mis à jour par Daniel Dehennin il y a environ 8 ans
- Temps estimé mis à 2.00 h
- Tâche parente mis à #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 Mis à jour par Klaas TJEBBES il y a environ 8 ans
- Assigné à mis à Klaas TJEBBES
- Restant à faire (heures) mis à 2.0
#4 Mis à jour par Klaas TJEBBES il y a environ 8 ans
- Statut changé de Nouveau à En cours
#5 Mis à jour par Klaas TJEBBES il y a environ 8 ans
- Statut changé de En cours à Résolu
#6 Mis à jour par Lionel Morin il y a environ 8 ans
- Description mis à jour (diff)
#7 Mis à jour par Scrum Master il y a environ 8 ans
- % réalisé changé de 0 à 100
#8 Mis à jour par Daniel Dehennin il y a environ 8 ans
- Statut changé de Résolu à En cours
- % réalisé changé de 100 à 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 Mis à jour par Daniel Dehennin il y a environ 8 ans
- Statut changé de En cours à Reporté