[linux-lvm] HELP: vgscan segfaults

Terje Kvernes terjekv at math.uio.no
Wed Feb 26 08:17:02 UTC 2003


listenmann at elrond.lohmann-services.de (Peter Lohmann) writes:

> root at tty1[/]# vgscan -v
> vgscan -- removing "/etc/lvmtab" and "/etc/lvmtab.d"
> vgscan -- creating empty "/etc/lvmtab" and "/etc/lvmtab.d" 
> vgscan -- reading all physical volumes (this may take a while...)
> vgscan -- scanning for all active volume group(s) first
> vgscan -- reading data of volume group "myvg" from physical volume(s)
> Segmentation fault

  I've seen this recently as well.  on my end there were some issues
  with a PV getting lost.  the problem in my end was that the
  partition table of a drive was lost somehow, and without a partition
  table you don't get any PVs.  :-)

  I recreated the partitontable (fdisk), recreated the PV on it
  (pvcreate) and added the PV to the appropriate VG (vgextend).  this
  happily enough didn't touch the data on the drive, so the LVs that
  resided on the readded drive where found and worked as normal
  afterwards.  

-- 
Terje




More information about the linux-lvm mailing list