ZoneO-trucs pour Mandriva Linux

Faites tourner vos logs!

Les fichiers du dossier /var/log/ atteignent un taille colossale et remplissent mon disque! Comment qu'on fait?

 
 

Voilà une expérience vécue... J'avais l'impression bizarre que mon disque se remplissait à vitesse grand V ces derniers mois, mais sans pouvoir en identifier la source. Un jour, j'ai trouvé, le dossier /var/log/ avait plus d'un gigaoctet de données: les fichiers log n'avaient pas été remplacés depuis des mois.

Pour ceux qui ne seraient pas au courant, un système unix, et donc linux, garde en mémoire tout ce qui arrive au système (connections depuis l'extérieur, montage de disques, synchronisations...) dans ce répertoire. Si un jour vous vous sentez attaqués, c'est dans ce dossier qu'il faut chercher pour savoir ce qui est arrivé à votre système récemment. Le problème, c'est que ces fichier peuvent devenir particulièrement volumineux, il faut donc les faire tourner pour pouvoir se débarrasser des informations qui ne sont plus importantes.

Il y a un utilitaire pour ça: logrotate. Mais dans mon cas, il ne fonctionnait plus. J'ai donc essayé de le faire tourner manuellement, et j'ai eu le message suivant:

error: error accessing /var/log/httpd: No such file or directory
error: apache:1 glob failed for /var/log/httpd/*log
Et je me suis souvenu avoir installé un serveur web pour un moment, sans faire le nettoyage après coup...

Enfin, je me suis dirigé vers ma fenêtre de contrôle, j'ai retiré tous les RPM correspondants à Apache et mon problème s'est réglé.

De plus, si votre ordinateur ne tourne pas en permanence, la commande logrotate ne se mettra pas en route toute seule car elle est programmé pour tourner au milieu de la nuit... Il faut installer le package anacron, elle sera alors activée comme il faut.

09/2003
Edité et reformaté 12/2005
 

ConcordWatches, 12 août 2010

Specializing in <a href="http://www.replicawatchesmart.com/"><stron...[/link]">Swiss Replica Watches</a>, <a href="http://www.replicawatchesmart.com/">Cheap Wat...[/link]">Wholesale Watches</a>, <a href="http://www.replicawatchesmart.com/rolex-watches-c-32.html[/l..."><strong>A.Dunhill Watches</strong></a>, <a href="http://www.replicawatchesmart.com/alangesohne-watches-c-180....">A.Lange&Sohne Watches</a>, <a href="http://www.replicawatchesmart.com/alain-silberstein-watches-...">Alain Silberstein Watches</a>, <a href="http://www.replicawatchesmart.com/audemars-piguet-watches-c-...">Audemars Piguet Watches</a>, <a href="http://www.replicawatchesmart.com/brm-watches-c-151.html[/li...">Baume & Mercier Watches</a>, <a href="http://www.replicawatchesmart.com/bellross-watches-c-36.html...">Bell&Ross Watches</a>, <a href="http://www.replicawatchesmart.com/blancpain-watches-c-183.ht...">Blancpain Watches</a>, <a href="http://www.replicawatchesmart.com/bmw-watches-c-31.html[/lin...">Breguet Watches</a>, <a href="http://www.replicawatchesmart.com/breitling-watches-c-28.htm...">Breitling Watches</a>, <a href="http://www.replicawatchesmart.com/index.php?main_page=news_a...">Replica Watches</a>, <a href="http://www.replicawatchesmart.com/burberry-watches-c-86.html...">Burberry Watches</a>, <a href="http://www.replicawatchesmart.com/bvlgari-watches-c-76.html[...">Calvin Klein Watches</a>, <a href="http://www.replicawatchesmart.com/carl-f-bucherer-watches-c-...">Carl F. Bucherer Watches</a>, <a href="http://www.replicawatchesmart.com/cartier-watches-c-90.html[...">Chanel Watches</a>, <a href="http://www.replicawatchesmart.com/chopard-watches-c-71.html[...">Christian Dior Watches</a>, <a href="http://www.replicawatchesmart.com/chronoswiss-watches-c-190....">Chronoswiss Watches</a>, <a href="http://www.replicawatchesmart.com/concord-watches-c-156.html...">Concord Watches</a>, <a href="http://www.replicawatchesmart.com/corum-watches-c-100.html[/...">D&G Watches</a>, <a href="http://www.replicawatchesmart.com/de-witt-watches-c-127.html...">De Witt Watches</a>, <a href="http://www.replicawatchesmart.com/esprit-watches-c-218.html[...">Ebel Watches</a>, <a href="http://www.replicawatchesmart.com/emporio-armani-watches-c-1...">Emporio Armani Watches</a>, <a href="http://www.replicawatchesmart.com/fendi-watches-c-157.html[/...">Ferrari Watches</a>, are given the correct care and treatment. <a href="http://www.replicawatchesmart.com/fossil-watches-c-225.html[...">Franck Muller Watches</a>, <a href="http://www.replicawatchesmart.com/girard-perregaux-watches-c...">Girard Perregaux Watches</a>, <a href="http://www.replicawatchesmart.com/glashutte-watches-c-158.ht...">Glashutte Watches</a>, <a href="http://www.replicawatchesmart.com/graham-watches-c-16.html[/...">Gucci Watches</a>, <a href="http://www.replicawatchesmart.com/guess-watches-c-17.html[/l...">Hamilton Watches</a>, <a href="http://www.replicawatchesmart.com/harry-winston-watches-c-16...">Harry Winston Watches</a>, <a href="http://www.replicawatchesmart.com/hermes-watches-c-18.html"><strong>Hermes Watches</strong></a>, For a long period of time she had been demanding one of those expensive watches that she had seen in an exclusive showroom.

Ajouter un commentaire

Nom:
Email ou URL: (optionel)
Security code
Code ci-dessus:
 
 
© ZoneO-soft - Contactez nous - Page d'accueil