Re: How to open clog debug

2015-12-01 Thread Zhiqiang Wang
Hi Joao,

2015-12-01 22:34 GMT+08:00 Joao Eduardo Luis <j...@suse.de>:
> On 12/01/2015 09:13 AM, Zhiqiang Wang wrote:
>> Looks like in the current code, the clog generated by OSD and MDS are
>> not sent to MON. When the client subscribes to the log monitor, it
>> won't get the OSD and MDS clogs. It only gets those generated by MON.
>
> Most likely, you need to set 'clog_to_monitors' (or unset it if you
> changed it).

When 'clog_to_monitors' is set, we queue the log entry to LogClient.
However, we only send the log to monitor through the loopback
connection when the LogClient itself is MON. For OSD and MDS, we don't
send the logs even if 'clog_to_monitors' is set.

>
>   -Joao
>
>>
>> 2015-11-30 21:24 GMT+08:00 Sage Weil <s...@newdream.net>:
>>> On Mon, 30 Nov 2015, Wukongming wrote:
>>>> Hi, All
>>>>
>>>> Does anyone know how to open clog debug?
>>>
>>> It's usually something like
>>>
>>> monc->clog.debug() << "hi there\n";
>>>
>>> sage
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>>> the body of a message to majord...@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> --
>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>> the body of a message to majord...@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: How to open clog debug

2015-12-01 Thread Zhiqiang Wang
Looks like in the current code, the clog generated by OSD and MDS are
not sent to MON. When the client subscribes to the log monitor, it
won't get the OSD and MDS clogs. It only gets those generated by MON.

2015-11-30 21:24 GMT+08:00 Sage Weil <s...@newdream.net>:
> On Mon, 30 Nov 2015, Wukongming wrote:
>> Hi, All
>>
>>     Does anyone know how to open clog debug?
>
> It's usually something like
>
> monc->clog.debug() << "hi there\n";
>
> sage
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: How to open clog debug

2015-12-01 Thread Joao Eduardo Luis
On 12/01/2015 09:13 AM, Zhiqiang Wang wrote:
> Looks like in the current code, the clog generated by OSD and MDS are
> not sent to MON. When the client subscribes to the log monitor, it
> won't get the OSD and MDS clogs. It only gets those generated by MON.

Most likely, you need to set 'clog_to_monitors' (or unset it if you
changed it).

  -Joao

> 
> 2015-11-30 21:24 GMT+08:00 Sage Weil <s...@newdream.net>:
>> On Mon, 30 Nov 2015, Wukongming wrote:
>>> Hi, All
>>>
>>> Does anyone know how to open clog debug?
>>
>> It's usually something like
>>
>> monc->clog.debug() << "hi there\n";
>>
>> sage
>> --
>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>> the body of a message to majord...@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


How to open clog debug

2015-11-30 Thread Wukongming
Hi, All

Does anyone know how to open clog debug?

-
wukongming ID: 12019
Tel:0571-86760239
Dept:2014 UIS2 OneStor

-
本邮件及其附件含有杭州华三通信技术有限公司的保密信息,仅限于发送给上面地址中列出
的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、
或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本
邮件!
This e-mail and its attachments contain confidential information from H3C, 
which is
intended only for the person or entity whose address is listed above. Any use 
of the
information contained herein in any way (including, but not limited to, total 
or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify 
the sender
by phone or email immediately and delete it!


Does anyone know how to open clog debug?

2015-11-30 Thread Wukongming
Hi, All

Does anyone know how to open clog debug?

-
wukongming ID: 12019
Tel:0571-86760239
Dept:2014 UIS2 OneStor

-
本邮件及其附件含有杭州华三通信技术有限公司的保密信息,仅限于发送给上面地址中列出
的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、
或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本
邮件!
This e-mail and its attachments contain confidential information from H3C, 
which is
intended only for the person or entity whose address is listed above. Any use 
of the
information contained herein in any way (including, but not limited to, total 
or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify 
the sender
by phone or email immediately and delete it!


How to open clog debug?

2015-11-30 Thread Wukongming
Hi, All

Does anyone know how to open clog debug?

Thanks!

 Kongming wu
-
本邮件及其附件含有杭州华三通信技术有限公司的保密信息,仅限于发送给上面地址中列出
的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、
或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本
邮件!
This e-mail and its attachments contain confidential information from H3C, 
which is
intended only for the person or entity whose address is listed above. Any use 
of the
information contained herein in any way (including, but not limited to, total 
or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify 
the sender
by phone or email immediately and delete it!


Re: How to open clog debug

2015-11-30 Thread Sage Weil
On Mon, 30 Nov 2015, Wukongming wrote:
> Hi, All
> 
> Does anyone know how to open clog debug?

It's usually something like

monc->clog.debug() << "hi there\n";

sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html