I. Check if the system has raw modules enabled
[Email protected]:~# lsmod|grep Raw
If the system does not have RAW modules enabled!
Two. Set the system to automatically enable raw
[Email protected]:~# echo Raw >>/etc/modules [email protected]:~# cat/etc/modules #/etc/modules:kernel Modules T o Load at boot time.## This file contains the names of kernel modules that should is loaded# at boot time, one per line. Lines beginning with "#" is ignored.# Parameters can be specified after the module Name.loopraw
Three. Reboot reboot the system and check again to see if the raw module is enabled
[Email protected]:~# lsmod|grep rawraw 12498 0
Four. " Create a logical Volume (LV) based on a volume group (VG)
[Email protected]:~# lvcreate-n stores_demo01-l 2G Frog
Five: Map the original device to the newly created Logical volume (partition)
[Email protected]:~# raw/dev/raw/raw1/dev/frog/stores_demo01/dev/raw/raw1: bound to Major 254, minor 6
Check again:
[Email protected]:~# raw-qa/dev/raw/raw1: bound to Major 254, minor 6
Debian Add raw bare device