BeginLinux Community
Welcome Guest   [Register]  [Login]
 Subject :Creating RAID.. 2009-09-11 02:43:39 
joe
Joined: 2009-05-28 06:21:09
Posts: 21
Location
I was reading some of the training information you provided me on RAID and saw the mknod command to create a RAID device file, how does that work?
IP Logged
 Subject :Re:Creating RAID.. 2009-09-11 02:45:52 
MikeW
Rookery Moderator
Joined: 2009-06-03 13:47:46
Posts: 37
Location
By default the system comes with /dev/md0 created. I had created /dev/md1 before so I did not need to create it. All elements of Linux can be broken down into files so that a device like a RAID array ultimately is a file in Linux. When you use mknod it will create a device file in the /dev directory. the "b" shows that it is a block device, the "9" is the major number, in other words all RAID devices are of the "9" type. The "2" is the device number. You use the "2" to indicate /dev/md1 because the RAID devices start with "0", which makes it a little confusing.
IP Logged
Page # 


Powered by ccBoard