Project

General

Profile

Backport #12350

Updated by Loïc Dachary about 8 years ago

https://github.com/ceph/ceph/pull/7110 OS: Ubuntu 14.04 
 Ceph: Hammer 0.94.2 

 Increasing the debug output of ceph-fuse results in large log files in /var/log/ceph. 

 The logrotate setup handles the usual ceph daemon correctly (mon, osd, mds), but in case of ceph-fuse the postrotate entry does not handle a ceph-fuse mountpoint at all. Since logrotate moves and compresses the log file, you end up with a stale open fd and the (now invisible) log file starts to consume disk space... 

 Proposed solution: 
 - make ceph-fuse reopen its logfile on SIGHUP (or similar notification mechanism) 
 - in case of a processed ceph-fuse logfile (ceph-client.XYZ.log) notify ceph-fuse after log rotation 

Back