Use of raw and lvm-based raw in linux

Source: Internet
Author: User
The usage of raw and lvm-based raw in linux-General Linux technology-Linux technology and application information. For more information, see the following. Usage of raw device in linux

# Fdisk/dev/sdb
Raw/dev/raw/raw1/dev/sdb1
Raw/dev/raw/raw2/dev/sdb2
...
To bind to RAWn at each startup, perform the following operations:

Vi/etc/sysconfig/rawdevices
/Dev/raw/raw1/dev/sdb1
/Dev/raw/raw2/dev/sdb2

Usage of lvm-based raw device in linux

Lvcreate-L 2000 M-n lv_user_01 vg_db
Lvcreate-L 2000 M-n lv_user_02 vg_db
...
Raw/dev/raw/raw1/dev/vg_db/lv_user_01
Raw/dev/raw/raw2/dev/vg_db/lv_user_02

To bind to RAWn at each startup, perform the following operations:

Vi/etc/rc. d/rc. local
Raw/dev/raw/raw1/dev/vg_db/lv_user_01
Raw/dev/raw/raw2/dev/vg_db/lv_user_02

That is to say, after the basic lvm raw is restarted, the method for binding to raw is slightly different.
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.