O'Reilly logo

Learning Ceph - Second Edition by Karan Singh, Vaibhav Bhembre, Anthony D'Atri

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Logs

Ceph performs extensive logging. In Chapter 4, Planning your the Deployment, we discussed the need to provision ample drive space to accommodate spikes in log volume and to allow healthy retention intervals. In Chapter 8, Ceph Architecture: Under the Hood we will explore the severity levels of Ceph's log messages.

Ceph can be configured to log directly through the central syslog or rsyslog service, but by default it writes to local files. These are managed by the stock Linux logrotate facility. Here's the default rotation stanza that the Ceph Jewel release installs.

# cat /etc/logrotate.d/ceph.logrotate
/var/log/ceph/*.log {
    rotate 7
    daily
    compress
    sharedscripts
    postrotate
 killall -q -1 ceph-mon ceph-mds ceph-osd ceph-fuse radosgw ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required