From: "Mike Black" <mblack@csi-inc.com>
To: Sean Kormilo <skormilo@nortelnetworks.com>,
linux-raid <linux-raid@vger.kernel.org>
Subject: Re: Expanding size of existing raid1 md device
Date: Thu, 24 Apr 2003 14:57:32 -0400 [thread overview]
Message-ID: <05bf01c30a93$5cd3a3b0$f6de11cc@black> (raw)
In-Reply-To: 1051210082.2852.65.camel@pcary03q.ca.nortel.com
I've done this with a single partition but it should work for multiple also.
Sounds like you already partioned the new 36G correctly.
Before you insert the new 36G disk you need to re-create the raid array and resize the file system:
Let's assume you've already sync'd hda to the 36G hdc and replaced hda with a brand-new 36G
mdadm --create /dev/md0 -l1 -n2 /dev/hdc1 missing
resize2fs -p -f /dev/md0
e2fsck -C 0 /dev/md0
mdadm --add /dev/md0 /dev/hda1
And repeat for md1
----- Original Message -----
From: "Sean Kormilo" <skormilo@nortelnetworks.com>
To: "linux-raid" <linux-raid@vger.kernel.org>
Sent: Thursday, April 24, 2003 2:48 PM
Subject: Expanding size of existing raid1 md device
> Hi,
>
> I'm wondering if there is any way to do the following...
>
> Assume I've got a system with 2 18GB disks. Each disk has 2 partitons
> which are then setup as mirrored md devices.
> /dev/md0 uses small 100MB partitions on each drive
> /dev/md1 uses the rest of each disk (ie: ~17.9GB)
>
> I'd like to be able to upgrade the system to use 36GB disks, such that
> the /dev/md1 partition expands to take up the rest of the additional
> space provided by the 36GB disk.
>
> So, the process might look something like:
> - fail and remove the partition for both md arrays
> - remove 1 of the 18GB disks
> - insert new 36GB disk
> - partition 36GB disk with 100MB partition for /dev/md0
> - partition 36GB disk with 35.9GB partition for /dev/md1
> - hotadd the 36GB disk partitions so that it syncs with 18GB disk
> - wait for sync to complete
> - fail and remove the partitions on both md arrays on the 18GB disk
> - remove the 18GB disk
> - insert new 36GB disk
> - partition 36GB disk with 100MB partition for /dev/md0
> - partition 36GB disk with 35.9GB partition for /dev/md1
> - hotadd the 36GB disk partitions so that it syncs with the other 36GB
> disk
>
> Having tried this, it works except that /dev/md1 does not make use of
> the additional space provided by the 36GB disks even though the
> partitions on both disks are larger. It appears to me that it is using
> the value from the superblock when the array was created (which makes
> sense).
>
> Is there some way to force the md driver to expand to use the maximum
> size available based on the disks/partitions in the array? Perhaps from
> mdadm? Or is some kind of patch to the kernel required to make this
> work? If so, any pointers as to where I'd look?
>
> Thanks!
>
> Sean.
>
>
>
>
> --
>
> Sean C. Kormilo, STORM Software Architect, Nortel Networks
> email: skormilo@nortelnetworks.com
>
>
> -
> 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:[~2003-04-24 18:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-24 18:48 Expanding size of existing raid1 md device Sean Kormilo
2003-04-24 18:54 ` Mike Dresser
2003-04-24 20:52 ` Sean Kormilo
2003-04-24 21:02 ` Ross Vandegrift
2003-04-24 21:25 ` Scott McDermott
2003-04-24 18:57 ` Mike Black [this message]
2003-04-24 20:47 ` Sean Kormilo
2003-04-24 21:14 ` Scott McDermott
2003-04-25 11:57 ` Sean Kormilo
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='05bf01c30a93$5cd3a3b0$f6de11cc@black' \
--to=mblack@csi-inc.com \
--cc=linux-raid@vger.kernel.org \
--cc=skormilo@nortelnetworks.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).