LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 05-17-2005, 01:41 PM   #1
tantrix
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 01:49 PM.
 
  


Reply


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 05:47 AM
Unbuffered Block Device rtg Linux - Hardware 2 09-02-2005 07:50 AM
What is a New Block Device cthomas Linux - Hardware 9 08-19-2005 12:14 PM
block device name??? franco Debian 2 10-23-2003 06:15 AM
What is a 'block device' rwelch Linux - General 1 03-10-2003 01:05 AM


All times are GMT -5. The time now is 05:09 AM.

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