public inbox for linux-raid@vger.kernel.org
 help / color / mirror / Atom feed
* "bitmap" line in /proc/mdstat
@ 2016-10-14 10:06 Ramon Hofer
  2016-10-14 11:53 ` Phil Turmel
  0 siblings, 1 reply; 11+ messages in thread
From: Ramon Hofer @ 2016-10-14 10:06 UTC (permalink / raw)
  To: linux-raid

Hi all

When I have added a new RAID5 yesterday I saw that it has an additional 
line (bitmap: 0/30 pages [0KB], 65536KB chunk) in /proc/mdstat for md5 
in contrast to md[1234] not having this line:

# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4] [linear]
md5 : active raid5 sdt[4] sds[2] sdr[1] sdi[0]
       11720662272 blocks super 1.2 level 5, 128k chunk, algorithm 2 
[4/4] [UUUU]
       bitmap: 0/30 pages [0KB], 65536KB chunk

md0 : active linear md5[4] md1[0] md4[3] md3[2] md2[1]
       33697299328 blocks super 1.2 0k rounding

md4 : active raid5 sdj[5] sdm[4] sdl[2] sdk[1]
       5860149888 blocks super 1.2 level 5, 128k chunk, algorithm 2 
[4/4] [UUUU]

md3 : active raid5 sdn[0] sdq[4] sdp[2] sdo[1]
       5860540032 blocks super 1.2 level 5, 128k chunk, algorithm 2 
[4/4] [UUUU]

md2 : active raid5 sde[0] sdh[4] sdg[2] sdf[1]
       4395412224 blocks super 1.2 level 5, 128k chunk, algorithm 2 
[4/4] [UUUU]

md1 : active raid5 sda[0] sdd[3] sdc[2] sdb[1]
       5860540032 blocks super 1.2 level 5, 128k chunk, algorithm 2 
[4/4] [UUUU]

unused devices: <none>


What I did yesterday was the following:

# mdadm -C /dev/md5 -c 128 -n4 -l5 /dev/sd[irst]

# mdadm --grow /dev/md0 --add /dev/md5

# xfs_growfs /mnt/media-raid


 From what I was reading [1,2] it is useful for faster rebuilds.
But why is it not present for md[1234] as I used the same command to 
create these RAIDs?
Is it only possible for the last of the linear devices, or is it only 
used for almost empty devices, or was the bitmap introduced in a recent 
update?
I wonder if I should and could add a bitmap for the other devices as well?


Best regards,
Ramon


[1] https://raid.wiki.kernel.org/index.php/Write-intent_bitmap
[2] https://raid.wiki.kernel.org/index.php/Mdstat#bitmap_line

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

end of thread, other threads:[~2016-10-14 17:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-14 10:06 "bitmap" line in /proc/mdstat Ramon Hofer
2016-10-14 11:53 ` Phil Turmel
2016-10-14 12:32   ` Ramon Hofer
2016-10-14 13:59     ` Ramon Hofer
2016-10-14 14:10       ` Andreas Klauer
2016-10-14 14:23         ` Ramon Hofer
2016-10-14 16:08   ` Peter Sangas
2016-10-14 16:29     ` Ramon Hofer
2016-10-14 17:32       ` Peter Sangas
2016-10-14 17:38         ` Ramon Hofer
2016-10-14 17:43         ` Andreas Klauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox