pvcreate give error of reading

Latest response

I have several volumes and I was able to create pvcreate for mpathe and it generated it without any issue, however, when I want to do it for mpathd it gives me the following error

I am getting the following error

pvcreate /dev/mapper/mpathd
  Error reading device /dev/mapper/mpathd at 0 length 512.
  Error reading device /dev/mapper/mpathd at 0 length 4.
  Error reading device /dev/mapper/mpathd at 4096 length 4.
  Error reading device /dev/mapper/mpathd at 0 length 512.
  Error reading device /dev/mapper/mpathd at 0 length 4.
  Error reading device /dev/mapper/mpathd at 4096 length 4.

what should I do to solve this ? how to find what is wrong ?

some info that could be useful

ls -l /dev/mapper/mpathb*
lrwxrwxrwx. 1 root root 7 Jun  3 06:03 /dev/mapper/mpathb -> ../dm-3

and also I added this in a filter (found here https://access.redhat.com/discussions/2423461)

/etc/lvm/lvm.conf file

filter = [ "a|/dev/sda|", "a|/dev/mapper/*|" , "r/block/", "r/disk/", "r/sd.*/", "a/.*/" ]

it did not work and I got the same error.

I also tried to fdisk it but I got this error

fdisk /dev/mapper/mpathd
fdisk: cannot open /dev/mapper/mpathd: Input/output error

I don't know what I should do to fix this issue

Responses