public inbox for linux-raid@vger.kernel.org
 help / color / mirror / Atom feed
* simple question: where is internal bitmap stored?
@ 2009-05-13  8:37 Eyal Lebedinsky
  2009-05-13 10:42 ` Neil Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Eyal Lebedinsky @ 2009-05-13  8:37 UTC (permalink / raw)
  To: linux-raid

If I have a live raid and want to enable bitmap then I do
	mdadm --grow /dev/md0 --bitmap=internal
Does this bitmap use space in the already present header? If so then
does this mean that the headers have enough reserve for this? Why
not always use the bitmap then?

If it carves extra space from the device which already has data
(e.g. a fs) then surely this will be problematic.

-- 
Eyal Lebedinsky	(eyal@eyal.emu.id.au)

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

* Re: simple question: where is internal bitmap stored?
  2009-05-13  8:37 simple question: where is internal bitmap stored? Eyal Lebedinsky
@ 2009-05-13 10:42 ` Neil Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Neil Brown @ 2009-05-13 10:42 UTC (permalink / raw)
  To: Eyal Lebedinsky; +Cc: linux-raid

On Wednesday May 13, eyal@eyal.emu.id.au wrote:
> If I have a live raid and want to enable bitmap then I do
> 	mdadm --grow /dev/md0 --bitmap=internal
> Does this bitmap use space in the already present header? If so then
> does this mean that the headers have enough reserve for this? Why
> not always use the bitmap then?

1/ Yes.
2/ Yes.
3/ because there are other reasons for not wanting a bitmap.
   Using a write-intent bitmap can cause a reduction in throughput.

   It is conceivable that having a bitmap should be the default, but
   it should definitely be options.

   In fact, ever array does has a default bitmap.  However that bitmap
   contains exactly one bit, and it cover the whole array.  It is the
   clean/active flag.  Defaulting to a few more bits is possibly a
   good idea...
> 
> If it carves extra space from the device which already has data
> (e.g. a fs) then surely this will be problematic.

Yes.  It surely would be.

NeilBrown

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

end of thread, other threads:[~2009-05-13 10:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-13  8:37 simple question: where is internal bitmap stored? Eyal Lebedinsky
2009-05-13 10:42 ` Neil Brown

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