Whenever the scrubbing process starts for a PG, We used to log
scrub/deep-scrub "starts" message in the cluster log. We are
not seeing scrub "starts" messages anymore. Reintroduce scrub
starts message in order to calculate exact time taken to
scrub/deep-scrub the PG.
Fixes: https://tracker.ceph.com/issues/55798
Signed-off-by: Prashant D <pdhange@redhat.com>
template <typename FormatContext>
auto format(const pg_t& pg, FormatContext& ctx)
{
- return fmt::format_to(ctx.out(), "{}.{}", pg.pool(), pg.m_seed);
+ return fmt::format_to(ctx.out(), "{}.{:x}", pg.pool(), pg.m_seed);
}
};
void PgScrubber::set_scrub_begin_time()
{
scrub_begin_stamp = ceph_clock_now();
+ m_osds->clog->debug() << fmt::format(
+ "{} {} starts",
+ m_pg->info.pgid.pgid,
+ m_mode_desc);
}
void PgScrubber::set_scrub_duration()