pvcreate 失败,显示 "Can't' not open <device>.Mounted filesystem?"
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.