ablog

不器用で落着きのない技術者のメモ

Redhat EL5 での raw デバイスの設定方法

# vi /etc/udev/rules.d/60-raw.rules
ACTION=="add",KERNEL=="sda1",RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add",KERNEL=="sdb1",RUN+="/bin/raw /dev/raw/raw2 %N"
ACTION=="add",KERNEL=="sdc1",RUN+="/bin/raw /dev/raw/raw3 %N"
ACTION=="add",KERNEL=="sdd1",RUN+="/bin/raw /dev/raw/raw4 %N"
ACTION=="add",KERNEL=="sde1",RUN+="/bin/raw /dev/raw/raw5 %N"
ACTION=="add",KERNEL=="sdf1",RUN+="/bin/raw /dev/raw/raw6 %N"
ACTION=="add",KERNEL=="sdg1",RUN+="/bin/raw /dev/raw/raw7 %N"
ACTION=="add",KERNEL=="raw[1-2]",OWNER="root",GROUP="oinstall",MODE="0640"
ACTION=="add",KERNEL=="raw[3-5]",OWNER="crs",GROUP="oinstall",MODE="0640"
ACTION=="add",KERNEL=="raw[6-7]",OWNER="asm",GROUP="asmadmin",MODE="0640"
# start_udev
# raw -qa
# ls -l /dev/raw
  • raw デバイスをフォーマットする
# dd if=/dev/zero of=/dev/raw/raw1 bs=1024k count=100
# dd if=/dev/zero of=/dev/raw/raw2 bs=1024k count=100
# dd if=/dev/zero of=/dev/raw/raw3 bs=1024k count=100
# dd if=/dev/zero of=/dev/raw/raw4 bs=1024k count=100
# dd if=/dev/zero of=/dev/raw/raw5 bs=1024k count=100
# dd if=/dev/zero of=/dev/raw/raw6 bs=1024k count=100
# dd if=/dev/zero of=/dev/raw/raw7 bs=1024k count=100
# dd if=/dev/zero of=/dev/raw/raw8 bs=1024k count=100

http://kbase.redhat.com/faq/FAQ_103_9616.shtm