Debian Add raw bare device

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.