From: Adam Kupczyk Date: Tue, 23 Jun 2020 12:45:18 +0000 (+0200) Subject: os/bluestore: Added rescue procedure for bluefs log replay X-Git-Tag: v12.2.14~5^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7f4c1d97bd26ca78751cd28f628370a702ef0157;p=ceph.git os/bluestore: Added rescue procedure for bluefs log replay This is a procedure tries to find on disk unreachable extents and pretend they were already a part of bluefs log. If this gives proper crc, accept it. Fixes: https://tracker.ceph.com/issues/46195 Signed-off-by: Adam Kupczyk --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 57ef5caef53..da5d961dccc 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -995,6 +995,7 @@ OPTION(bluefs_buffered_io, OPT_BOOL) OPTION(bluefs_sync_write, OPT_BOOL) OPTION(bluefs_allocator, OPT_STR) // stupid | bitmap OPTION(bluefs_preextend_wal_files, OPT_BOOL) // this *requires* that rocksdb has recycling enabled +OPTION(bluefs_replay_recovery, OPT_BOOL) OPTION(bluestore_bluefs, OPT_BOOL) OPTION(bluestore_bluefs_env_mirror, OPT_BOOL) // mirror to normal Env for debug diff --git a/src/common/options.cc b/src/common/options.cc index 4f7a076e384..5c982c81e03 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -3378,6 +3378,13 @@ std::vector