From: Eli Stair <estair@ilm.com>
To: Neil Brown <neilb@suse.de>
Cc: linux-raid mailing list <linux-raid@vger.kernel.org>
Subject: Re: BUGS: internal bitmap during array create
Date: Wed, 18 Oct 2006 16:26:01 -0700 [thread overview]
Message-ID: <4536B809.7020006@ilm.com> (raw)
In-Reply-To: <17710.65130.194296.801803@cse.unsw.edu.au>
[-- Attachment #1: Type: text/plain, Size: 3443 bytes --]
I've provided the requested info, attached as two files (typescript output):
BUG 1)
/ create-array-with-internal-bitmap.out
# this file contains the full series of creation, mkfs, examine
# and mount commands/errors
The only obvious detail I can detect is the 'Chunksize' shown in the
superblock detail. The value set when creating the array with
'-binternal' is "1MB", while after removing and re-creating the bitmap,
it is set to "128MB". After this step (and the chunksize increasing),
initial tests show this to work fine.
One thing I noted, the initial resync time is /incredibly/ shortened
when created with an internal write-intent bitmap... completing in
between ONE and TEN minutes vs. the average 200min. initial sync time
for a 1-2 TB array without the bitmap! I don't understand how this can
occur safely, since the write speed of the raw drives isn't enough to
zero all sectors for sanitizing the RAID blocks in that time period....
is this then left in an unclean/dangerous underlying state?
BUG 2)
/ create-array-with-external-bitmap.out
# this file contains attempts to set the bitmap-chunk for external
# bitmap file, unsuccessfully.
This errored out no matter the values I tested. In summary, using
--bitmap-chunk=[>=128] resulted in:
mdadm: size set to 143374336K
mdadm: RUN_ARRAY failed: No space left on device
--bitmap-chunk=[<=64] resulted in:
mdadm: size set to 143374336K
mdadm: RUN_ARRAY failed: Cannot allocate memory
Cheers,
/eli
Neil Brown wrote:
> On Wednesday October 11, estair@ilm.com wrote:
> >
> > After realizing my stupid error in specifying the bitmap during array
> > creation, I've triggered a couple of 100% repeatable bugs with this
> > scenario.
> >
> >
> > BUG 1)
> ....
> >
> >
> > Strangely, whatever the underlying cause is, ext3 seems immune (at least
> > in brief testing) to this. I can create and mount an ext3 filesystem on
> > top of the array that xfs dies trying to mount.
> >
> > In the case where the array is created with bitmap at build time, if I
> > wait until resync is completed, do a 'mdadm -Gb none' followed by 'mdadm
> > -Gb internal', I can then safely create the XFS filesystem and mount
> > it.
>
> Can you get me the output of
> mdadm -X some-component-device
> both after the creation with a bitmap, and after the bitmap has been
> hot-removed and hot-added.
> Just for good measure, include the "mdadm -E" output at the same
> times.
>
> >
> > BUG 2)
> >
> > Another bitmap failure during create time: MDADM dies with an error
> > after creating the array, when it tries to assemble it, with an
> > external-file bitmap (on ext3):
> >
> >
> > [root@gtmp01 GTMP]# mdadm -C /dev/md0 -f --chunk=512 --level=10
> > -n14 -po2 -e1.2 -bESC[1P^M[root@gtmp01 GTMP]# mdadm -C /dev/md0 -f
> > --chunk=512 --level=10 -n14 -po2 -e1.2 -b/var/tmp/bitmap
> /dev/mapper/mpath*
> > mdadm: RUN_ARRAY failed: Cannot allocate memory
> > mdadm: stopped /dev/md0
>
> I thought I had fixed this in 2.5, but on reflection that might not
> fixed it for 64bit hosts. Can you try explicitly setting the
> --bitmap-chunk size such that there will be fewer than 1,000,000
> chunks?
>
> NeilBrown
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
[-- Attachment #2: create-array-with-external-bitmap.out --]
[-- Type: application/octet-stream, Size: 3250 bytes --]
[-- Attachment #3: create-array-with-internal-bitmap.out --]
[-- Type: application/octet-stream, Size: 38155 bytes --]
next prev parent reply other threads:[~2006-10-18 23:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-11 20:11 BUGS: internal bitmap during array create Eli Stair
2006-10-13 1:02 ` Eli Stair
2006-10-13 2:48 ` Neil Brown
2006-10-18 23:26 ` Eli Stair [this message]
2006-10-19 6:50 ` Neil Brown
2006-10-19 23:34 ` Eli Stair
2006-10-20 0:30 ` Neil Brown
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=4536B809.7020006@ilm.com \
--to=estair@ilm.com \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/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;
as well as URLs for NNTP newsgroup(s).