From: Roman Mamedov <rm@romanrm.net>
To: Benjammin2068 <benjammin2068@gmail.com>
Cc: Wols Lists <antlists@youngman.org.uk>,
Linux-RAID <linux-raid@vger.kernel.org>
Subject: Re: Using mdadm --grow to resize a RAID1
Date: Mon, 2 Jan 2017 21:24:12 +0500 [thread overview]
Message-ID: <20170102212412.19832496@natsu> (raw)
In-Reply-To: <ca87be95-bfb1-10c6-18d4-9aca4a6e3558@gmail.com>
On Mon, 2 Jan 2017 09:55:34 -0600
Benjammin2068 <benjammin2068@gmail.com> wrote:
>
>
> On 01/02/2017 06:19 AM, Wols Lists wrote:
> > On 02/01/17 10:18, Benjammin2068 wrote:
> >> I get stuck at the --size max.
> >>
> >> it seems the correct syntax is "--size=" but that "max" is not supported as an argument.
First you say it's unsupported as an argument, but then actually
> > [root@quantum ~]# mdadm --grow /dev/md1 --size max
> > mdadm: component size of /dev/md1 unchanged at 239490048K
>
> > [root@quantum ~]# mdadm --grow /dev/md1 --size=max
> > mdadm: component size of /dev/md1 unchanged at 239490048K
Unsupported as an argument looks like that:
> mdadm --grow /dev/md1 --size=blah
> mdadm: invalid size: blah
In your case mdadm appears to think there is nowhere to grow the array.
Check with "blockdev --getsz /dev/sda3" and sdb3 that they actually do have a
proper size (the result will be in 512-byte sectors).
If not, maybe your kernel didn't re-read the partition table after resizing
partitions (if that was what you did)?
If the blockdevice size is wrong, do a "blockdev --rereadpt /dev/sda" and sdb,
or just rebooting (as in some cases rereading will fail with a "device busy"
error).
--
With respect,
Roman
next prev parent reply other threads:[~2017-01-02 16:24 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-02 10:18 Using mdadm --grow to resize a RAID1 Benjammin2068
2017-01-02 12:19 ` Wols Lists
2017-01-02 15:55 ` Benjammin2068
2017-01-02 16:14 ` Jack Wang
2017-01-02 16:19 ` Wols Lists
2017-01-02 16:24 ` Roman Mamedov [this message]
2017-01-02 16:38 ` Benjammin2068
2017-01-02 17:59 ` Ben Kamen
2017-01-02 18:17 ` Wols Lists
2017-01-02 18:38 ` Ben Kamen
2017-01-02 18:52 ` Wols Lists
2017-01-02 19:11 ` Ben Kamen
2017-01-03 1:57 ` Ben Kamen
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=20170102212412.19832496@natsu \
--to=rm@romanrm.net \
--cc=antlists@youngman.org.uk \
--cc=benjammin2068@gmail.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