pvcreate: WARNING!
Andrew Henderson
I'm currently messing around creating LVMs on an external drive and think I may have deleted something by mistake!
When I run pvcreate /dev/sdc1 to create my physical volume, I get this message:
WARNING: Device for PV 0JAtDx-VWuk-Xv7E-SVHl-saUz-5JFI-IQ4Jq6 not found or rejected by a filter.Yet pv is still created?
Any ideas?
2 Answers
There might be some stale information, either in the kernel or cached by the LVM tools, about the data on /dev/sdc or /dev/sdc1 that was suggesting this device is suspicious to be used as a PV storage. Can you check the following commands if everything is as you expect them to be, and no errors show up?
dmesg|grep sdc
fdisk -l /dev/sdc
blkid
lsblk -f(None of the above should change anything on any of the devices)
If it's about LVM's cache, you may need
pvscan --cacheto refresh it.
1You should try:
sudo pvcreate -ff /dev/sdc1 1