UUIDs duplicados para volumes físicos, mas os PVs não estão em um grupo de volume

1

Eu tenho alguns volumes lógicos mortos / obsoletos / inexistentes sem grupo

pvs disse

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

O único ativo é disco com md127, porque o outro nas2p1p1, etc ainda está vivo? Como deletar para sempre? Eu fiz lvremove e vgremove para antigos grupos vg

vgs disse

      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

Como resolver? Obrigado

    
por elbarna 20.01.2015 / 15:54

1 resposta

1

Descobri isso. Eu estava usando kpartx para backups há alguns meses e esqueci de fechar os dispositivos com kpartx -d . Eu descubro usando partprobe que os volumes lvm que pertencem a máquinas virtuais são "exportados" para o servidor, e preenchem o / dev / mapper com duplicatas lvms, então eu usei o kpartx -d para todos os dispositivos em / dev / mapper e situação return ok. lvs, pvs, vgs não deu nenhuma mensagem de erro agora.

    
por 20.01.2015 / 20:38

Tags