From: Konstantin Svist <fry.kun@gmail.com>
To: linux-raid@vger.kernel.org
Subject: [SOLVED] Re: messed up changing chunk size
Date: Tue, 20 Jul 2010 09:30:26 -0700 [thread overview]
Message-ID: <4C45CF22.4060900@gmail.com> (raw)
In-Reply-To: <4C454246.3030703@gmail.com>
On 07/19/2010 11:29 PM, Konstantin Svist wrote:
> On 07/19/2010 09:28 PM, Konstantin Svist wrote:
>> Can someone confirm that this command should work to revert the size?
>> mdadm --grow -z 879100608
>> --backup-file=/root/grow_md0_size_revert.bak /dev/md0
>
> Finally sat down and thought about it - created a temporary raid using
> /dev/ram## and copied some files to it, did the same operations on it.
> Amazingly, all the files came back. Will see if the real thing works too
For some reason, mdadm refused to resize back to max:
# mdadm --grow -z max --backup-file=/root/grow_md0_size_back.bak /dev/md0
mdadm: component size of /dev/md0 has been set to 293033536K
# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sdd1[3] sda4[0] sdc1[2] sdb1[1]
293033472 blocks level 5, 64k chunk, algorithm 2 [4/4] [UUUU]
After stopping and re-assembling the array, though, it comes up with
full size but with only 3 of 4 drives:
# mdadm --assemble --scan
mdadm: /dev/md0 has been started with 3 drives (out of 4).
# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sda4[0] sdc1[2] sdb1[1]
879100608 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
The array is degraded but data is all there, so I'm backing it up right
now. No idea why it doesn't like the 4th drive.
next prev parent reply other threads:[~2010-07-20 16:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-19 0:32 messed up changing chunk size Konstantin Svist
2010-07-19 0:41 ` Steven Haigh
2010-07-19 0:51 ` Konstantin Svist
2010-07-19 1:29 ` Guy Watkins
2010-07-19 1:45 ` Konstantin Svist
2010-07-19 1:51 ` Guy Watkins
2010-07-19 3:53 ` Roman Mamedov
2010-07-19 13:24 ` Jools Wills
2010-07-19 14:58 ` Roman Mamedov
2010-07-19 19:02 ` Keld Simonsen
2010-07-19 18:04 ` Konstantin Svist
2010-07-20 4:28 ` Konstantin Svist
2010-07-20 6:29 ` Konstantin Svist
2010-07-20 16:30 ` Konstantin Svist [this message]
2010-07-20 17:01 ` [SOLVED] " Konstantin Svist
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=4C45CF22.4060900@gmail.com \
--to=fry.kun@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 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.