修改/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"
时间: 2024-10-26 09:23:52