RBDLogConfig

RBD客户端的日志介绍

有时候需要查看rbd client端的log信息,这时候就需要在rbd client端配置ceph.conf文件。

配置

配置rbd客户端的日志以及debug

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[client]
rbd cache = true
rbd cache size = 67108864
rbd cache max dirty = 33554432
rbd cache max dirty age = 5
rbd cache writethrough until flush = true

rbd_default_order = 25
rbd_default_stripe_unit = 4194304
rbd_default_stripe_count = 8

admin_socket = /var/run/ceph/ceph-client/rbd.asok
debug_rbd = 20
debug_client = 20/20
debug_objectcacher = 20
log_file = /var/run/ceph/ceph-client/rbd.log

其中admin_socket为ceph集群的socket配置
debug_rbd是rbd客户端的日志等级
log_file为日志的保存路径