2.8. 调整日志记录和调试输出
完成设置过程后,检查日志输出以确保它满足您的需要。如果遇到与配置相关的问题,您可以在 Ceph 配置文件的 [global]
部分中增加日志和调试消息,并重新启动网关,以帮助对所有配置问题进行故障排除。例如:
[global] #append the following in the global section. debug ms = 1 debug civetweb = 20
[global]
#append the following in the global section.
debug ms = 1
debug civetweb = 20
对于 RGW 调试日志,在 Ceph 配置文件的 [client.rgw.{instance}]
部分中添加以下参数:
[client.rgw.rgw1.rgw0] ... debug rgw = 20
[client.rgw.rgw1.rgw0]
...
debug rgw = 20
您还可以在运行时修改这些设置。例如:
ceph tell osd.0 injectargs --debug_civetweb 10/20
# ceph tell osd.0 injectargs --debug_civetweb 10/20
默认情况下,Ceph 日志文件位于 /var/log/ceph
中。
有关日志记录和调试的一般详情,请参见《 红帽 Ceph 存储配置指南》中的 Ceph 调试和日志记录 配置 部分。