linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] problems with vgscan
@ 2000-03-24 19:00 jorg de jong
  2000-03-25 14:03 ` Heinz Mauelshagen
  0 siblings, 1 reply; 7+ messages in thread
From: jorg de jong @ 2000-03-24 19:00 UTC (permalink / raw)
  To: linux-lvm

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

Hello,

I am experiencing problems while doing a vgscan, attached I have
included a debug trace for
details.

In short this is what I get :

vgscan -- ERROR "parameter error" with special file /dev/vg01/usr
vgscan -- ERROR "parameter error" creating volume group directory and
special files
vgscan -- ERROR "parameter error" creating "/etc/lvmtab" and
"/etc/lvmtab.d"

and I am not able to activate my vg's :-((((.


My config is:
2 disk, complete pv's 
1 disk, with 9 linux and dos partitions and 2 pv partitions.

3 volume groups 
	vg00 complete disk 1
	vg02 complete disk 2
	vg01 with the two partitions from the remaining disk

vg00 has one logical volume(home)
vg01 has two logical volume's(usr and tmp)
vg02 has one logical volume(lv00)


When I change the partition ID;s from the pv partitions in vg01, from 8e
to 83,
(making then invisible to LVM) vgscan completes normal.

During the creation of vg01 I renamed one of the lv's but other than
that I did nothing
special to it.


During the creation of vg01 I was able to access the lv but as soon as I
rebooted 
the problems began.

The kernel I am using it 2.3.99.pre2 but found the same problem when
using 2.3.49.

If I need to provide more info i'll be more than happy to.

regards,

Jorg de Jong.

[-- Attachment #2: vgscan.trace.gz --]
[-- Type: application/x-gzip, Size: 14078 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [linux-lvm] Problems with vgscan
@ 2001-03-09 23:31 Lukasz Trabinski
  2001-03-10  0:04 ` Andreas Dilger
  0 siblings, 1 reply; 7+ messages in thread
From: Lukasz Trabinski @ 2001-03-09 23:31 UTC (permalink / raw)
  To: linux-lvm

Hello

I have problems with the vgscan ( Linux, kernel 2.4.2 and 2.4.1)

[root@xxx tools]# vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found inactive volume group "test"
vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't get
data of volume group "test" from physical volume(s)
vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" creating
"/etc/lvmtab" and "/etc/lvmtab.d"

I have appled patch from posted to this list (diff -u -r1.3.2.3
tools/lib/pv_read_all_pv_of_vg.c)

Comments line from the

#if 0
 /* in case this PV already holds a uuid list: check against this  list */

to line:

#endif
      /* avoid multiple access pathes */


Recompiled all tools from LVM (0.9 version), and I have done

[root@xxx /root]# vgcfgrestore /dev/hdh1 -n test
vgcfgrestore -- VGDA for "mp3" successfully restored to physical volume
"/dev/hdh1"

[root@xxx /root]# vgcfgrestore /dev/hdg1 -n test
vgcfgrestore -- VGDA for "mp3" successfully restored to physical volume
"/dev/hdg1"

And I have still problems with the vgscan:

[root@xxx tools]# vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found inactive volume group "test"
vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't get
data of volume group "test" from physical volume(s)
vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" creating
"/etc/lvmtab" and "/etc/lvmtab.d"

[root@xxx tools]# vgdisplay
vgdisplay -- ERROR: "/etc/lvmtab" doesn't exist; please run vgscan

[root@xxx tools]# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- inactive PV "/dev/hdg1"  is associated to an unknown VG (run
vgscan)
pvscan -- inactive PV "/dev/hdh1"  is associated to an unknown VG (run
vgscan)
pvscan -- total: 2 [65.89 GB] / in use: 2 [65.89 GB] / in no VG: 0 [0]


Any sugestions? Have I lost my all data from 65.89 GB?!



--
*[ �ukasz Tr�bi�ski ]*
SysAdmin @polvoice.com

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

end of thread, other threads:[~2001-03-12 18:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-24 19:00 [linux-lvm] problems with vgscan jorg de jong
2000-03-25 14:03 ` Heinz Mauelshagen
  -- strict thread matches above, loose matches on Subject: below --
2001-03-09 23:31 [linux-lvm] Problems " Lukasz Trabinski
2001-03-10  0:04 ` Andreas Dilger
2001-03-10  0:36   ` Lukasz Trabinski
2001-03-12 14:16     ` Lukasz Trabinski
2001-03-12 18:25     ` Andreas Dilger

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