From: "Sergiusz Brzeziński" <Sergiusz.Brzezinski@supersystem.pl>
To: linux-raid@vger.kernel.org
Subject: Re: mdadm doesn't wont to grow - help please
Date: Tue, 15 May 2012 12:04:42 +0200 [thread overview]
Message-ID: <4FB22A3A.5010003@supersystem.pl> (raw)
In-Reply-To: <20120515101431.786b117a@notabene.brown>
W dniu 15.05.2012 02:14, NeilBrown pisze:
> On Mon, 14 May 2012 15:49:53 +0200 Sergiusz Brzeziński
> <Sergiusz.Brzezinski@supersystem.pl> wrote:
>
>> Hi,
>>
>> I would like to grow the RAID1.
>>
>> - Raid1 size has about 50GB
>> - two HD partition (sda2, sdb2) have about 80GB+ (each)
>>
>> I do:
>>
>> # mdadm --grow /dev/md0 --size=max
>>
>> and I get the info, that the new size is 50GB. And I wonder: why not 80GB? The
>> size doesn't change! If I try to force size (--size=xxxxx), I get the message
>> that there is no space.
>>
>> What did I wrong?
>
> Probably used an ancient version of mdadm - more than a couple of months
> old :-)
>
> If you
> for i in /sys/block/md0/md/dev*/size
> do echo 0> $i
> done
> then try again it might work better.
>
> Newer mdadm (since May 2011) do this for you.
>
> If you look at the "mdadm -E /dev/sda2" output before and after you will
> notice that "Avail Dev Size" changes.
>
> You can achieve the same effect by stopping the array, the assembling it
> with --update=devicesize
>
> mdadm --stop /dev/md0
> mdadm --assemble /dev/md0 --update=devicesize /dev/sd[ab]2
> mdadm --grow /dev/md0 --size=max
>
> NeilBrown
[...]
Hi,
Yes, that helped!
Bevore:
Avail Dev Size : 104855552 (50.00 GiB 53.69 GB)
Array Size : 104855552 (50.00 GiB 53.69 GB)
# echo 0 > /sys/block/md1/md/dev-sda2/size
After:
Avail Dev Size : 175625584 (83.74 GiB 89.92 GB)
Array Size : 104855552 (50.00 GiB 53.69 GB)
Used Dev Size : 104855552 (50.00 GiB 53.69 GB)
And now:
# mdadm --grow /dev/md1 --size=max
works as expected
thank's a lot
best regards
Sergiusz
--
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
prev parent reply other threads:[~2012-05-15 10:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-14 13:49 mdadm doesn't wont to grow - help please Sergiusz Brzeziński
2012-05-15 0:14 ` NeilBrown
2012-05-15 10:04 ` Sergiusz Brzeziński [this message]
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=4FB22A3A.5010003@supersystem.pl \
--to=sergiusz.brzezinski@supersystem.pl \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.