Thanks Andy ... I agree built-in log rotation is a better solution. We wiped logrotate.d/xrootd on all our recent installs ... but I have one proxy instance (running 4.2) that still has it on, will try to investigate what's happening. Matevz On 05/14/15 13:32, Andrew Hanushevsky wrote: > We had a similar problem in CERN. Log files were not being rotated at all. This > was fixed by changing some setting in logrotate. Could you run the logrotate > script in test mode to see what is wrong? There seems to be an unintended > conflict of something the script does versus what logrotate wants to do. Mind > you, you will never get log rotation at the time you start logrotate if you are > rotating almost anything else. A big annoyance because then you don't know which > log file you should look at if a problem occurs around the time logrotate is > supposed to run. Frankly, other than lack of compression (and easy thing to add > via a cron job) the xrootd internal log file rotation is superior simply because > it's predictable. > > Andy > > -----Original Message----- From: Matevz Tadel > Sent: Thursday, May 14, 2015 12:02 PM > To: Andrew Hanushevsky ; Tommaso Boccali ; [log in to unmask] > Subject: Re: xrootd 4.1.1 logrotate problem? > > Hi, > > Has this been understood now? I'm asking because OSG (and probably epel) is > shipping xrootd with -k fifo and logrotate on and this leads to logs being lost > (it seems like xrootd still does rotation at midnight and then logrotate kicks > in at 4am and moves the log away ... so this 4-hour interval is all that is left > of the logs for each day). > > Matevz > > On 03/12/15 12:43, Andrew Hanushevsky wrote: >> Hi Tommaso, >> Yes, we have seen this problem at other sites that have moved to 4.1.1 and we >> don’t understand it yet. The current solution is to revert to internal log >> rotation. To do that a) remove the xrootd file from /etc/logrotate.d, and b) >> change the “-k” command line option for starting xrootd/cmsd (in >> /etc/sysconfig/xrootd) by changing “-k fifo” to “-k 7”. >> Andy >> *From:* Tommaso Boccali <mailto:[log in to unmask]> >> *Sent:* Thursday, March 12, 2015 1:00 AM >> *To:* [log in to unmask] <mailto:[log in to unmask]> >> *Subject:* xrootd 4.1.1 logrotate problem? >> Ciao, we installed in pisa xrootd 4.1.1 (see *) >> and since then we basically miss xrootd.log and cmsd.log >> we just have the rotated version (**) >> a restart helps, they appear for the day but disappear at the next logrotate. >> any idea? >> logrotate setting for xroot was NOT changed by us (***) >> *: >> [root@stormgf1 ~]# rpm -qa|grep xrootd >> xrootd-client-libs-4.1.1-1.slc6.x86_64 >> xrootd-server-4.1.1-1.slc6.x86_64 >> xrootd-selinux-4.1.1-1.slc6.noarch >> xrootd-server-libs-4.1.1-1.slc6.x86_64 >> xrootd-cmstfc-1.4.3-3.osg.el6.x86_64 >> xrootd-4.1.1-1.slc6.x86_64 >> xrootd-libs-4.1.1-1.slc6.x86_64 >> xrootd-client-compat-4.1.1-1.slc6.x86_64 >> **: >> [root@xrootd xrootd]# pwd >> /var/log/xrootd >> [root@xrootd xrootd]# ls -ltr|tail >> -rw-r--r-- 1 xrootd xrootd 307507949 Mar 9 23:59 xrootd.log.20150309 >> -rw-r--r-- 1 xrootd xrootd 154876864 Mar 9 23:59 cmsd.log.20150309 >> -rw-r--r-- 1 xrootd xrootd 1267488 Mar 10 04:02 cmsd.log.3.gz >> -rw-r--r-- 1 xrootd xrootd 3607781 Mar 10 04:02 xrootd.log.3.gz >> -rw-r--r-- 1 xrootd xrootd 2738449 Mar 11 04:02 cmsd.log.2.gz >> -rw-r--r-- 1 xrootd xrootd 7412756 Mar 11 04:02 xrootd.log.2.gz >> drwxr-xr-x 2 xrootd xrootd 4096 Mar 12 04:02 cmsfr >> drwxr-xr-x 2 xrootd xrootd 4096 Mar 12 04:02 cmsit >> -rw-r--r-- 1 xrootd xrootd 3793752 Mar 12 04:02 cmsd.log.1.gz >> -rw-r--r-- 1 xrootd xrootd 22607515 Mar 12 04:02 xrootd.log.1.gz >> ***: >> [root@xrootd logrotate.d]# cat xrootd >> /var/log/xrootd/*/*.log /var/log/xrootd/*.log >> { >> missingok >> nomail >> nocreate >> rotate 100 >> notifempty >> daily >> compress >> postrotate >> PIPE=`dirname $1`/.`basename $1` >> if [ -p $PIPE ]; then >> /usr/bin/expect -c "set timeout 2; spawn /bin/sh -c \"echo ping > >> $PIPE\"; expect timeout { exit 1 } eof { exit 0 }"; >> fi >> endscript >> } >> -- >> Tommaso Boccali >> INFN Pisa >> >> -------------------------------------------------------------------------------- >> >> Use REPLY-ALL to reply to list >> >> To unsubscribe from the XROOTD-L list, click the following link: >> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1 >> >> >> -------------------------------------------------------------------------------- >> >> Use REPLY-ALL to reply to list >> >> To unsubscribe from the XROOTD-L list, click the following link: >> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1 >> > > ######################################################################## Use REPLY-ALL to reply to list To unsubscribe from the XROOTD-L list, click the following link: https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1