* how to debug librados/librbd in logfile
@ 2016-01-28 14:33 huang jun
2016-01-28 14:41 ` Wido den Hollander
0 siblings, 1 reply; 5+ messages in thread
From: huang jun @ 2016-01-28 14:33 UTC (permalink / raw)
To: ceph-devel
hi,all
I want to get debug log when using librados/librbd,
set client section in ceph.conf:
[client]
debug_rbd = 20
debug_objecter = 20
log_file = /var/log/ceph/ceph.rbd.log
that not work, file "/var/log/ceph/ceph.rbd.log" does not exist at all.
Any ideas?
--
thanks
huangjun
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to debug librados/librbd in logfile
2016-01-28 14:33 how to debug librados/librbd in logfile huang jun
@ 2016-01-28 14:41 ` Wido den Hollander
2016-01-28 14:45 ` huang jun
0 siblings, 1 reply; 5+ messages in thread
From: Wido den Hollander @ 2016-01-28 14:41 UTC (permalink / raw)
To: huang jun, ceph-devel
On 28-01-16 15:33, huang jun wrote:
> hi,all
> I want to get debug log when using librados/librbd,
> set client section in ceph.conf:
> [client]
> debug_rbd = 20
> debug_objecter = 20
> log_file = /var/log/ceph/ceph.rbd.log
>
> that not work, file "/var/log/ceph/ceph.rbd.log" does not exist at all.
> Any ideas?
>
Does the user under which you run the client have access to /var/log/ceph?
You might want to try /tmp for a test.
Wido
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to debug librados/librbd in logfile
2016-01-28 14:41 ` Wido den Hollander
@ 2016-01-28 14:45 ` huang jun
2016-01-28 14:50 ` Haomai Wang
0 siblings, 1 reply; 5+ messages in thread
From: huang jun @ 2016-01-28 14:45 UTC (permalink / raw)
To: Wido den Hollander; +Cc: ceph-devel
we run ceph version 0.94.5, and use the root.
The use case is tgt + librbd,
i want to record all operations used by tgt during format, write, read, delete.
2016-01-28 22:41 GMT+08:00 Wido den Hollander <wido@42on.com>:
>
>
> On 28-01-16 15:33, huang jun wrote:
>> hi,all
>> I want to get debug log when using librados/librbd,
>> set client section in ceph.conf:
>> [client]
>> debug_rbd = 20
>> debug_objecter = 20
>> log_file = /var/log/ceph/ceph.rbd.log
>>
>> that not work, file "/var/log/ceph/ceph.rbd.log" does not exist at all.
>> Any ideas?
>>
>
> Does the user under which you run the client have access to /var/log/ceph?
>
> You might want to try /tmp for a test.
>
> Wido
--
thanks
huangjun
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to debug librados/librbd in logfile
2016-01-28 14:45 ` huang jun
@ 2016-01-28 14:50 ` Haomai Wang
2016-01-28 15:06 ` huang jun
0 siblings, 1 reply; 5+ messages in thread
From: Haomai Wang @ 2016-01-28 14:50 UTC (permalink / raw)
To: huang jun; +Cc: Wido den Hollander, ceph-devel
On Thu, Jan 28, 2016 at 10:45 PM, huang jun <hjwsm1989@gmail.com> wrote:
> we run ceph version 0.94.5, and use the root.
> The use case is tgt + librbd,
> i want to record all operations used by tgt during format, write, read, delete.
actually you can use lttng + rbd-replay to get it
>
>
> 2016-01-28 22:41 GMT+08:00 Wido den Hollander <wido@42on.com>:
>>
>>
>> On 28-01-16 15:33, huang jun wrote:
>>> hi,all
>>> I want to get debug log when using librados/librbd,
>>> set client section in ceph.conf:
>>> [client]
>>> debug_rbd = 20
>>> debug_objecter = 20
>>> log_file = /var/log/ceph/ceph.rbd.log
>>>
>>> that not work, file "/var/log/ceph/ceph.rbd.log" does not exist at all.
>>> Any ideas?
>>>
>>
>> Does the user under which you run the client have access to /var/log/ceph?
>>
>> You might want to try /tmp for a test.
>>
>> Wido
>
>
>
> --
> thanks
> huangjun
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to debug librados/librbd in logfile
2016-01-28 14:50 ` Haomai Wang
@ 2016-01-28 15:06 ` huang jun
0 siblings, 0 replies; 5+ messages in thread
From: huang jun @ 2016-01-28 15:06 UTC (permalink / raw)
To: Haomai Wang; +Cc: Wido den Hollander, ceph-devel
thanks, lttng should be a good option, i'll try it.
2016-01-28 22:50 GMT+08:00 Haomai Wang <haomai@xsky.com>:
> On Thu, Jan 28, 2016 at 10:45 PM, huang jun <hjwsm1989@gmail.com> wrote:
>> we run ceph version 0.94.5, and use the root.
>> The use case is tgt + librbd,
>> i want to record all operations used by tgt during format, write, read, delete.
>
> actually you can use lttng + rbd-replay to get it
>
>>
>>
>> 2016-01-28 22:41 GMT+08:00 Wido den Hollander <wido@42on.com>:
>>>
>>>
>>> On 28-01-16 15:33, huang jun wrote:
>>>> hi,all
>>>> I want to get debug log when using librados/librbd,
>>>> set client section in ceph.conf:
>>>> [client]
>>>> debug_rbd = 20
>>>> debug_objecter = 20
>>>> log_file = /var/log/ceph/ceph.rbd.log
>>>>
>>>> that not work, file "/var/log/ceph/ceph.rbd.log" does not exist at all.
>>>> Any ideas?
>>>>
>>>
>>> Does the user under which you run the client have access to /var/log/ceph?
>>>
>>> You might want to try /tmp for a test.
>>>
>>> Wido
>>
>>
>>
>> --
>> thanks
>> huangjun
>> --
>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
thanks
huangjun
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-01-28 15:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-28 14:33 how to debug librados/librbd in logfile huang jun
2016-01-28 14:41 ` Wido den Hollander
2016-01-28 14:45 ` huang jun
2016-01-28 14:50 ` Haomai Wang
2016-01-28 15:06 ` huang jun
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.