linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bblog overlap internal bitmap?
@ 2023-09-21  3:20 Stan Liao
  2023-09-21 12:53 ` Xiao Ni
  0 siblings, 1 reply; 4+ messages in thread
From: Stan Liao @ 2023-09-21  3:20 UTC (permalink / raw)
  To: linux-raid@vger.kernel.org

Hi,
A md-raid (level 1) is created with 5 nvme drives and the metadata version is specified as 1.2. The following command is used.
sudo mdadm --create /dev/md0 --level=1 --raid-devices=5 /dev/nvme{1,2,3,4}n1 /dev/nvme4n2 --metadata=1.2
The capacities of nvme{1,2,3,4}n1 and nvme4n2 are 3.2TB, 1.92TB, 3.2TB, 512GB, and 512GB.
OS: 20.04.1-Ubuntu
mdadm version: v4.1 - 2018-10-01
After creation, we found that the size of the bitmap_super_t and internal bitmap is 16KB (this is concluded by observing FF value is filled from around byte offset 0x100 of LBA 0x10 to byte offset 0x1FF of LBA 0x1F), but the mdp_superblock_1.bblog_offset value is 0x10. As a result, the mdp_superblock_1 occupies LBA 0x08 ~ 0x0F; bitmap_super_t and internal bitmap occupy LBA 0x10 ~ 0x20; bblog occupies LBA 0x18 ~ 0x20.
If bblog and bitmap do overlap, I would like to know the size value used to calculate bitmap size and bblog_offset. The size value used to calculate bitmap size and bblog_offset is mdp_superblock_1.size or mdp_superblock_1.data_size? Thanks a lot.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-09-24  2:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-21  3:20 bblog overlap internal bitmap? Stan Liao
2023-09-21 12:53 ` Xiao Ni
2023-09-22  2:35   ` Stan Liao
2023-09-24  2:56     ` Xiao Ni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).