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: [log in to unmask] href="mailto:[log in to unmask]">Tommaso Boccali
Sent: Thursday, March 12, 2015 1:00 AM
To: [log in to unmask] href="mailto:[log in to unmask]">[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