From: Goswin von Brederlow <goswin-v-b@web.de>
To: Ralf Mueller <ralf@bj-ig.de>
Cc: linux raid <linux-raid@vger.kernel.org>,
Goswin von Brederlow <goswin-v-b@web.de>
Subject: Re: Resize Raid5 devices
Date: Thu, 18 Jun 2009 19:31:36 +0200 [thread overview]
Message-ID: <87d491bg93.fsf@frosties.localdomain> (raw)
In-Reply-To: <4CB2808F-EB88-458A-9D2B-22E31A97EB4F@bj-ig.de> (Ralf Mueller's message of "Thu, 18 Jun 2009 10:36:32 +0200")
Ralf Müller <ralf@bj-ig.de> writes:
> Am 18.06.2009 um 10:27 schrieb Goswin von Brederlow:
>> Ralf Müller <ralf@bj-ig.de> writes:
>>
>>> After I added a forth 1.5TB disk to the array yesterday and
>>> reshaped the
>>> former 3 disk raid5 to a 4 disk one, I wiped out the 300GB disk
>>> raid5,
>>> set one of the 1.2TB partitions faulty, removed it from its raid,
>>> removed the 300GB partition and resized the former 1.2TB partition
>>> (in place) to 1.5TB. Now I added this partition to its raid.
>>>
>>> It has been recognized as a former member of this raid - so far so
>>> good - but for whatever reason the raid subsystem decided to start
>>> a complete recovery.
>>> So here my question:
>>>
>>> What went wrong and what do I have to do to avoid a full recovery for
>>> the next disk?
>>
>> I guess something wrote to your raid5 while the one disk was
>> removed.
>
> Thats possible - after re-add, the bitmap showed 2/275 pages as unclean.
>
>> When you added it back the event counter would differ and the
>> disk needs to be resynced completly. A bitmap would help limiting this
>> to the parts that have changed. Add an internal bitmap before you
>> remove the next disk.
>
> There is an internal write intent bitmap at the array:
> DatenGrab:/media # cat /proc/mdstat
> Personalities : [raid6] [raid5] [raid4] [raid1]
> md3 : active raid5 sdf1[3] sdi1[0] sdj1[4] sdh1[1]
> 3457099008 blocks super 1.2 level 5, 256k chunk, algorithm 2
> [4/4] [UUUU]
> bitmap: 0/275 pages [0KB], 2048KB chunk
>
> Do you have an idea why this bitmap has been ignored?
No idea.
MfG
Goswin
--
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
next prev parent reply other threads:[~2009-06-18 17:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-17 14:22 Resize Raid5 devices Ralf Müller
2009-06-18 8:27 ` Goswin von Brederlow
2009-06-18 8:36 ` Ralf Müller
2009-06-18 17:31 ` Goswin von Brederlow [this message]
[not found] ` <19002.61619.121746.923481@notabene.brown>
2009-06-19 8:04 ` Ralf Müller
2009-06-20 14:21 ` Ralf Müller
2009-06-20 21:26 ` NeilBrown
2009-06-21 9:40 ` Ralf Müller
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=87d491bg93.fsf@frosties.localdomain \
--to=goswin-v-b@web.de \
--cc=linux-raid@vger.kernel.org \
--cc=ralf@bj-ig.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