1. Edit /etc/udev/rules.d/60-raw.rules
and add lines similar to the following:
ACTION!="add|change", GOTO="raw_end"
# Create raw character device mapping:
ENV{DM_VG_NAME}=="vg_test", ENV{DM_LV_NAME}=="lv_test1", RUN+="/bin/raw /dev/raw/raw1 %N"
ENV{DM_VG_NAME}=="vg_test", ENV{DM_LV_NAME}=="lv_test2", RUN+="/bin/raw /dev/raw/raw2 %N"
# To set permissions:
KERNEL=="raw*", OWNER:="testuser", GROUP:="testuser", MODE:="0660"
LABEL="raw_end"
2. Reload the rule to apply:
# udevadm control --reload-rules
# udevadm trigger --type=devices --action=change
3. ±âŸ ¹æ¹ý
/etc/rc.local
/etc/rc.loca ¿¡ ÇØ´ç ³»¿ëÀ» Á÷Á¢ ÀÌ¿ëÇÏ´Â ¹æ¹ý
raw /dev/vg00/lv00 /dev/raw1
raw /dev/vg00/lv01 /dev/raw2
.
.
.
chown username.groupname /dev/raw*