首页 > 代码库 > rhel6 裸设备绑定

rhel6 裸设备绑定


修改/etc/udev/rules.d/60-raw.rules,增加以下内容:
ACTION=="add", KERNEL=="sdb1", RUN+="/bin/raw /dev/raw/raw1 %N" 

KERNEL=="raw1", OWNER="oracle", GROUP="oinstall", MODE="0777" 

ACTION=="add", KERNEL=="sdc1", RUN+="/bin/raw /dev/raw/raw2 %N" 

KERNEL=="raw2", OWNER="oracle", GROUP="oinstall", MODE="0777"