物理卷的 UUID 重复,但 PV 不在卷组中

物理卷的 UUID 重复,但 PV 不在卷组中

我有一些死/陈旧/不存在的逻辑卷,没有组

pvs 说

File descriptor 3 (pipe:[306492]) leaked on pvs invocation. Parent PID 30844: -su
  Found duplicate PV sun9LI9sXDLI2YPuMINH3xVos86c97eu: using /dev/disk/by-id/dm-name-disco-cluster1p2 not /dev/disk/by-id/dm-name-disco-cluster3p2
  Found duplicate PV sun9LI9sXDLI2YPuMINH3xVos86c97eu: using /dev/disk/by-id/dm-name-disco-cluster2p2 not /dev/disk/by-id/dm-name-disco-cluster1p2
  Found duplicate PV sun9LI9sXDLI2YPuMINH3xVos86c97eu: using /dev/disk/by-id/dm-name-disco-centos3p2 not /dev/disk/by-id/dm-name-disco-cluster2p2
  Found duplicate PV sun9LI9sXDLI2YPuMINH3xVos86c97eu: using /dev/disk/by-id/dm-name-disco-centos2p2 not /dev/disk/by-id/dm-name-disco-centos3p2
  Found duplicate PV sun9LI9sXDLI2YPuMINH3xVos86c97eu: using /dev/disk/by-id/dm-name-disco-nfs2 not /dev/disk/by-id/dm-name-disco-centos2p2
  Found duplicate PV 8M3D5lq37NOiKJ60lwxnS3fK40ybvl2S: using /dev/disk/by-id/dm-name-disco-slackldap1p2 not /dev/disk/by-id/dm-name-disco-slackware3p2
  Found duplicate PV 8M3D5lq37NOiKJ60lwxnS3fK40ybvl2S: using /dev/disk/by-id/dm-name-disco-slackware2p2 not /dev/disk/by-id/dm-name-disco-slackldap1p2
  Found duplicate PV 8M3D5lq37NOiKJ60lwxnS3fK40ybvl2S: using /dev/disk/by-id/dm-name-disco-samba1p2 not /dev/disk/by-id/dm-name-disco-slackware2p2
  Found duplicate PV sun9LI9sXDLI2YPuMINH3xVos86c97eu: using /dev/disk/by-id/dm-name-disco-cluster4p2 not /dev/disk/by-id/dm-name-disco-nfs2
  Found duplicate PV 8M3D5lq37NOiKJ60lwxnS3fK40ybvl2S: using /dev/disk/by-id/dm-name-disco-slackldap2p2 not /dev/disk/by-id/dm-name-disco-samba1p2
  Found duplicate PV 8M3D5lq37NOiKJ60lwxnS3fK40ybvl2S: using /dev/disk/by-id/dm-name-disco-recovero2 not /dev/disk/by-id/dm-name-disco-slackldap2p2
  PV                                            VG    Fmt  Attr PSize    PFree   
  /dev/disk/by-id/dm-name-disco-cluster4p2            lvm2 a--    29,51g   29,51g
  /dev/disk/by-id/dm-name-disco-nas2p1p1              lvm2 a--    10,00g   10,00g
  /dev/disk/by-id/dm-name-disco-recovero2             lvm2 a--    32,91g   32,91g
  /dev/disk/by-id/dm-name-disco-slackware4--1p1       lvm2 a--    33,00g   33,00g
  /dev/disk/by-id/dm-name-disco-slackware4--2p1       lvm2 a--  1000,00g 1000,00g
  /dev/disk/by-id/dm-name-disco-slackware4p2          lvm2 a--     4,00t    4,00t
  /dev/md127                                    disco lvm2 a--     8,19t    2,56t

唯一活跃的是带有 md127 的 disco,为什么其他 nas2p1p1 等还活着?怎样才能永久删除呢?我为旧的 VG 组执行了 lvremove 和 vgremove

vgs 说

      Found duplicate PV sun9LI9sXDLI2YPuMINH3xVos86c97eu: using /dev/disk/by-id/dm-name-disco-cluster1p2 not /dev/disk/by-id/dm-name-disco-cluster3p2
  Found duplicate PV sun9LI9sXDLI2YPuMINH3xVos86c97eu: using /dev/disk/by-id/dm-name-disco-cluster2p2 not /dev/disk/by-id/dm-name-disco-cluster1p2
  Found duplicate PV sun9LI9sXDLI2YPuMINH3xVos86c97eu: using /dev/disk/by-id/dm-name-disco-centos3p2 not /dev/disk/by-id/dm-name-disco-cluster2p2
  Found duplicate PV sun9LI9sXDLI2YPuMINH3xVos86c97eu: using /dev/disk/by-id/dm-name-disco-centos2p2 not /dev/disk/by-id/dm-name-disco-centos3p2
  Found duplicate PV sun9LI9sXDLI2YPuMINH3xVos86c97eu: using /dev/disk/by-id/dm-name-disco-nfs2 not /dev/disk/by-id/dm-name-disco-centos2p2
  Found duplicate PV 8M3D5lq37NOiKJ60lwxnS3fK40ybvl2S: using /dev/disk/by-id/dm-name-disco-slackldap1p2 not /dev/disk/by-id/dm-name-disco-slackware3p2
  Found duplicate PV 8M3D5lq37NOiKJ60lwxnS3fK40ybvl2S: using /dev/disk/by-id/dm-name-disco-slackware2p2 not /dev/disk/by-id/dm-name-disco-slackldap1p2
  Found duplicate PV 8M3D5lq37NOiKJ60lwxnS3fK40ybvl2S: using /dev/disk/by-id/dm-name-disco-samba1p2 not /dev/disk/by-id/dm-name-disco-slackware2p2
  Found duplicate PV sun9LI9sXDLI2YPuMINH3xVos86c97eu: using /dev/disk/by-id/dm-name-disco-cluster4p2 not /dev/disk/by-id/dm-name-disco-nfs2
  Found duplicate PV 8M3D5lq37NOiKJ60lwxnS3fK40ybvl2S: using /dev/disk/by-id/dm-name-disco-slackldap2p2 not /dev/disk/by-id/dm-name-disco-samba1p2
  Found duplicate PV 8M3D5lq37NOiKJ60lwxnS3fK40ybvl2S: using /dev/disk/by-id/dm-name-disco-recovero2 not /dev/disk/by-id/dm-name-disco-slackldap2p2
  VG    #PV #LV #SN Attr   VSize VFree
  disco   1  19   0 wz--n- 8,19t 2,56t

怎么解决?谢谢

答案1

弄清楚了。kpartx几个月前我用于备份,忘记用 关闭设备kpartx -d。我发现使用partprobe,属于虚拟机的lvm卷被“导出”到服务器,并用重复的lvms填充/dev/mapper,所以我对/dev/mapper中的所有设备使用了kpartx -d,情况返回正常。 lvs,pvs,vgs 现在没有给出任何错误消息。

相关内容