LINUX7 creating a logical Volume LV error problem

Source: Internet
Author: User

LINUX7 creating a logical Volume LV error problem

    1. System environment
      #系统版本cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core)
    2. Create steps
      #创建LVM分区fdisk /dev/sdb
      #安装lvm2包yum install -y lvm2
      #创建pvpvcreate /dev/sdb1
      #创建vgvgdata vgdata /dev/sdb1
      #创建lvlvcreate  -n lvdata -l +100%FREE  vgdata
      #格式化逻辑卷mkfs.ext4 /dev/vgdata/lvdata
      #创建挂载点mkdir /data
    3. Create LV Error in LVM
      #创建lvlvcreate  -n lvdata -l +100%FREE  vgdata#报错信息/dev/mapper/vgdata-lvdata: open failed: No such file or directory/dev/vgdata/lvdata: not found: device not clearedAborting. Failed to wipe start of new LV.
    4. Workaround
      #使用参数-Znlvcreate -Zn -n lvdata -l +100%FREE  

LINUX7 creating a logical Volume LV error problem

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.