linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] LVM2 recovery on IP-SAN after OS re-install
@ 2012-05-28 18:40 tariq wali
  2012-05-29  9:14 ` James Hawtin
  2012-06-19 16:40 ` Bryn M. Reeves
  0 siblings, 2 replies; 4+ messages in thread
From: tariq wali @ 2012-05-28 18:40 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 2471 bytes --]

Hi,
 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 ..

lvs
*  Found duplicate PV XtGmeFOiCTWpLBckKZKlGtYKPVdBgVJn: using
/dev/sdd1 not/dev/sdc1
*
  LV    VG   Attr   LSize Origin Snap%  Move Log Copy%  Convert
  data  vg0  -wi-ao 2.00T
  data1 vg0  -wi-ao 2.00T
  data2 vg0  -wi-ao 1.44T


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:)

vgs -o +devices
  Found duplicate PV XtGmeFOiCTWpLBckKZKlGtYKPVdBgVJn: using /dev/sdd1 not
/dev/sdc1
  VG   #PV #LV #SN Attr   VSize VFree Devices
  vg0    1   3   0 wz--n- 5.45T 8.06G /dev/sdd1(0)
  vg0    1   3   0 wz--n- 5.45T 8.06G /dev/sdd1(524288)
  vg0    1   3   0 wz--n- 5.45T 8.06G /dev/sdd1(1048576)


 lvs -P -a -o +devices
  Partial mode. Incomplete logical volumes will be processed.
  Found duplicate PV XtGmeFOiCTWpLBckKZKlGtYKPVdBgVJn: using /dev/sdd1 not
/dev/sdc1
  LV    VG   Attr   LSize Origin Snap%  Move Log Copy%  Convert Devices

  data  vg0  -wi-ao 2.00T
/dev/sdd1(0)
  data1 vg0  -wi-ao 2.00T
/dev/sdd1(524288)
  data2 vg0  -wi-ao 1.44T
/dev/sdd1(1048576)

I tried to fix this by but it just won't go..
vgreduce --removemissing vg0
  Found duplicate PV XtGmeFOiCTWpLBckKZKlGtYKPVdBgVJn: using /dev/sdd1 not
/dev/sdc1
  Volume group "vg0" is already consistent

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 ?

I also see some of these in syslog messages

hfs: unable to find HFS+ superblock
hfs: unable to find HFS+ superblock
VFS: Can't find ext3 filesystem on dev sdc1.
VFS: Can't find ext3 filesystem on dev sdc1.
hfs: unable to find HFS+ superblock
VFS: Can't find ext3 filesystem on dev sdc1.
VFS: Can't find ext3 filesystem on dev sdc1.
VFS: Can't find ext3 filesystem on dev sdd1.

thx,
Tariq

[-- Attachment #2: Type: text/html, Size: 3487 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-06-20 10:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-28 18:40 [linux-lvm] LVM2 recovery on IP-SAN after OS re-install tariq wali
2012-05-29  9:14 ` James Hawtin
2012-06-19 16:40 ` Bryn M. Reeves
2012-06-20 10:06   ` tariq wali

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).