#1 Device /dev/sdb excluded by a filter
Vgextend : “device excluded by a filter”
pvcreate --restorefile fails "/dev/sdx device not found or ignored by filtering" in XenServer
[linux-lvm] pvcreate can't use entire disk?
How to wipe a signature from a disk device on Linux with wipefs command
[SOLVED] [LVM] pvcreate - ignored by filtering
Description of the problem: When
pvcreate is executed, the following error occurs:
Device /dev/sdb excluded by a filter
If you want to find the cause of the problem, you can use the -v option to display debugging information. Use it multiple times to increase the output of debugging information.
Cause of the problem:
Execute pvcreate -vv /dev/sdb1 to output debugging information. The cause of the problem is as follows:
/dev/sdb: Skipping: Partition table signature found
The specific reason has not been found, is it impossible to use the whole game? But I tested it under CentOS (virtual disk in virtual machine), no problem.
Solution:
Create a new partition, and then create a PV on the partition: pvcreate /dev/sdb1
At the beginning, when the error occurred, the PV was created on /dev/sdb. There was no partition at that time, but the problem was not caused by non-partitioning.
#2 vgcreate -- volume group directory or file already exists
Re: [linux-lvm] cannot create a volume group named the same as one already removed
[linux-lvm] cannot create a volume group named the same as one already removed
Problem description:
When executing the vgcreate command to create a volume group, the following error is prompted:
vgcreate -- volume group directory or file already exists vgcreate -- please choose a different name
When executing vgremove to delete the volume group, the following error is prompted again
vgremove -- volume group "volgrp2" doesn't exist
The cause of the problem:
There is no specific explanation and explanation.
Solution:
Use the rm command to delete the volume group:
rm -r /dev/<your vg name>