1

I'm unable to create PVs on Multipath-Volumes that are available at /dev/dm-NN where N~[0-9] but I can create them on single digit devices like /dev/dm-9:

# pvcreate /dev/dm-6
  Physical volume "/dev/dm-6" successfully created.

# pvcreate /dev/dm-16
  Device /dev/dm-16 not found (or ignored by filtering).

My Version of LVM is 2.02.168 from Debian 9. The filter ist set to a permissive value:

  filter = [ "a|.*|" ]
  global_filter = [ "a|.*|" ]

Any ideas why two or more digits in the device path can cause it to be filtered by pvcreate?

Archemar
  • 1,474
Fladi
  • 870

1 Answers1

0

I found the culprit. Somehow those disks with two digits in their name had a GPT on them, while those with a single digit had not. I wiped all disks like this:

dd if=/dev/zero of=/dev/dm-xx bs=1M count=100

After that I was able to create PVs on all of them. I'm not able to tell where those GPTs came from.

Fladi
  • 870