Why ceph don't write logs to file after setting `log_to_file= true` ? Ownership of ceph log files is root:root, not ceph:ceph

Solution Verified - Updated -

Issue

  • Why osd and mgr logs are empty under /var/log/ceph/ directory
  • Ownership of ceph log files is root:root, not ceph:ceph:
# ls -l /var/log/ceph
-rw-r--r-- 1 root root         0 Jan 11 15:47 ceph-osd.1.log
-rw-r--r-- 1 root root         0 Jan 11 15:48 ceph-osd.2.log
-rw-r--r-- 1 root root         0 Jan 11 15:48 ceph-osd.3.log

Environment

Red Hat Ceph Storage 4.1z2 - 4.2async
14.2.8-111
14.2.8-115
14.2.11-95
14.2.11-139

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content