# fdisk -l /dev/sdbDisk /dev/sdb: 2147 MB, 2147483648 bytes255 heads, 63 sectors/track, 261 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/sdb1 1 261 2096451 5 Extended/dev/sdb5 1 25 200749+ 83 Linux/dev/sdb6 26 50 200781 83 Linux/dev/sdb7 51 75 200781 83 Linux/dev/sdb8 76 100 200781 83 Linux/dev/sdb9 101 125 200781 83 Linux# vi /etc/udev/rules.d/60-raw.rulesACTION=="add",KERNEL=="sdb5",RUN+="/bin/raw /dev/raw/raw5 %N",OWNER="oracle", GROUP="oinstall", MODE="660"ACTION=="add",KERNEL=="sdb6",RUN+="/bin/raw /dev/raw/raw6 %N",OWNER="oracle", GROUP="oinstall", MODE="660"ACTION=="add",KERNEL=="sdb7",RUN+="/bin/raw /dev/raw/raw7 %N",OWNER="oracle", GROUP="oinstall", MODE="660"ACTION=="add",KERNEL=="sdb8",RUN+="/bin/raw /dev/raw/raw8 %N",OWNER="oracle", GROUP="oinstall", MODE="660"ACTION=="add",KERNEL=="sdb9",RUN+="/bin/raw /dev/raw/raw9 %N",OWNER="oracle", GROUP="oinstall", MODE="660"# raw -qa# start_udevStarting udev: [ OK ]# raw -qa/dev/raw/raw5: bound to major 8, minor 21/dev/raw/raw6: bound to major 8, minor 22/dev/raw/raw7: bound to major 8, minor 23/dev/raw/raw8: bound to major 8, minor 24/dev/raw/raw9: bound to major 8, minor 25# ls -l /dev/rawtotal 0crw-rw---- 1 oracle oinstall 162, 5 Jun 9 17:15 raw5crw-rw---- 1 oracle oinstall 162, 6 Jun 9 17:15 raw6crw-rw---- 1 oracle oinstall 162, 7 Jun 9 17:15 raw7crw-rw---- 1 oracle oinstall 162, 8 Jun 9 17:15 raw8crw-rw---- 1 oracle oinstall 162, 9 Jun 9 17:15 raw9
|