From: Jules Bean <jules@jellybean.co.uk>
To: NeilBrown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: After partition resize, RAID5 array does not assemble on boot
Date: Wed, 04 Jun 2008 07:31:21 +0100 [thread overview]
Message-ID: <484636B9.20700@jellybean.co.uk> (raw)
In-Reply-To: <48675.192.168.1.70.1212528422.squirrel@neil.brown.name>
NeilBrown wrote:
>> Does the mdadm --detail output I pasted in my last message hold any clues?
>>
>
> Yes. Based on the "used device size", the smallest device was between
> 242244096K and 242244160K
>
> Hopefully both of the smaller devices were the same size.
They were (the same size) but I couldn't find the superblock. I tried
several possible partition sizes around 242244032K (plus or minus a
cylinder or two) and no luck.
In the end I gritted my teeth and, following the advice in
http://joshuahayes.blogspot.com/2006/11/expand-existing-raid-5-array.html
I forced mdadm --create to recreate the array using correct parameters.
mdadm --create /dev/md0 --chunk=64 --level=5 --layout=left-symmetric
--raid-devices=4 --size=242244032 /dev/sda2 /dev/sdb2 /dev/sdd2 /dev/sdc2
and after a reboot, everything came all the way up to multiuser (which
is significant, because /usr was on an LVM on this RAID partition) and
as far as I can see, everything is fine.
Phew!
As to where my superblock has gone, the only theory I have is that the
MD layer knew that my partitions were 400G large while the kernel was
convinced they were 250G large, so the md layer tried to write the
superblock at (approx) +400G, and the kernel refused to do that.
However, since the used dev size was only 242244032, all my actual data
was safe and just using mdadm to recreate the superblocks was all that
was needed.
The lesson here is always reboot after changing partition sizes, unless
you have a tool which reliably flushes the kernel partition table cache
(partprobe?)
Thanks for the help,
Jules
next prev parent reply other threads:[~2008-06-04 6:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-03 6:49 After partition resize, RAID5 array does not assemble on boot Jules Bean
2008-06-03 21:19 ` Jules Bean
2008-06-03 21:27 ` NeilBrown
2008-06-04 6:31 ` Jules Bean [this message]
2008-06-04 6:36 ` Peter Rabbitson
2008-06-04 7:58 ` David Greaves
2008-06-04 8:30 ` Jules Bean
2008-06-04 11:51 ` David Greaves
2008-06-04 13:14 ` Jules Bean
2008-06-06 13:52 ` Bill Davidsen
2008-06-06 14:42 ` David Greaves
2008-06-06 14:46 ` Jules Bean
2008-06-12 3:59 ` Neil Brown
2008-06-03 21:46 ` Peter Rabbitson
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=484636B9.20700@jellybean.co.uk \
--to=jules@jellybean.co.uk \
--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).