lvm vgcreate fails with ignored devices
Issue
Running vgcreate with devices that are ignored fails to create a VG even though there are also good devices included in the command.
The parameter "pv_min_size = 10240" has been set so the system ignores certain devices below 10MB in size.
This is added to /etc/lvm/lvm.conf
# Ignore devices smaller than 2MB such as floppy drives.
pv_min_size = 10240
Example:
vgcreate new_testvg /dev/mapper/mpathb /dev/mapper/mpathc
/dev/mapper/mpathb # good device > 10MB it is 33GB
/dev/mapper/mpathc # bad device < 10MB
output of command:
[root@host lvm]# vgcreate new_testvg /dev/mapper/mpathb /dev/mapper/mpathc
Device /dev/mapper/mpathc not found (or ignored by filtering).
Unable to add physical volume '/dev/mapper/mpathc' to volume group 'new_testvg'.
Expected result:
The VG new_testvg should be created with the good device and the ignored one should be ignored as it says it is.
Actual result:
no VG is created.
Environment
- Red Hat Enterprise Linux (All Versions)
- LVM
- pv_min_size parameter set
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
