* Manually fail a disk?
@ 2003-01-19 13:29 Robert L. Harris
2003-01-19 14:43 ` Derek Vadala
0 siblings, 1 reply; 4+ messages in thread
From: Robert L. Harris @ 2003-01-19 13:29 UTC (permalink / raw)
To: Linux-Raid
[-- Attachment #1: Type: text/plain, Size: 728 bytes --]
I've got a disk that's starting to fail hard. It's generating alot of
errors in dmesg and /var/log/messages. If the raid disk gets any usage
it'll lock up the box it's spewing errors so fast. I can't get out to
physically yank the disk until Tues but need it off-lined now. Is there
a way to tell mdtools (version 0.42-33) to mark a disk faulty and not
use it?
Robert
:wq!
---------------------------------------------------------------------------
Robert L. Harris | PGP Key ID: FC96D405
DISCLAIMER:
These are MY OPINIONS ALONE. I speak for no-one else.
FYI:
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Manually fail a disk?
2003-01-19 13:29 Manually fail a disk? Robert L. Harris
@ 2003-01-19 14:43 ` Derek Vadala
2003-01-19 21:08 ` Robert L. Harris
0 siblings, 1 reply; 4+ messages in thread
From: Derek Vadala @ 2003-01-19 14:43 UTC (permalink / raw)
To: Linux-Raid
> I've got a disk that's starting to fail hard. It's generating alot of
> errors in dmesg and /var/log/messages. If the raid disk gets any usage
> it'll lock up the box it's spewing errors so fast. I can't get out to
> physically yank the disk until Tues but need it off-lined now. Is there
> a way to tell mdtools (version 0.42-33) to mark a disk faulty and not
> use it?
I'll assume this is a RAID-1 or RAID-5 and that you're not trying this on
a non-redundant array...
# mdadm /dev/md0 --fail /dev/sda1
# mdadm /dev/md0 --remove /dev/sda1
The first command fails /dev/sda1 (a member of /dev/md0) and the second
command removes it from /dev/md0.
If you are using raidtools try:
# raidsetfaulty /dev/md0 /dev/sda1
# raidhotremove /dev/md0 /dev/sda1
--
Derek Vadala, derek@cynicism.com, http://www.cynicism.com/~derek
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Manually fail a disk?
2003-01-19 14:43 ` Derek Vadala
@ 2003-01-19 21:08 ` Robert L. Harris
0 siblings, 0 replies; 4+ messages in thread
From: Robert L. Harris @ 2003-01-19 21:08 UTC (permalink / raw)
To: Derek Vadala; +Cc: Linux-Raid
[-- Attachment #1: Type: text/plain, Size: 1776 bytes --]
raidsetsetfaulty gave back an error (scrolled off the screen and the
machine has since seized up. raidhotremove pretty much hung up trying
to get disk access. I was hoping I could tell the kernel or the md
driver to mark it bad and take it out of the array.
Thus spake Derek Vadala (derek@cynicism.com):
> > I've got a disk that's starting to fail hard. It's generating alot of
> > errors in dmesg and /var/log/messages. If the raid disk gets any usage
> > it'll lock up the box it's spewing errors so fast. I can't get out to
> > physically yank the disk until Tues but need it off-lined now. Is there
> > a way to tell mdtools (version 0.42-33) to mark a disk faulty and not
> > use it?
>
> I'll assume this is a RAID-1 or RAID-5 and that you're not trying this on
> a non-redundant array...
>
>
> # mdadm /dev/md0 --fail /dev/sda1
> # mdadm /dev/md0 --remove /dev/sda1
>
> The first command fails /dev/sda1 (a member of /dev/md0) and the second
> command removes it from /dev/md0.
>
> If you are using raidtools try:
>
> # raidsetfaulty /dev/md0 /dev/sda1
> # raidhotremove /dev/md0 /dev/sda1
>
> --
> Derek Vadala, derek@cynicism.com, http://www.cynicism.com/~derek
>
> -
> 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
:wq!
---------------------------------------------------------------------------
Robert L. Harris | PGP Key ID: FC96D405
DISCLAIMER:
These are MY OPINIONS ALONE. I speak for no-one else.
FYI:
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Manually fail a disk?
@ 2003-01-20 19:46 Cress, Andrew R
0 siblings, 0 replies; 4+ messages in thread
From: Cress, Andrew R @ 2003-01-20 19:46 UTC (permalink / raw)
To: 'Robert L. Harris', Derek Vadala; +Cc: Linux-Raid
Robert,
I'm not surprised that raidsetfaulty and raidhotremove wouldn't do the job,
that's why mdadm is needed.
Andy
-----Original Message-----
From: Robert L. Harris [mailto:Robert.L.Harris@rdlg.net]
Sent: Sunday, January 19, 2003 4:09 PM
To: Derek Vadala
Cc: Linux-Raid
Subject: Re: Manually fail a disk?
raidsetsetfaulty gave back an error (scrolled off the screen and the
machine has since seized up. raidhotremove pretty much hung up trying
to get disk access. I was hoping I could tell the kernel or the md
driver to mark it bad and take it out of the array.
Thus spake Derek Vadala (derek@cynicism.com):
> > I've got a disk that's starting to fail hard. It's generating alot of
> > errors in dmesg and /var/log/messages. If the raid disk gets any usage
> > it'll lock up the box it's spewing errors so fast. I can't get out to
> > physically yank the disk until Tues but need it off-lined now. Is there
> > a way to tell mdtools (version 0.42-33) to mark a disk faulty and not
> > use it?
>
> I'll assume this is a RAID-1 or RAID-5 and that you're not trying this on
> a non-redundant array...
>
>
> # mdadm /dev/md0 --fail /dev/sda1
> # mdadm /dev/md0 --remove /dev/sda1
>
> The first command fails /dev/sda1 (a member of /dev/md0) and the second
> command removes it from /dev/md0.
>
> If you are using raidtools try:
>
> # raidsetfaulty /dev/md0 /dev/sda1
> # raidhotremove /dev/md0 /dev/sda1
>
> --
> Derek Vadala, derek@cynicism.com, http://www.cynicism.com/~derek
>
> -
> 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
:wq!
---------------------------------------------------------------------------
Robert L. Harris | PGP Key ID: FC96D405
DISCLAIMER:
These are MY OPINIONS ALONE. I speak for no-one else.
FYI:
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-01-20 19:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-19 13:29 Manually fail a disk? Robert L. Harris
2003-01-19 14:43 ` Derek Vadala
2003-01-19 21:08 ` Robert L. Harris
-- strict thread matches above, loose matches on Subject: below --
2003-01-20 19:46 Cress, Andrew R
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).