From: NeilBrown <neilb@suse.de>
To: greg@enjellic.com
Cc: greg@wind.enjellic.com, linux-raid@vger.kernel.org
Subject: Re: RAID1 growth of version 1.1/1.2 metadata violates least surprise.
Date: Mon, 24 Jun 2013 17:14:11 +1000 [thread overview]
Message-ID: <20130624171411.12a85fd8@notabene.brown> (raw)
In-Reply-To: <201306091433.r59EX51u021372@wind.enjellic.com>
[-- Attachment #1: Type: text/plain, Size: 2858 bytes --]
On Sun, 9 Jun 2013 09:33:05 -0500 "Dr. Greg Wettstein"
<greg@wind.enjellic.com> wrote:
> Hi, hope the week is starting out well for everyone.
>
> We ran into an interesting issue secondary to the growth of a RAID1
> volume with version 1.1 metadata. We are interested in reflections
> from Neil and/or others as to whether the problem can be addressed.
>
> We grew a RAID1 mirror which had its two individual legs provided by
> SAN volumes from an SCST based target server. We provisioned
> additional storage on the targets and then updated the advertised size
> of the two block devices.
>
> Following that we carried out a rescan of the block devices on the
> initiator and then used mdadm to 'grow' the size of the RAID1 mirror.
> That was about 4-5 months ago and we ended up running into issues when
> the machine was just recently rebooted.
>
> The RAID1 mirror refused to assemble secondary to the superblocks on
> the individual devices having a different idea of the volume size as
> compared to the actual volume size. The mdadm manpage makes reference
> to this problem in the section on the '-U' (update) functionality.
>
> It would seem to violate the notion of 'least surprise' for a grow
> command to work only to end up with a device which would not assemble
> without external intervention at some distant time in the future. It
> isn't uncommon to have systems up for a year or more which tends to
> result in this issue being overlooked on systems which have been
> resized.
>
> I'm assuming there is no technical reason why the superblocks on the
> individual devices cannot be updated as part of the grow. Events such
> as adding/removing persistent bitmaps suggest this is a possibility.
> If its an issue of needing code we could investigate doing the
> legwork since it is an issue we would like to see addressed.
>
> This behavior was experienced on a largely stock RHEL5 box with the
> following versions:
>
> Kernel: 2.6.18-348.6.1.el5
> mdadm: v2.6.9
>
> Obviously running Oracle.... :-)
>
> Any thoughts/suggestions would be appreciated.
>
> Have a good week.
(sorry for the delay - I guess I was having too much fun that week....)
Your description of events doesn't fit with my understanding of how things
should work.
It would help a lot to include actual error messages and "mdadm --examine"
details of devices.
Certainly if you provision underlying devices to be larger and then "grow"
the array, then the superblocks should be updated and everything should work
after a reboot.
If you were using 0.90 or 1.0 metadata which is at the end of the device
there could be confusion when reprovisioning devices (that is mainly with
--update=devicesize is for), but 1.1 metadata should not be affected.
So: I need details - sorry.
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
next prev parent reply other threads:[~2013-06-24 7:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-09 14:33 RAID1 growth of version 1.1/1.2 metadata violates least surprise Dr. Greg Wettstein
2013-06-24 7:14 ` NeilBrown [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-06-28 16:33 Dr. Greg Wettstein
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=20130624171411.12a85fd8@notabene.brown \
--to=neilb@suse.de \
--cc=greg@enjellic.com \
--cc=greg@wind.enjellic.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 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).