After I use logrot.pl to rotate and backup log file, the size of the log file is reduced, and the backup zip file is in the backup folder. All these look good.
But, after a while, when I check the size of that log file, it goes back to the size before I use logrot. I open the log file and find it is all blank (I think the content has been erased and backup by logrot). How does this happen and any suggestion?
The symptoms you have described are very similar to CSCsb44847: Logrot cannot rotate ani.log
Granted in your case it is happening for a number of files, however I believe the reason is the same.
Notice the Symptom from the Release-note:
"After running logrot on ani.log, the file will go to zero bytes in size. However, the next time the file is written to, its size will jump back to the original size, and there will be spaces or NUL bytes in the beginning of the file."
The work-around as you probably figured:
"Perform an offline logrot rotation with ``logrot -o''. This will shutdown dmgtd prior to logfile rotation."
This is actually a pretty cool feature, i didn't even know it existed until I was looking for a solution to advertise a subnet (prefix in BGP talk), only if a certain condition existed. This is exactly what conditional advertisements does
j ai une question j ai achete un routeur cisco 887VA-k9 , je le configuré avec la configuration ci- dessous
si je le lier avec mon pc portable sur l un de ses ports directement ça marche toute est bien ( la connexion internet + m...
Attached policy provides CLI access to the Cisco 4G router over text messaging. Two files are in the attached .tar file:
2. PDF with instructions on how to load and use the .tcl file.