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