PV <UUID> prefers device /dev/nvmeXXX because device is used by LV.

shummo

New Member
Nov 30, 2023
1
0
1
HI.

I tried to find any solution for my problem, but after a day of reading still couldn't.

I have a PVE setup with 2 NVME (256GB for proxmox host, which is usually /dev/nvme0n1, and 2 TB for data/backup , which is usually /dev/nvme1n1)
I created a DISK CLONE from nvme0n1 to the 2TB nvme1n1, and format the rest of it to ext4.

SO there is 2 disk with identical partition 1-3. (UUIDs are the same after backup)

During boot get some WARNING:
Code:
Nov 30 11:35:07 promox dmeventd[417]: WARNING: Not using device /dev/nvme0n1p3 for PV <UUID>.
Nov 30 11:35:07 promox dmeventd[417]: WARNING: PV <UUID> prefers device /dev/nvme1n1p3 because device is used by LV.

In journalctl found:

Code:
Nov 30 11:34:57 promox lvm[469]: PV /dev/nvme1n1p3 online, VG pve is complete.
Nov 30 11:34:57 promox lvm[469]: VG pve finished
Nov 30 11:34:57 promox lvm[497]: PV /dev/nvme0n1p3 259:3 is duplicate for PVID ydG9d1pQO2vpWxuERHQn714uYL7HYNGs on 259:7 /dev/nvme1n1p3.
Nov 30 11:34:57 promoxlvm[497]: PV /dev/nvme0n1p3 failed to create online file.

So the problem is, that my /dev/pve/root partition became the nvme1n1p3, and not the original nvme0n1p3. (furthermore not always, it's very hactic. I think it's depend on what drive go online )


Code:
root@dlamox:~# pvdisplay
  WARNING: Not using device /dev/nvme0n1p3 for PV ydG9d1-pQO2-vpWx-uERH-Qn71-4uYL-7HYNGs.
  WARNING: PV ydG9d1-pQO2-vpWx-uERH-Qn71-4uYL-7HYNGs prefers device /dev/nvme1n1p3 because device is used by LV.
  --- Physical volume ---
  PV Name               /dev/nvme1n1p3   >>>>> IT's the 3. part of 2TB drive...:(
  VG Name               pve
  PV Size               237.47 GiB / not usable <1.32 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              60793
  Free PE               4097
  Allocated PE          56696
  PV UUID               ydG9d1-pQO2-vpWx-uERH-Qn71-4uYL-7HYNGs
 

Attachments

  • 01.jpg
    01.jpg
    252.6 KB · Views: 8
  • 2.jpg
    2.jpg
    70.7 KB · Views: 7
  • 3.jpg
    3.jpg
    140.8 KB · Views: 7
Last edited: