WARNING: adding device /dev/sdX with PVID which is already used for /dev/sdX.
Issue
- Unable to import a cloned disk and logs below error:
[root@testbox]# vgimportclone --basevgname vgtest1_snap /dev/xvdg
Failed to find device /dev/xvdg.
- While adding device using #lvmdevice command, it reports a warning:
[root@testbox]# lvmdevices --adddev /dev/xvdg
WARNING: adding device /dev/xvdg with PVID 6gRfwsCY2ZZejeIH4Nw81EAEF0JOLIQm which is already used for /dev/xvdf device_id /dev/xvdf.
Add device with duplicate PV to devices file?
Environment
- Red Hat Enterprise Linux 8, 9, 10
- LVM2 with use_devicesfile=1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.