Translated message

A translation of this page exists in English.

pvcreate 失败,显示 "Can't' not open <device>.Mounted filesystem?"

Solution In Progress - Updated -

Issue

  • pvcreate 出现一个错误:

    # pvcreate /dev/mapper/mpath1
    Can't open /dev/mapper/mpath1 exclusively. Mounted filesystem?
  • 对于 vgcreate,也会显示以下错误消息:

    # vgcreate vg1 /dev/mapper/mpath1
    Can't open /dev/mapper/mpath1 exclusively. Mounted filesystem?
    Unable to add physical volume '/dev/mapper/mpath1' to volume group 'vg1'.

Environment

  • Red Hat Enterprise Linux (RHEL) 4, 5, 6, 7
  • LVM2
    • 使用 pvcreate 创建一个物理卷

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content