public inbox for linux-raid@vger.kernel.org
 help / color / mirror / Atom feed
From: Ramon Hofer <ramonhofer@bluewin.ch>
To: linux-raid@vger.kernel.org
Subject: "bitmap" line in /proc/mdstat
Date: Fri, 14 Oct 2016 12:06:01 +0200	[thread overview]
Message-ID: <5800AE09.70608@bluewin.ch> (raw)

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

             reply	other threads:[~2016-10-14 10:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-14 10:06 Ramon Hofer [this message]
2016-10-14 11:53 ` "bitmap" line in /proc/mdstat 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5800AE09.70608@bluewin.ch \
    --to=ramonhofer@bluewin.ch \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox