From: Billy Crook <billycrook@gmail.com>
To: Jon@ehardcastle.com
Cc: "Kristleifur Daðason" <kristleifur@gmail.com>,
linux-raid@vger.kernel.org
Subject: Re: Raid 5 to 6 reshape q
Date: Sun, 3 Jan 2010 14:14:09 -0600 [thread overview]
Message-ID: <a43edf1b1001031214m6a4bea69ja17508b7da41efbd@mail.gmail.com> (raw)
In-Reply-To: <657593.18711.qm@web51308.mail.re2.yahoo.com>
Here's a couple trivial scripts I've used to pause execution until a
sync is completed. They are handy for when you want to do multiple
grow operations, each no sooner than after the previous completed.
Modify for your own purposes.
[root@Eight bin]# cat raid-wait-till-sync-finish
#! /bin/bash
export interval=300
if [[ $1 -gt 0 ]]
then
interval=$1
fi
echo -n Checking every ${interval} seconds for raid sync to finish.
while [[ $( cat /sys/block/md*/md/sync_action | \
grep -v idle | \
wc -l ) -gt 0 ]]
do
echo -n .
sleep ${interval}
done
echo Raid System Healthy!
exit 0
[root@Eight bin]# cat raid-wait-till-all-healthy
#! /bin/bash
export clean=no
while [[ $clean==no ]]
do
#set clean to yes
clean=yes
#Give each array the chance to set clean to no
for array in `ls -1 /sys/block/md*/md -d`
do
if [[ $( cat $array/raid_disks ) -gt $( ls -1 $array/ | grep
^rd[0-9]*$ | wc -l ) ]]
then
echo $array is still unclean
clean=no
fi
done
sleep 5
done
On Sun, Jan 3, 2010 at 12:07, Jon Hardcastle <jd_hardcastle@yahoo.com> wrote:
>
>
>
> --- On Sat, 2/1/10, Kristleifur Daðason <kristleifur@gmail.com> wrote:
>
>> From: Kristleifur Daðason <kristleifur@gmail.com>
>> Subject: Re: Raid 5 to 6 reshape q
>> To: Jon@ehardcastle.com
>> Cc: linux-raid@vger.kernel.org
>> Date: Saturday, 2 January, 2010, 12:19
>> On Sat, Jan 2, 2010 at 8:52 AM, Jon
>> Hardcastle <jd_hardcastle@yahoo.com>
>> wrote:
>> > Hi guys, thanks for your help getting me going with
>> this over the last week. I kicked it off last night and all
>> is well.
>> > ...
>> > The only Q i have is it seems to be abit slow?
>> > ...
>> > md4 : active raid6 sdg1[4] sdf1[0] sde1[1] sdd1[2]
>> sdc1[5] sdb1[3] sda1[6]
>> > 2441919680 blocks super 0.91 level 6, 64k
>> chunk, algorithm 18 [7/6] [UUUUUU_]
>> > [===>.................] reshape = 17.9%
>> (87600896/488383936) finish=2881.3min speed=2317K/sec
>>
>> That's very slow. An order of magnitude too slow in my
>> view. I was
>> initially seeing speeds like this during my recent reshape,
>> but got it
>> up to around 30MBps. I can't recall exactly what I did to
>> get it
>> running better - it was the equivalent of giving the
>> television a good
>> whack - but I seem to recall that increasing the md stripe
>> cache size
>> helped the most.
>>
>> I don't currently have access to my work computer where the
>> command
>> history lives, so this is all I have for now. If I find
>> anything more
>> to try, I'll chime in.
>>
>> -- Kristleifur
>> --
>> 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
>>
>
> Well it is trundling along at about that speed still if only i had know that if i was adding 2 drives it would be much quciker as i plan to add another drive at the end of the week! i figured it was more to potentially go wrong!
>
> Anyways if you can suggest any commands that might speed it up i'd be very grateful!
>
>
> -----------------------
> N: Jon Hardcastle
> E: Jon@eHardcastle.com
> 'Do not worry about tomorrow, for tomorrow will bring worries of its own.'
>
> ***********
> Please note, I am phasing out jd_hardcastle AT yahoo.com and replacing it with jon AT eHardcastle.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
>
--
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:[~2010-01-03 20:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-02 8:52 Raid 5 to 6 reshape q Jon Hardcastle
2010-01-02 12:08 ` John Robinson
2010-01-02 12:19 ` Kristleifur Daðason
2010-01-03 18:07 ` Jon Hardcastle
2010-01-03 20:14 ` Billy Crook [this message]
2010-01-03 20:34 ` Peter Rabbitson
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=a43edf1b1001031214m6a4bea69ja17508b7da41efbd@mail.gmail.com \
--to=billycrook@gmail.com \
--cc=Jon@ehardcastle.com \
--cc=kristleifur@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;
as well as URLs for NNTP newsgroup(s).