linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robin Bowes <robin-gmane@robinbowes.com>
To: linux-raid@vger.kernel.org
Subject: Re: error opening /dev/md2: No such file or directory
Date: Thu, 02 Dec 2004 18:37:28 +0000	[thread overview]
Message-ID: <41AF60E8.30703@robinbowes.com> (raw)
In-Reply-To: <41AF5F5A.4090709@starnetworks.us>

Kevin P. Fleming wrote:
> Robin Bowes wrote:
> 
>> # mdadm --create /dev/md2 --level=1 --raid-devices=2 /dev/sdc1 missing
>> mdadm: error opening /dev/md2: No such file or directory
> 
> In the meantime, you can manually create /dev/mdX nodes with mknod, just 
> as you would have done before. Once the array is created, if you have it 
> set to auto-start (using 0xfd partition types), it the device node will 
> automatically appear when you boot your system. If you don't have it set 
> to auto-start, you'll have to add the "mknod" command to your system 
> startup scripts before trying to start the array directly.

OK, they are set to auto-start.

I wasn't sure how to use mknod. So here's what I did:

[root@dude dev]# mknod --help
Usage: mknod [OPTION]... NAME TYPE [MAJOR MINOR]
Create the special file NAME of the given TYPE.

   -Z, --context=CONTEXT   set security context (quoted string)
Mandatory arguments to long options are mandatory for short options too.
   -m, --mode=MODE   set permission mode (as in chmod), not a=rw - umask
       --help     display this help and exit
       --version  output version information and exit

Both MAJOR and MINOR must be specified when TYPE is b, c, or u, and they
must be omitted when TYPE is p.  If MAJOR or MINOR begins with 0x or 0X,
it is interpreted as hexadecimal; otherwise, if it begins with 0, as octal;
otherwise, as decimal.  TYPE may be:

   b      create a block (buffered) special file
   c, u   create a character (unbuffered) special file
   p      create a FIFO

Report bugs to <bug-coreutils@gnu.org>.
[root@dude dev]# mknod /dev/md2 b
mknod: when creating special files, major and minor device
numbers must be specified
Try `mknod --help' for more information.
[root@dude dev]# ls /dev/md1
/dev/md1
[root@dude dev]# file /dev/md1
/dev/md1: block special (9/1)
[root@dude dev]# file /dev/md0
/dev/md0: block special (9/0)
[root@dude dev]# file /dev/md5
/dev/md5: block special (9/5)
[root@dude dev]# mknod /dev/md2 b 9 2
[root@dude dev]# ls /dev/md2
/dev/md2

Done!

Thanks,

R.


  reply	other threads:[~2004-12-02 18:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-02 18:03 error opening /dev/md2: No such file or directory Robin Bowes
2004-12-02 18:30 ` Kevin P. Fleming
2004-12-02 18:37   ` Robin Bowes [this message]
2004-12-02 20:43 ` Luca Berra

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=41AF60E8.30703@robinbowes.com \
    --to=robin-gmane@robinbowes.com \
    --cc=linux-raid@vger.kernel.org \
    /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).