From: Stan Hoeppner <stan@hardwarefreak.com>
To: Chris Murphy <lists@colorremedies.com>
Cc: "linux-raid@vger.kernel.org Raid" <linux-raid@vger.kernel.org>
Subject: Re: Linear raid extend component
Date: Sat, 29 Dec 2012 14:24:08 -0600 [thread overview]
Message-ID: <50DF5168.9050703@hardwarefreak.com> (raw)
In-Reply-To: <E2F855BB-D735-4186-8A0A-92DB8024A5DE@colorremedies.com>
On 12/29/2012 12:14 PM, Chris Murphy wrote:
>
> On Dec 29, 2012, at 4:44 AM, Adam Goryachev <adam@websitemanagers.com.au> wrote:
>
>>
>> Then when complete:
>> mdadm --grow /dev/md3 --size=max
>
> In a VM I'm unable to get a linear device to grow. I think you can only grow linear by adding devices. You could partition the 3TB such that the 1st partition matches the total sectors of the partition on the replaced 1TB drive; then add the 2TB partition of the 3TB drive onto the end of the linear array. It'd work, but it's a weird configuration. You're better off reverting to the original setup, and adding the 3TB drives at the end, then growing the file system.
Somebody posted the same scenario a few weeks ago. The only 'proper'
way to do this is to swap out the drives in the last RAID1 pair in the
linear array.
The whole point of the linear array, or concatenation, is to constantly
add drives to expand. Swapping drives in a concat with larger units was
never anticipated as a valid growth option. As Chris states, you can do
this with partitions, but it is not elegant.
Since your total array size is ~3TB, if you're using XFS, you could
simply do a dump to one of the new 3TB drives. Afterwards you can
simply blow away everything and start over, creating a RAID1 with the
remaining 3TB drive but with a missing drive. Then create the RAID1
with the 2x 2TB drives. Then create the linear array and format it.
Then do a restore of the XFS filesystem. Then add the 3TB drive to the
missing RAID1.
You can do the same thing with any filesystem but you'll be using 'cp
-a' or rsync, etc, to move the files around, which is much slower.
--
Stan
next prev parent reply other threads:[~2012-12-29 20:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-29 11:44 Linear raid extend component Adam Goryachev
2012-12-29 16:59 ` Chris Murphy
2012-12-29 18:14 ` Chris Murphy
2012-12-29 20:24 ` Stan Hoeppner [this message]
2012-12-29 21:52 ` Chris Murphy
2012-12-31 4:23 ` Stan Hoeppner
[not found] ` <50ED18A3.7050203@websitemanagers.com.au>
2013-01-10 12:14 ` Adam Goryachev
2012-12-30 6:50 ` Mikael Abrahamsson
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=50DF5168.9050703@hardwarefreak.com \
--to=stan@hardwarefreak.com \
--cc=linux-raid@vger.kernel.org \
--cc=lists@colorremedies.com \
/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).