When trying to restore the lvm metadata on a Physical volume from backup using the command pvcreate --restorefile, it is failing with the error
/dev/sdx device not found
3. if not, run pvscan -vvv command to see why the device is getting ignored by the lvm . In this case we could see the device was getting ignored saying "Skipping: Partition table signature found"
4. Remove the partition table structure by dd out the first 1 MB
# dd if=/dev/zero of=/dev/sdb bs=1M count=1
Partition table on the device was causing the device to be ignored during the pvscan