Re: [linux-lvm] " Failed to find physical volume

2021-09-28 Thread Roger Heflin
A possibility I just debugged for a non-booting system. If there is a partition table on the underlying device then that device is not detected as an LVM1/2 member in at least one version of udevd, and won't be seen nor turned on automatically by the systemd-udev code. lvm vgchange -ay worked to

Re: [linux-lvm] " Failed to find physical volume

2021-09-26 Thread alessandro macuz
Thanks Roger, Zdenek, I have my ZVOL on my NAS exposed as LUNs. The initiator were switched off and for unknown reason I found my NAS switched off as well. It had run for long and I feared the worst (CPU/motherboard/etc). Instead once powered up everything started to work again but the LUNs that

Re: [linux-lvm] " Failed to find physical volume

2021-09-24 Thread Zdenek Kabelac
Dne 23. 09. 21 v 20:03 alessandro macuz napsal(a): Thanks Zdenek, so it might be that metadata is corrupted somehow and hence the pvs program doesn't recognize that partition as physical volume? That may explain why lvmdiskscan reports physical disks (by just looking at the partition type 8e)

Re: [linux-lvm] " Failed to find physical volume

2021-09-24 Thread alessandro macuz
Thanks Zdenek, so it might be that metadata is corrupted somehow and hence the pvs program doesn't recognize that partition as physical volume? That may explain why lvmdiskscan reports physical disks (by just looking at the partition type 8e) and pvs completely ignores it. Am I correct? Alex

Re: [linux-lvm] " Failed to find physical volume

2021-09-23 Thread Roger Heflin
If you have lvmetad running and in use then the lvm commands ask it what the system has on it. I have seen on random boots fairly separated systems (rhel7 versions, and many years newer fedora systems) at random fail to find one or more pv.s I have disabled it at home, and in my day job we have

Re: [linux-lvm] " Failed to find physical volume

2021-09-23 Thread Zdenek Kabelac
Dne 22. 09. 21 v 18:48 alessandro macuz napsal(a): fdisk correctly identifies the extended partition as 8e. I wonder which kind of data lvmdiskscan and pvs use in order to list LVM physical volumes. Does PVS check some specific metadata within the partition without just relying on the type of

Re: [linux-lvm] " Failed to find physical volume

2021-09-23 Thread alessandro macuz
fdisk correctly identifies the extended partition as 8e. I wonder which kind of data lvmdiskscan and pvs use in order to list LVM physical volumes. Does PVS check some specific metadata within the partition without just relying on the type of partition displayed by fdisk? Alex Le mer. 22 sept.

[linux-lvm] " Failed to find physical volume

2021-09-23 Thread alessandro macuz
Hi all, I sought the web for the error " Failed to find physical volume "/dev/zd96p5"." but the closest discussion in the LVM archives I found was one of mine back in 2014 https://listman.redhat.com/archives/linux-lvm/2014-June/msg00016.html This time though it seems pvs fails to find the