From: Anssi Hannula <anssi.hannula@gmail.com>
To: Neil Brown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: Recovery speed at 1MB/s/device, unable to change
Date: Mon, 24 Apr 2006 01:49:37 +0300 [thread overview]
Message-ID: <444C0481.2000408@gmail.com> (raw)
In-Reply-To: <17483.63636.745420.456281@cse.unsw.edu.au>
[-- Attachment #1: Type: text/plain, Size: 986 bytes --]
(resend, prev post missed the list)
Neil Brown wrote:
> On Monday April 24, anssi.hannula@gmail.com wrote:
>
>># mdadm --grow /dev/md_d1 --raid-devices=3 --backup-file backupfile
>>mdadm: Need to backup 128K of critical section..
>>mdadm: /dev/md_d1: Cannot get array details from sysfs
>>
>>Strace shows that it's trying to access
>>"/sys/block/md_d4/md/component_size".
>>
>>Why is this?
>
>
> Because I didn't test my code properly :-(
>
> Following patch should fix it.
>
It appears you missed another occurrence (patch attached).
However, it got stuck after
mdadm: Need to backup 128K of critical section..
I did ctrl-c, and according to /proc/mdstat it was successfully
reshaped, nor can I restart the reshape.
But "umount /mnt/test" (/mnt/test is where /dev/md_d1p1 is mounted)
blocks, and this time it becomes unkillable.
/proc/mdstat reports:
md_d1 : active raid5 loop1[1] loop0[0]
4992 blocks level 5, 64k chunk, algorithm 2 [3/2] [UU_]
--
Anssi Hannula
[-- Attachment #2: sysfs-minor.diff --]
[-- Type: text/x-patch, Size: 341 bytes --]
--- sysfs.c.old 2006-04-24 01:24:09.000000000 +0300
+++ sysfs.c 2006-04-24 01:33:48.000000000 +0300
@@ -69,7 +69,7 @@
sprintf(sra->name, "md%d", minor(stb.st_rdev));
else
sprintf(sra->name, "md_d%d",
- minor(stb.st_rdev)/16);
+ minor(stb.st_rdev)/64);
} else {
if (devnum >= 0)
sprintf(sra->name, "md%d", devnum);
next prev parent reply other threads:[~2006-04-23 22:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-23 19:22 Recovery speed at 1MB/s/device, unable to change Anssi Hannula
2006-04-23 21:37 ` Anssi Hannula
2006-04-23 21:58 ` Neil Brown
2006-04-23 22:48 ` Anssi Hannula
2006-04-23 22:49 ` Anssi Hannula [this message]
2006-04-24 13:33 ` Anssi Hannula
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=444C0481.2000408@gmail.com \
--to=anssi.hannula@gmail.com \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/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).