linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to remove non-existant device
@ 2010-09-23  7:30 Benjamin Schieder
  2010-09-23 13:16 ` John Robinson
  2010-09-23 17:23 ` Bill Davidsen
  0 siblings, 2 replies; 5+ messages in thread
From: Benjamin Schieder @ 2010-09-23  7:30 UTC (permalink / raw)
  To: linux-raid

[-- Attachment #1: Type: text/plain, Size: 1047 bytes --]

Hi all.

On a SLES 10 SP 3 x86_64 version I'm encountering the following problem:

Two disks sda and sdb are in a RAID 1 configuration. When pulling one
disk and replacing it it becomes sdc instead of sda. The RAID is now
degraded:

kblhbe101:~ # cat /proc/mdstat
Personalities : [raid1] [raid0] [raid5] [raid4] [linear]
md2 : active raid1 sda8[2](F) sdb8[1]
      286125568 blocks [2/1] [_U]

md0 : active raid1 sda5[2](F) sdb5[1]
      529984 blocks [2/1] [_U]

md3 : active raid1 sda7[2](F) sdb7[1]
      4200896 blocks [2/1] [_U]

md1 : active raid1 sda6[2](F) sdb6[1]
      2104384 blocks [2/1] [_U]

unused devices: <none>

But now I can't remove the sda partitions from the RAID:
kblhbe101:~ # mdadm /dev/md0 -r /dev/sda5
mdadm: cannot find /dev/sda5: No such file or directory
kblhbe101:~ # mdadm /dev/md0 -r sda5
mdadm: cannot find sda5: No such file or directory

What am I doing wrong here?
kblhbe101:~ # mdadm --version
mdadm - v2.6 - 21 December 2006


Trying mdadm -Iq /dev/md0 results in a segfault...


Kind regards,
     Benjamin

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to remove non-existant device
  2010-09-23  7:30 How to remove non-existant device Benjamin Schieder
@ 2010-09-23 13:16 ` John Robinson
  2010-09-23 21:54   ` Neil Brown
  2010-09-23 17:23 ` Bill Davidsen
  1 sibling, 1 reply; 5+ messages in thread
From: John Robinson @ 2010-09-23 13:16 UTC (permalink / raw)
  To: Benjamin Schieder; +Cc: linux-raid

On 23/09/2010 08:30, Benjamin Schieder wrote:
> Hi all.
>
> On a SLES 10 SP 3 x86_64 version I'm encountering the following problem:
>
> Two disks sda and sdb are in a RAID 1 configuration. When pulling one
> disk and replacing it it becomes sdc instead of sda. The RAID is now
> degraded:
>
> kblhbe101:~ # cat /proc/mdstat
> Personalities : [raid1] [raid0] [raid5] [raid4] [linear]
> md2 : active raid1 sda8[2](F) sdb8[1]
>        286125568 blocks [2/1] [_U]
>
> md0 : active raid1 sda5[2](F) sdb5[1]
>        529984 blocks [2/1] [_U]
>
> md3 : active raid1 sda7[2](F) sdb7[1]
>        4200896 blocks [2/1] [_U]
>
> md1 : active raid1 sda6[2](F) sdb6[1]
>        2104384 blocks [2/1] [_U]
>
> unused devices:<none>
>
> But now I can't remove the sda partitions from the RAID:
> kblhbe101:~ # mdadm /dev/md0 -r /dev/sda5
> mdadm: cannot find /dev/sda5: No such file or directory
> kblhbe101:~ # mdadm /dev/md0 -r sda5
> mdadm: cannot find sda5: No such file or directory
>
> What am I doing wrong here?
> kblhbe101:~ # mdadm --version
> mdadm - v2.6 - 21 December 2006

Try `mdadm /dev/md0 -r missing`.

Cheers,

John.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to remove non-existant device
  2010-09-23  7:30 How to remove non-existant device Benjamin Schieder
  2010-09-23 13:16 ` John Robinson
@ 2010-09-23 17:23 ` Bill Davidsen
  1 sibling, 0 replies; 5+ messages in thread
From: Bill Davidsen @ 2010-09-23 17:23 UTC (permalink / raw)
  To: Benjamin Schieder; +Cc: linux-raid

Benjamin Schieder wrote:
> Hi all.
>
> On a SLES 10 SP 3 x86_64 version I'm encountering the following problem:
>
> Two disks sda and sdb are in a RAID 1 configuration. When pulling one
> disk and replacing it it becomes sdc instead of sda. The RAID is now
> degraded:
>
> kblhbe101:~ # cat /proc/mdstat
> Personalities : [raid1] [raid0] [raid5] [raid4] [linear]
> md2 : active raid1 sda8[2](F) sdb8[1]
>        286125568 blocks [2/1] [_U]
>
> md0 : active raid1 sda5[2](F) sdb5[1]
>        529984 blocks [2/1] [_U]
>
> md3 : active raid1 sda7[2](F) sdb7[1]
>        4200896 blocks [2/1] [_U]
>
> md1 : active raid1 sda6[2](F) sdb6[1]
>        2104384 blocks [2/1] [_U]
>
> unused devices:<none>
>
> But now I can't remove the sda partitions from the RAID:
> kblhbe101:~ # mdadm /dev/md0 -r /dev/sda5
> mdadm: cannot find /dev/sda5: No such file or directory
> kblhbe101:~ # mdadm /dev/md0 -r sda5
> mdadm: cannot find sda5: No such file or directory
>
> What am I doing wrong here?
>    

You want /dev/sda5

-- 
Bill Davidsen<davidsen@tmr.com>
   "We can't solve today's problems by using the same thinking we
    used in creating them." - Einstein


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to remove non-existant device
  2010-09-23 13:16 ` John Robinson
@ 2010-09-23 21:54   ` Neil Brown
  2010-09-24  2:18     ` John Robinson
  0 siblings, 1 reply; 5+ messages in thread
From: Neil Brown @ 2010-09-23 21:54 UTC (permalink / raw)
  To: John Robinson; +Cc: Benjamin Schieder, linux-raid

On Thu, 23 Sep 2010 14:16:19 +0100
John Robinson <john.robinson@anonymous.org.uk> wrote:

> On 23/09/2010 08:30, Benjamin Schieder wrote:
> > Hi all.
> >
> > On a SLES 10 SP 3 x86_64 version I'm encountering the following problem:
> >
> > Two disks sda and sdb are in a RAID 1 configuration. When pulling one
> > disk and replacing it it becomes sdc instead of sda. The RAID is now
> > degraded:
> >
> > kblhbe101:~ # cat /proc/mdstat
> > Personalities : [raid1] [raid0] [raid5] [raid4] [linear]
> > md2 : active raid1 sda8[2](F) sdb8[1]
> >        286125568 blocks [2/1] [_U]
> >
> > md0 : active raid1 sda5[2](F) sdb5[1]
> >        529984 blocks [2/1] [_U]
> >
> > md3 : active raid1 sda7[2](F) sdb7[1]
> >        4200896 blocks [2/1] [_U]
> >
> > md1 : active raid1 sda6[2](F) sdb6[1]
> >        2104384 blocks [2/1] [_U]
> >
> > unused devices:<none>
> >
> > But now I can't remove the sda partitions from the RAID:
> > kblhbe101:~ # mdadm /dev/md0 -r /dev/sda5
> > mdadm: cannot find /dev/sda5: No such file or directory
> > kblhbe101:~ # mdadm /dev/md0 -r sda5
> > mdadm: cannot find sda5: No such file or directory
> >
> > What am I doing wrong here?
> > kblhbe101:~ # mdadm --version
> > mdadm - v2.6 - 21 December 2006
> 
> Try `mdadm /dev/md0 -r missing`.

Close.  "missing" is only meaningful with --re-add.
You really want  "-r faileded" or "-r detached"

NeilBrown


> 
> Cheers,
> 
> John.
> 
> --
> 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to remove non-existant device
  2010-09-23 21:54   ` Neil Brown
@ 2010-09-24  2:18     ` John Robinson
  0 siblings, 0 replies; 5+ messages in thread
From: John Robinson @ 2010-09-24  2:18 UTC (permalink / raw)
  To: Linux RAID

On 23/09/2010 22:54, Neil Brown wrote:
> On Thu, 23 Sep 2010 14:16:19 +0100
> John Robinson<john.robinson@anonymous.org.uk>  wrote:
>> On 23/09/2010 08:30, Benjamin Schieder wrote:
[...]
>>> But now I can't remove the sda partitions from the RAID:
>>> kblhbe101:~ # mdadm /dev/md0 -r /dev/sda5
>>> mdadm: cannot find /dev/sda5: No such file or directory
>>> kblhbe101:~ # mdadm /dev/md0 -r sda5
>>> mdadm: cannot find sda5: No such file or directory
>>>
>>> What am I doing wrong here?
>>> kblhbe101:~ # mdadm --version
>>> mdadm - v2.6 - 21 December 2006
>>
>> Try `mdadm /dev/md0 -r missing`.
>
> Close.  "missing" is only meaningful with --re-add.
> You really want  "-r faileded" or "-r detached"

Bah. I knew it was something like that.

Cheers,

John.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-09-24  2:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-23  7:30 How to remove non-existant device Benjamin Schieder
2010-09-23 13:16 ` John Robinson
2010-09-23 21:54   ` Neil Brown
2010-09-24  2:18     ` John Robinson
2010-09-23 17:23 ` Bill Davidsen

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).