The by-dname entry disappears after the pv is created:
$ sudo pvs PV VG Fmt Attr PSize PFree /dev/bcache1 lvm2 --- 931.51g 931.51g /dev/bcache2 ceph-a7917224-a99d-4885-814d-c9376fa8436d lvm2 a-- 931.51g 0
$ ls -l /dev/disk/by-dname/ total 0 lrwxrwxrwx 1 root root 13 May 15 06:04 bcache1 -> ../../bcache2 lrwxrwxrwx 1 root root 13 May 15 06:04 bcache3 -> ../../bcache0 lrwxrwxrwx 1 root root 13 May 15 06:04 bcache43 -> ../../bcache3 lrwxrwxrwx 1 root root 13 May 15 06:04 nvme0n1 -> ../../nvme0n1 lrwxrwxrwx 1 root root 15 May 15 06:04 nvme0n1-part1 -> ../../nvme0n1p1 lrwxrwxrwx 1 root root 15 May 15 06:04 nvme0n1-part2 -> ../../nvme0n1p2 lrwxrwxrwx 1 root root 9 May 15 06:04 sda -> ../../sda lrwxrwxrwx 1 root root 10 May 15 06:04 sda-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 May 15 06:04 sda-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 May 15 06:04 sdb -> ../../sdb lrwxrwxrwx 1 root root 9 May 15 06:04 sdc -> ../../sdc lrwxrwxrwx 1 root root 9 May 15 06:04 sdd -> ../../sdd
The by-dname entry disappears after the pv is created:
$ sudo pvs a99d-4885- 814d-c9376fa843 6d lvm2 a-- 931.51g 0
PV VG Fmt Attr PSize PFree
/dev/bcache1 lvm2 --- 931.51g 931.51g
/dev/bcache2 ceph-a7917224-
$ ls -l /dev/disk/by-dname/
total 0
lrwxrwxrwx 1 root root 13 May 15 06:04 bcache1 -> ../../bcache2
lrwxrwxrwx 1 root root 13 May 15 06:04 bcache3 -> ../../bcache0
lrwxrwxrwx 1 root root 13 May 15 06:04 bcache43 -> ../../bcache3
lrwxrwxrwx 1 root root 13 May 15 06:04 nvme0n1 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 May 15 06:04 nvme0n1-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 May 15 06:04 nvme0n1-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 9 May 15 06:04 sda -> ../../sda
lrwxrwxrwx 1 root root 10 May 15 06:04 sda-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 May 15 06:04 sda-part2 -> ../../sda2
lrwxrwxrwx 1 root root 9 May 15 06:04 sdb -> ../../sdb
lrwxrwxrwx 1 root root 9 May 15 06:04 sdc -> ../../sdc
lrwxrwxrwx 1 root root 9 May 15 06:04 sdd -> ../../sdd