Problem with vgscan "only found 626 of 625 LEs for LV"
Here is what vgscan shows:
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found inactive volume group "vg00"
vgscan -- only found 626 of 625 LEs for LV /dev/vg00/lvol1 (0)
vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't get data of volume group "vg00" from physical volume(s) vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" creating "/etc/lvmtab" and "/etc/lvmtab.d"
I also tried pvscna, but I don't know if that's relevant:
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- inactive PV "/dev/hdb2" is associated to an unknown VG (run vgscan) pvscan -- inactive PV "/dev/hdc2" is associated to an unknown VG (run vgscan) pvscan -- inactive PV "/dev/hdd1" is associated to an unknown VG (run vgscan)
pvscan -- total: 3 [16.00 GB] / in use: 3 [16.00 GB] / in no VG: 0 [0]
- Tomas Edwardsson
Hmm, anyone able to help with this? All my data is currently offline and I really need it back so if anyone could help please!
- Tommi
Quoted 17 lines · Tomas Edwardsson
Here is what vgscan shows:
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found inactive volume group "vg00"
vgscan -- only found 626 of 625 LEs for LV/dev/vg00/lvol1(0)
vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't get data of volume group "vg00" from physical volume(s) vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" creating "/etc/lvmtab" and "/etc/lvmtab.d"I also tried pvscna, but I don't know if that's relevant:
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- inactive PV "/dev/hdb2" is associated to an unknown VG (run vgscan) pvscan -- inactive PV "/dev/hdc2" is associated to an unknown VG (run vgscan) pvscan -- inactive PV "/dev/hdd1" is associated to an unknown VG (run vgscan)pvscan -- total: 3 [16.00 GB] / in use: 3 [16.00 GB] / in no VG: 0 [0]
- Tomas Edwardsson
Quoted 13 lines · Tomas Edwardsson
Hmm, anyone able to help with this? All my data is currently offline and I really need it back so if anyone could help please!
- Tommi
Quoted 7 lines · Tomas Edwardsson
Here is what vgscan shows:
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found inactive volume group "vg00"
vgscan -- only found 626 of 625 LEs for LV/dev/vg00/lvol1(0)
vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't get data of volume group "vg00" from physical volume(s) vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" creating "/etc/lvmtab" and "/etc/lvmtab.d"
It looks like the PE table does not match what is in the LV table for that LV (i.e. the PE table has 626 PEs that claim to be part of the LV, but the LV says it has only 625 LEs allocated).
Two possibilities: you recently added an LE to the LV and you had a crash (or an LVM bug), or somehow you had an error writing to disk. You can try restoring a copy of the metadata with vgcfgrestore to see if it helps.
Failing that, check pvdata -avP <disk> to see what is wrong.
Cheers, Andreas
Signature · 3 lines
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert