From: Tomasz Chmielewski <mangoo@wpkg.org>
To: Justin Piszcz <jpiszcz@lucidpixels.com>
Cc: Linux-Raid <linux-raid@vger.kernel.org>
Subject: Re: recovery starts from 0 after reboot - normal?
Date: Mon, 27 Aug 2007 15:39:42 +0200 [thread overview]
Message-ID: <46D2D41E.4060506@wpkg.org> (raw)
In-Reply-To: <46CEC805.6010009@wpkg.org>
Tomasz Chmielewski schrieb:
> Justin Piszcz schrieb:
>
>>> According to the fine manual, BITMAP CHANGES belong to the grow mode.
>>> So, let's try to do what the manual says - try to add a bitmap to the
>>> active array:
>>>
>>>
>>> # mdadm --grow /dev/md0 --bitmap=internal
>>> mdadm: failed to set internal bitmap.
>>>
>>> # dmesg
>>> md: couldn't update array info. -16
>>>
>>>
>>> So, either I don't understand the manual, or there are more caveats
>>> in it.
>
> (...)
>
>> Check: http://lkml.org/lkml/2007/6/17/235
>
> It's an external bitmap; I'd prefer an internal one, as my root
> filesystem is on a flash-IDE disk.
>
> However, let's try the external bitmap:
>
> # mdadm --grow /dev/md0 --bitmap=/bitmapfile
> mdadm: Cannot set bitmap file for /dev/md0: Device or resource busy
>
>
> So, it also fails. Perhaps because the array still rebuilds?
It looks it only works when the array is in a clean state (or, not
rebuilding anymore).
Just for reference:
# mdadm --grow --bitmap=/bitmapfile /dev/md0
# dmesg -c
md0: bitmap file is out of date (0 < 43130) -- forcing full recovery
md0: bitmap file is out of date, doing full recovery
md0: bitmap initialized from disk: read 24/24 pages, set 763103 bits,
status: 0
created bitmap (373 pages) for device md0
# mdadm --grow /dev/md0 --bitmap=internal
mdadm: /dev/md0 already has a bitmap (/bitmapfile)
# mdadm --grow /dev/md0 --bitmap=none
# mdadm --grow /dev/md0 --bitmap=internal
# dmesg -c
md0: bitmap file is out of date (0 < 43130) -- forcing full recovery
md0: bitmap file is out of date, doing full recovery
md0: bitmap initialized from disk: read 12/12 pages, set 381552 bits,
status: 0
created bitmap (187 pages) for device md0
What are pages/bits in bitmap? It seems to differ, whether internal or
external is used.
--
Tomasz Chmielewski
http://wpkg.org
prev parent reply other threads:[~2007-08-27 13:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-24 11:20 recovery starts from 0 after reboot - normal? Tomasz Chmielewski
2007-08-24 11:22 ` Justin Piszcz
2007-08-24 11:34 ` Tomasz Chmielewski
2007-08-24 11:40 ` Justin Piszcz
2007-08-24 11:46 ` Tomasz Chmielewski
2007-08-24 11:48 ` Justin Piszcz
2007-08-24 11:59 ` Tomasz Chmielewski
2007-08-27 13:39 ` Tomasz Chmielewski [this message]
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=46D2D41E.4060506@wpkg.org \
--to=mangoo@wpkg.org \
--cc=jpiszcz@lucidpixels.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.