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