【Ceph】Ceph 进阶系列(一):Ceph日志和调试[new]

目录

即看即用

1 运行时

2 启动时

3 加速日志更迭

4 子系统、日志和调试设置

详细说明


即看即用

1 运行时

查看配置

运行时执行下列命令,用 osd 、 mon 或 mds 替代 {daemon-type}:

ceph daemon {daemon-name} config show | less
例如: 

ceph daemon osd.0 config show | less

激活 Ceph 的调试输出(dout() )

ceph  tell 命令把参数注入运行时配置:

    ceph tell {daemon-type}.{daemon id or *} injectargs --{name} {value} [--{name} {value}]


用 osd 、 mon 或 mds 替代 {daemon-type} 。 *  同类型的所有守护进程,id:指定具体守护进程。例如:

    ceph tell osd.0 injectargs --debug-osd 0/5


ceph tell 命令会通过 monitor 起作用。如果你不能绑定 monitor,仍可以登录你要改的那台主机然后用 ceph daemon 来更改。例如:

    sudo ceph daemon osd.0 config set debug_osd 0/5

2 启动时

激活 Ceph 的调试输出(dout() )

把选项加入配置文件, [global] 段:各进程共有, [mon] 、 [osd] 、 [mds] :某类进程的配置。例如:

[global]
            debug ms = 1/5
 
    [mon]
            debug mon = 20
            debug paxos = 1/5
            debug auth = 2
 
    [osd]
            debug osd = 1/5
            debug filestore = 1/5
            debug journal = 1
            debug monc = 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值