Hi Cephers,
Is there an easy way to dump a BlueStore internal variable, to be specific, a vector (the
vector contains some debugging data), from linux command line?
The closed thing I can think of is to modify the perf_counters to do that. I’m wondering
is there any easy way to do that?
I also tried to add the dump function in the BlueStore destructor, but the destructor is
always called when the vstart is
invoked, and stop.sh script doesn’t call the destructor.
Please advice.
Thanks,
Yiming
Show replies by date
Hi Yiming,
you can implement custom admin command via AdminSocketHook API and do
whatever you want in the corresponding handler.
See class BlueFS::SocketHook in BlueFS.cc as an example.
Thanks,
Igor
On 2/17/2020 10:50 AM, Yiming Zhang wrote:
> Hi Cephers,
>
> Is there an easy way to dump a BlueStore internal variable, to be specific, a vector
(the vector contains some debugging data), from linux command line?
> The closed thing I can think of is to modify the perf_counters to do that. I’m
wondering is there any easy way to do that?
> I also tried to add the dump function in the BlueStore destructor, but the destructor
is always called when the vstart is
> invoked, and stop.sh script doesn’t call the destructor.
>
> Please advice.
>
> Thanks,
> Yiming
> _______________________________________________
> Dev mailing list -- dev(a)ceph.io
> To unsubscribe send an email to dev-leave(a)ceph.io