From: Michael Tokarev <mjt@tls.msk.ru>
To: linux-raid@vger.kernel.org
Subject: Re: Online resize
Date: Wed, 12 Mar 2008 11:04:56 +0300 [thread overview]
Message-ID: <47D78EA8.7050604@msgid.tls.msk.ru> (raw)
In-Reply-To: <20080311145832.GC2086@cthulhu.home.robinhill.me.uk>
Robin Hill wrote:
> On Tue Mar 11, 2008 at 02:44:17PM +0200, Wayne Gemmell wrote:
>
>> Well that didn't go so well
>>
>> On Tuesday 11 March 2008 13:12:19 Robin Hill wrote:
>>> 2) Force the OS to be aware of the new partition sizes - either a
>>> reboot or using partprobe.
>>> 3) Grow the array (mdadm --grow) - check the manual page for details.
>> I ran partprobe and then mdadm --grow --size=max /dev/md4 and nothing
>> happened. Then I decided to reboot thinking that partprobe hadn't picked up
>> that change and now it says that sda6 doesn't have a superblock. Any ideas
>> what went wrong?
>>
> What version metadata are you using? I'm not sure how 1.0 will handle
> partition resizes but any other should certainly be okay. Have you
> tried running mdadm -E on each of the component partitions? I assume
> the new partitions are starting from the same position as the old ones?
Robin, you're completely wrong here.
Only metadata at the START of the partition will work here. Which is
either 1.1 or 1.2, but NOT 1.0 or 0.90, - which is at the END of the
partition. When the end of the partition goes away, the superblock
becomes "orphan" somewhere inside the partition, and can't be found
anymore.
What should be done currently is:
a) re-create the array with new partitions, with THE SAME DISK ORDER,
METADATA VERSION AND CHUNK SIZE as it was before.
b) restore partitions to the EXACT size as they were before, and
start from scratch
/mjt
next prev parent reply other threads:[~2008-03-12 8:04 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-11 9:19 Online resize Wayne Gemmell
2008-03-11 11:12 ` Robin Hill
2008-03-11 12:44 ` Wayne Gemmell
2008-03-11 14:58 ` Robin Hill
2008-03-12 7:27 ` Wayne Gemmell
2008-03-12 7:46 ` Wayne Gemmell
2008-03-12 8:04 ` Michael Tokarev [this message]
2008-03-12 9:14 ` Wayne Gemmell
2008-03-12 9:38 ` Michael Tokarev
2008-03-12 11:17 ` Wayne Gemmell
2008-03-12 9:31 ` Robin Hill
2008-04-29 1:00 ` Neil Brown
2008-04-29 7:30 ` Wayne Gemmell
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=47D78EA8.7050604@msgid.tls.msk.ru \
--to=mjt@tls.msk.ru \
--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;
as well as URLs for NNTP newsgroup(s).