Thread (11 messages) 11 messages, 7 authors, 2007-05-12

Re: "No such device" on --remove

From: Benjamin Schieder <hidden>
Date: 2007-05-10 05:28:45

On 10.05.2007 01:23:27, Michael Tokarev wrote:
Bernd Schubert wrote:
quoted
Benjamin Schieder wrote:

quoted
root@crazyhorse:~# mdadm /dev/md/2 -r /dev/hdh5
mdadm: hot remove failed for /dev/hdh5: No such device

md1 and md2 are supposed to be raid5 arrays.
You are probably using udev, don't you? Somehow there's presently
no /dev/hdh5, but to remove /dev/hdh5 out of the raid, mdadm needs this
device. There's a workaround, you need to create the device in /dev using
mknod and then you can remove it with mdadm.
In case the /dev/hdh5 device node is missing, mdadm will complain
"No such file or directory" (ENOENT), instead of "No such device"
(ENODEV).

In this case, as I explained in my previous email, the arrays aren't
running, and the error refers to manipulations (md ioctls) with existing
/dev/md/2.

It has nothing to do with udev.
Ah, that's good to know. I also thought that it couldn't find /dev/hdh5 from
the error message given.

The --force to -A worked fine, btw. Thanks for your help!


Greetings,
	Benjamin
-- 
Benjamin 'blindCoder' Schieder
Registered Linux User #289529: http://counter.li.org
finger blindcoder@scavenger.homeip.net | gpg --import
-- 
/lusr/bin/brain: received signal: SIGIDIOT

Attachments

  • (unnamed) [application/pgp-signature] 189 bytes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help