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
Resolves: rhbz#
2094955
Signed-off-by: Prashant D <pdhange@redhat.com>
(cherry picked from commit
2f6272ac8546070cbc78447c558db47dbdff113c)
return fmt::format_to(ctx.out(), ")");
}
};
+
+template <>
+struct fmt::formatter<pg_t> {
+ constexpr auto parse(format_parse_context& ctx) { return ctx.begin(); }
+
+ template <typename FormatContext>
+ auto format(const pg_t& pg, FormatContext& ctx)
+ {
+ 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()