From: "bo" <bo@sosnetwork.net>
To: Danilo Godec <danci@agenda.si>, Maurice Hilarius <maurice@harddata.com>
Cc: Linux-raid <linux-raid@vger.kernel.org>
Subject: Re: couple of seemingly dumb questions
Date: Fri, 19 Apr 2002 08:49:18 -0700 [thread overview]
Message-ID: <01b501c1e7b9$c3c9e8c0$6501a8c0@bomoon> (raw)
In-Reply-To: Pine.LNX.4.30.0204190802560.4405-100000@duplo.agenda.si
Danilo,
If I have a h/w support for IDE hot swap then what do you recommand for
the same as you suggested for scsi below?
Thansk,
Bo
----- Original Message -----
From: "Danilo Godec" <danci@agenda.si>
To: "Maurice Hilarius" <maurice@harddata.com>
Cc: "Linux-raid" <linux-raid@vger.kernel.org>
Sent: Thursday, April 18, 2002 11:20 PM
Subject: Re: couple of seemingly dumb questions
> On Thu, 18 Apr 2002, Maurice Hilarius wrote:
>
> > On software RAID/raidtools how does one change the rebuild priority on a
> > replacement disk or resync?
> > I don't mind giving higher CPU priority, since in many cases the boxes I
am
> > using have lots more CPU than is being used most of the time.
>
> With 2.2 kernels, you can simply use 'cat /proc/sys/dev/md/speed-limit',
> to see the *minimum* rebuild rate. You can change it using
> 'echo 200000 > /proc/sys/dev/md/speed-limit'.
>
> With 2.4 kernels, there are two files in '/proc/sys/dev/raid/', called
> 'speed_limit_max' and 'speed_limit_min'. I think the rest is pretty
> obvious.
>
> > Secondly:
> > With a software RAID5 setup, with disks in removable hot-swap trays, I
want
> > to be able to pull a failed disk and replace it and have it then
rebuild.
> > Problem is, when I pull the disk I get lots of error messages, and then
> > when I replace it there is nothing happening to redetect that the disk
is
> > changed, and allow me to rebuild. If I reboot then the machine does
resync
> > with the new drive, but surely there must be a way without a reboot?
>
> I suppose you have SCSI disks (I think hot-swap IDE is just not that far
> along).
>
> First you have to make sure, that the failed disk is not in use anymore.
> This means using 'raidhotremove' for every partition of that disk, that
> may be in use (also check for non-RAID partition, if they exist). When
> you're sure the disk is not used anymore, make the kernel 'release' the
> disk from SCSI bus using:
>
> echo "scsi remove-single-device 0 1 2 3" >/proc/scsi/scsi
>
> Check 'cat /proc/scsi/scsi' to check if the failed disk is still listed.
> If it is, it's probably still in use and can't yet be removed. Re-check
> the first step... Else, you can pull the disk out and install a new one.
>
> Before you can use the new disk, you have to make the kernel accept it to
> SCSI. Use:
>
> echo "scsi add-single-device 0 1 2 3" >/proc/scsi/scsi
>
> Check 'cat /proc/scsi/scsi' if the new disk has appeared. If it has,
> you're all set to partition the disk and use it at will.
>
> D.
>
> PS: See /usr/src/linux/drivers/scsi/scsi.c for more about this
> /proc/scsi/scsi commands.
>
> -
> 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:[~2002-04-19 15:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-19 4:48 couple of seemingly dumb questions Maurice Hilarius
2002-04-19 6:20 ` Danilo Godec
2002-04-19 15:49 ` bo [this message]
2002-04-19 16:01 ` Maurice Hilarius
2002-04-19 22:26 ` Danilo Godec
2002-04-19 22:22 ` Danilo Godec
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='01b501c1e7b9$c3c9e8c0$6501a8c0@bomoon' \
--to=bo@sosnetwork.net \
--cc=danci@agenda.si \
--cc=linux-raid@vger.kernel.org \
--cc=maurice@harddata.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