<div dir="ltr">Hi,
<div> We had an OS crash on x86_64 CentOS , LVM2 and it had 6TB LUN via IP SCSI SAN mounted to it and after the OS reinstall on a crash we had hard time to mount the original SAN volume as you can imagine 6TB of marketing data with 3 LVM partitions as data data1 and data2 . After troubleshooting almost for a day I was able to get the LVM metadata using dd from the SAN LUN /dev/sdd1 which I used to recreate and restore all LVM partitions back to original state , we sure became the raving fans of LVM today ! however after all the recovery I see this annoying warning each time I execute any of the lvm commands ..</div>
<div><br></div><div>lvs</div><div><b> Found duplicate PV XtGmeFOiCTWpLBckKZKlGtYKPVdBgVJn: using /dev/sdd1 not<span style="background-color:rgb(255,255,255)"><font color="#ff0000"> /dev/sdc1</font></span></b></div><div> LV VG Attr LSize Origin Snap% Move Log Copy% Convert</div>
<div> data vg0 -wi-ao 2.00T </div><div> data1 vg0 -wi-ao 2.00T </div><div> data2 vg0 -wi-ao 1.44T </div>
<div> </div><div><br></div><div>I believe previously we had created PV using /dev/sdd1 and /dev/sdc1 although from the same LUN but now I was able to restore everything using just /dev/sdd1 and everything looks intact (until I hear marketing whine tom:)</div>
<div><br></div><div><div>vgs -o +devices</div><div> Found duplicate PV XtGmeFOiCTWpLBckKZKlGtYKPVdBgVJn: using /dev/sdd1 not /dev/sdc1</div><div> VG #PV #LV #SN Attr VSize VFree Devices </div><div> vg0 1 3 0 wz--n- 5.45T 8.06G /dev/sdd1(0) </div>
<div> vg0 1 3 0 wz--n- 5.45T 8.06G /dev/sdd1(524288) </div><div> vg0 1 3 0 wz--n- 5.45T 8.06G /dev/sdd1(1048576)</div><div><br></div></div><div><br></div><div><div> lvs -P -a -o +devices</div><div> Partial mode. Incomplete logical volumes will be processed.</div>
<div> Found duplicate PV XtGmeFOiCTWpLBckKZKlGtYKPVdBgVJn: using /dev/sdd1 not /dev/sdc1</div><div> LV VG Attr LSize Origin Snap% Move Log Copy% Convert Devices </div><div> data vg0 -wi-ao 2.00T /dev/sdd1(0) </div>
<div> data1 vg0 -wi-ao 2.00T /dev/sdd1(524288) </div><div> data2 vg0 -wi-ao 1.44T /dev/sdd1(1048576)</div><div><br></div></div><div>I tried to fix this by but it just won't go..</div>
<div><div>vgreduce --removemissing vg0</div><div> Found duplicate PV XtGmeFOiCTWpLBckKZKlGtYKPVdBgVJn: using /dev/sdd1 not /dev/sdc1</div><div> Volume group "vg0" is already consistent</div></div><div><br></div>
<div>why does LVM think that it's still using PV ( /dev/sdc1 ) when it no more exists ? and how do i get rid of it ?</div><div><br></div><div>I also see some of these in syslog messages</div><div><br></div><div><div>hfs: unable to find HFS+ superblock</div>
<div>hfs: unable to find HFS+ superblock</div><div>VFS: Can't find ext3 filesystem on dev sdc1.</div><div>VFS: Can't find ext3 filesystem on dev sdc1.</div><div>hfs: unable to find HFS+ superblock</div><div>VFS: Can't find ext3 filesystem on dev sdc1.</div>
<div>VFS: Can't find ext3 filesystem on dev sdc1.</div><div>VFS: Can't find ext3 filesystem on dev sdd1.</div></div><div><br></div><div>thx,</div><div>Tariq</div><div><br></div></div>