vi /etc/udev/rules.d/20-names.rules
ACTION=="add",KERNEL==”sd*”, BUS==”scsi”, PROGRAM==”/sbin/scsi_id –gs %p”, RESULT==”xxxxxx”, NAME=”sdb%n”
vi /etc/udev/rules.d/60-raw.rules 挂为裸设备
ACTION=="add", NAME=="mydisk1", RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add", NAME=="mydisk2", RUN+="/bin/raw /dev/raw/raw2 %N"
KERNEL=="raw[0-9]*",OWNER="root",GROUP="disk",MODE="640"