Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 05-17-2005, 12:41 PM   #1
LQ Newbie
Registered: Apr 2005
Posts: 6

Rep: Reputation: 0
Should Raid come up as a Block Device?

I created a Linux Block Raid-5 array to be used as an iSCSI device over TCP/IP.. The problem is that te /dev/md0 device doesn't show up as a block device. In the strace, the same ioctl that passes for /dev/sd0 and /dev/sg0 fails for /dev/md0. The ioctl I'm using is SG_GET_VERSION_NUM.

Also, lets assume that I don't have /dev/md0 created, even then opening

/dev/md0 doesn't give an error. For example, if I run:

open(devName, O_RDWR) // devName = "/dev/md3"

in strace it actually opens a device. Whereas, if I run:

open(devName, O_RDWR) // devName = "/dev/sd5"

where /dev/sd5 doesn't exist, then it complains. This doesn't make any sense to me.

Last edited by tantrix; 05-17-2005 at 12:49 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Block device /dev/sda3 is not a valid root device.. rincewind Linux - Hardware 7 06-09-2006 04:47 AM
Unbuffered Block Device rtg Linux - Hardware 2 09-02-2005 06:50 AM
What is a New Block Device cthomas Linux - Hardware 9 08-19-2005 11:14 AM
block device name??? franco Debian 2 10-23-2003 05:15 AM
What is a 'block device' rwelch Linux - General 1 03-10-2003 12:05 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration