https://tracker.ceph.com/https://tracker.ceph.com/favicon.ico2015-07-28T13:42:03ZCeph CephFS - Backport #12350: Provided logrotate setup does not handle ceph-fuse correctlyhttps://tracker.ceph.com/issues/12350?journal_id=557122015-07-28T13:42:03ZGreg Farnumgfarnum@redhat.com
<ul><li><strong>Priority</strong> changed from <i>Normal</i> to <i>High</i></li><li><strong>Tags</strong> set to <i>new_dev</i></li></ul> CephFS - Backport #12350: Provided logrotate setup does not handle ceph-fuse correctlyhttps://tracker.ceph.com/issues/12350?journal_id=569742015-08-25T13:50:44ZGreg Farnumgfarnum@redhat.com
<ul><li><strong>Assignee</strong> set to <i>Greg Farnum</i></li></ul> CephFS - Backport #12350: Provided logrotate setup does not handle ceph-fuse correctlyhttps://tracker.ceph.com/issues/12350?journal_id=635722016-01-05T09:55:18ZZhi Zhangzhangz.david@outlook.com
<ul></ul><p>Hi Greg,</p>
<p>Since our production cluster is also encountered same issue recently, we provide following fix. I describe more details in PR. Could you pls take a look? Thanks.</p>
<p><a class="external" href="https://github.com/ceph/ceph/pull/7110">https://github.com/ceph/ceph/pull/7110</a></p> CephFS - Backport #12350: Provided logrotate setup does not handle ceph-fuse correctlyhttps://tracker.ceph.com/issues/12350?journal_id=639402016-01-12T14:37:50ZGreg Farnumgfarnum@redhat.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Fix Under Review</i></li></ul> CephFS - Backport #12350: Provided logrotate setup does not handle ceph-fuse correctlyhttps://tracker.ceph.com/issues/12350?journal_id=640462016-01-13T08:35:30ZLoïc Dacharyloic@dachary.org
<ul><li><strong>Tracker</strong> changed from <i>Bug</i> to <i>Backport</i></li></ul> CephFS - Backport #12350: Provided logrotate setup does not handle ceph-fuse correctlyhttps://tracker.ceph.com/issues/12350?journal_id=640832016-01-13T18:30:18ZGreg Farnumgfarnum@redhat.com
<ul><li><strong>Assignee</strong> deleted (<del><i>Greg Farnum</i></del>)</li></ul> CephFS - Backport #12350: Provided logrotate setup does not handle ceph-fuse correctlyhttps://tracker.ceph.com/issues/12350?journal_id=641112016-01-14T02:39:53ZZhi Zhangzhangz.david@outlook.com
<ul><li><strong>Tracker</strong> changed from <i>Backport</i> to <i>Bug</i></li><li><strong>Category</strong> set to <i>45</i></li><li><strong>Status</strong> changed from <i>Fix Under Review</i> to <i>Pending Backport</i></li><li><strong>% Done</strong> set to <i>0</i></li><li><strong>Backport</strong> set to <i>hammer</i></li></ul> CephFS - Backport #12350: Provided logrotate setup does not handle ceph-fuse correctlyhttps://tracker.ceph.com/issues/12350?journal_id=648542016-01-29T05:15:19ZLoïc Dacharyloic@dachary.org
<ul><li><strong>Tracker</strong> changed from <i>Bug</i> to <i>Backport</i></li><li><strong>Description</strong> updated (<a title="View differences" href="/journals/64854/diff?detail_id=62191">diff</a>)</li><li><strong>Status</strong> changed from <i>Pending Backport</i> to <i>In Progress</i></li><li><strong>Assignee</strong> set to <i>Zhi Zhang</i></li></ul><a name="original-description"></a>
<h3 >original description<a href="#original-description" class="wiki-anchor">¶</a></h3>
<p>(move here because Backport issues only have a link to the PR in the description)</p>
<p>OS: Ubuntu 14.04<br />Ceph: Hammer 0.94.2</p>
<p>Increasing the debug output of ceph-fuse results in large log files in /var/log/ceph.</p>
<p>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...</p>
<p>Proposed solution:<br />- make ceph-fuse reopen its logfile on SIGHUP (or similar notification mechanism)<br />- in case of a processed ceph-fuse logfile (ceph-client.XYZ.log) notify ceph-fuse after log rotation</p> CephFS - Backport #12350: Provided logrotate setup does not handle ceph-fuse correctlyhttps://tracker.ceph.com/issues/12350?journal_id=662442016-02-24T06:05:07ZLoïc Dacharyloic@dachary.org
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Resolved</i></li><li><strong>Target version</strong> set to <i>v0.94.7</i></li></ul>