Daniel,

on CentOS the logrotate script was not invoked incorrectly because it was called everywhere as "radosgw":

e.g.
 service radosgw reload >/dev/null or
 initctl reload radosgw cluster="$cluster" id="$id" 2>/dev/null || :

but there isn't any radosgw service!

I had to change it into "ceph-radosgw" to make it worker properly!

Since you are using APT I guess that you are on Ubuntu/Debian but you may experience a relevant issue.

I was going to submit a bug for CentOS but had forgot it for some time now! I think now it's the time...Anyone has a different opinion on that?


Regards,


G.



On 2015-03-02 18:17:00 +0000, Gregory Farnum said:

I'm not very (well, at all, for rgw) familiar with these scripts, but
how are you starting up your RGW daemon? There's some way to have
Apache handle the process instead of Upstart, but Yehuda says "you
don't want to do it".
-Greg

Well, we installed the packages via APT. That places the upstart
scripts into /etc/init. Nothing special. That will make Upstart
launch them in boot.

In the meantime I just placed

   /var/log/radosgw/*.log {
       rotate 7
       daily
       compress
       sharedscripts
       postrotate
start-stop-daemon --stop --signal HUP -x /usr/bin/radosgw --oknodo
       endscript
       missingok
       notifempty
   }

into the logrotate script, removing the more complicated (and not working :))
logic with the core piece from the regular init.d script.

Because the daemons were already running and using an already deleted script, logrotate wouldn't see the need to rotate the (visible) ones, because they had not changed. So I needed to manually execute the above start-stop-daemon on all relevant nodes ones to force the gateway to start a new, non-deleted
logfile.

Daniel


_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to