linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ramon Hofer <ramonhofer@bluewin.ch>
To: stan@hardwarefreak.com
Cc: linux-raid@vger.kernel.org
Subject: Re: Stacked array data recovery
Date: Wed, 27 Jun 2012 21:19:31 +0200	[thread overview]
Message-ID: <20120627211931.466b83ca@hoferr-x61s.hofer.rummelring> (raw)
In-Reply-To: <4FEAFDC5.7030205@hardwarefreak.com>

On Wed, 27 Jun 2012 07:34:13 -0500
Stan Hoeppner <stan@hardwarefreak.com> wrote:

> > With a disk size of 2 TB thid should take about 6 hours?
> 
> Yeah, something like that.
> 
> > I think I'll let it run again this evening so that it can complete
> > until the next day.
> 
> Do them one at a time this time, starting with /dev/sdk.  Remember to
> issue sync.  E.g.
> 
> ~$ dd if=/dev/zero of=/dev/sdk bs=16384; sync
> 
> Try a smaller block size this time, 16KB instead of 1M.

Ok, thanks I will. And additionally I will write down what time I
started each command so when one of them still hasn't finished after 12
hours or so the disk will have to be replaced right?


> Oh, Ramon, before you do any of this, change to the deadline elevator:
> 
> ~$ echo deadline > /sys/block/sdk/queue/scheduler
> 
> Dangit, Ramon, I can't believe I forgot to tell you this when you
> installed the 9240.  Debian, like most distros, defaults to the CFQ
> elevator, which is good, I guess, for interactive desktop use.  But it
> sucks like a Hoover with most server workloads.  So add this to your
> kernel boot options in grub's menu.list, normally found in
> /boot/grub/menu.lst:
> 
> elevator=deadline
> 
> That will enable deadline each time you boot.  So after you make the
> change go ahead and reboot the system.  Then proceed with your dd
> commands.

Very interesting!!!
Thanks for that :-)

Btw: I use grub2. The file I edited is /etc/default/grub. I changed
this line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet elevator=deadline"

and ran
~# update-grub

I checked if the right scheduler is running:

~$ cat /sys/block/sdk/queue/scheduler
noop [deadline] cfq 

Is this correct what I did?


> >> So at this point you can try creating the RAID5 array again.  If
> >> the dd command did what we wanted, /dev/sdk should have remapped
> >> the bad sector, and you shouldn't get the error kicking that
> >> drive.  If you still do, you may need to replace the drive.
> > 
> > I'm not sure if I didn't kille the dd command too early.
> > Maybe it's better to let it run again. Maybe even each disk at once?
> > Maybe this would already tell if a disk is faulty?
> 
> Yeah, do em one at a time this time.  It'll cause less load, and you
> should still be able to watch movies etc while it runs.

And I can see if one of them behaves strangely :-)


Cheers
Ramon

  reply	other threads:[~2012-06-27 19:19 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-21 22:44 Stacked array data recovery Ramon Hofer
2012-06-22 14:32 ` Ramon Hofer
2012-06-23 12:05   ` Stan Hoeppner
2012-06-22 14:37 ` Ramon Hofer
2012-06-23 12:09   ` Stan Hoeppner
2012-06-24 12:15     ` Ramon Hofer
2012-06-24 14:12       ` Stan Hoeppner
2012-06-25  3:51         ` Stan Hoeppner
2012-06-25 10:31           ` Ramon Hofer
2012-06-26  1:53             ` Stan Hoeppner
2012-06-26  8:37               ` Ramon Hofer
2012-06-26 20:23                 ` Stan Hoeppner
2012-06-27  9:07                   ` Ramon Hofer
2012-06-27 12:34                     ` Stan Hoeppner
2012-06-27 19:19                       ` Ramon Hofer [this message]
2012-06-28 19:57                         ` Stan Hoeppner
2012-06-29  7:58                           ` Ramon Hofer
2012-06-28 18:44                     ` Krzysztof Adamski
2012-06-29  7:44                       ` Ramon Hofer
2012-06-29 10:15                         ` John Robinson
2012-06-29 11:19                           ` Ramon Hofer
2012-07-02 10:12                   ` Ramon Hofer
2012-07-02 11:46                     ` Phil Turmel
2012-07-02 12:18                       ` Ramon Hofer
2012-07-02 21:42                         ` Phil Turmel
2012-07-02 20:27                     ` Stan Hoeppner
2012-07-03  7:16                       ` Ramon Hofer

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=20120627211931.466b83ca@hoferr-x61s.hofer.rummelring \
    --to=ramonhofer@bluewin.ch \
    --cc=linux-raid@vger.kernel.org \
    --cc=stan@hardwarefreak.com \
    /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).