It was attempted to mark bdev label locations as taken before adding bluefs allocation on main.
This in turn caused collision when bluefs finally tried to mark regions.
Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
(cherry picked from commit
9ab22a84ccd7dc9348ea317928878e19ff4921f2)
}
}
}
- if (bdev_label_multi) {
- _main_bdev_label_try_reserve();
- }
dout(1) << __func__
<< " loaded " << byte_u_t(bytes) << " in " << num << " extents"
<< std::hex
_post_init_alloc(zone_adjustments);
}
+ if (bdev_label_multi) {
+ _main_bdev_label_try_reserve();
+ }
+
// when function is called in repair mode (to_repair=true) we skip db->open()/create()
// we can't change bluestore allocation so no need to invlidate allocation-file
if (fm->is_null_manager() && !read_only && !to_repair) {