Skip to contentSkip to conversation

ERROR -157 reading data

linux-lvm Fernando Dammous 2 participants 2 messages Sep 22, 1999

lore
Share & tools
lore
#0 lore raw

Hi all,

I have created my vg00 (/dev/hdb2) with 1 LV (lv00).
After mounting it, I can work fine with lv00.
But, on next boot, vgscan removes /etc/lvmtab and /etc/lvmtab.d and it isn't able to create a new set of these files. <SNIP>
vgscan -- reading data of volume group "vg00" from physical volume(s)
vgscan -- ERROR -157: can't get data of volume group "vg00" from physical volume(s)
vgscan -- ERROR -157: creating "/etc/lvmtab" and "/etc/lvmtab.d"

With others LVM tools also give almost same msgs :

vgcfgbackup -- reading volume group data for "vg00" from disk(s)I vgcfgbackup -- ERROR -157: reading VGDA of "vg00" vgcfgbackup -- ERROR -313: backing up volume group "vg00"

vgck -- reading volume group data for "vg00" from physical volume(s) vgck -- ERROR -157: reading data of volume group "vg00" from physical volume(s) vgck -- please DON'T run vgscan prior to vgcfgrestore

My disk is a IDE 3.2GB with 2 partitions :

# fdisk -l /dev/hdb

Disk /dev/hdb: 128 heads, 63 sectors, 785 cylinders Units = cylinders of 8064 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 5 20128+ 83 Linux native
/dev/hdb2 6 785 3144960 83 Unknown

The LVM program is built into my kernel (2.0.36) not as a module. Am I missing something in my configuration?

Please help me!

Thanks in advance,

Fernando Dammous

#1 lore raw

Hi Fernando,

looks like something has overwritten parts of the VGDA (metadata aka Volume Group Descriptor Area) on /dev/hdb2.

Quoted 12 lines

Hi all,

I have created my vg00 (/dev/hdb2) with 1 LV (lv00).=20 After mounting it, I can work fine with lv00.=20
But, on next boot, vgscan removes /etc/lvmtab and /etc/lvmtab.d and it = isn't able to create a new set of these files.
<SNIP>
vgscan -- reading data of volume group "vg00" from physical volume(s) vgscan -- ERROR -157: can't get data of volume group "vg00" from = physical volume(s)
vgscan -- ERROR -157: creating "/etc/lvmtab" and "/etc/lvmtab.d"

This error indicates, that the number of logical volumes differs between the VG part and the LV part(s) of the VGDA.

Quoted 11 lines

With others LVM tools also give almost same msgs :

vgcfgbackup -- reading volume group data for "vg00" from disk(s)I=20 vgcfgbackup -- ERROR -157: reading VGDA of "vg00" vgcfgbackup -- ERROR -313: backing up volume group "vg00"

vgck -- reading volume group data for "vg00" from physical volume(s) vgck -- ERROR -157: reading data of volume group "vg00" from physical = volume(s)
vgck -- please DON'T run vgscan prior to vgcfgrestore

Please have a look at FAQ question 8.

Do you have an actual backup in /etc/lvmconf ?.
Please look with "ls -lt /etc/lvmconf/vg00*" for a recent backup.

If yes you are a lucky man 8*)

Say you have /etc/lvmconf/vg00.conf then restore it with "vgfgrestore -f /etc/lvmconf/vg00.conf -n vg00 /dev/hdb2" and retry "vgscan;vgchange -ay"

Quoted 4 lines

My disk is a IDE 3.2GB with 2 partitions :

# fdisk -l /dev/hdb
Quoted 8 lines

Disk /dev/hdb: 128 heads, 63 sectors, 785 cylinders Units =3D cylinders of 8064 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 5 20128+ 83 =
Linux native
/dev/hdb2 6 785 3144960 83 =
Unknown

You mean partition Id fe, do you?

Quoted 4 lines

The LVM program is built into my kernel (2.0.36) not as a module. Am I missing something in my configuration?

O.k.

Quoted 6 lines

Please help me!

Thanks in advance,

Fernando Dammous

Regards,
Heinz
--

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Systemmanagement CS-TS T-Nova
Entwicklungszentrum Darmstadt
Heinz Mauelshagen Otto-Roehm-Strasse 71c
Senior Systems Engineer Postfach 10 05 41

                                                 64205 Darmstadt
[email protected]                      Germany
                                                 +49 6151 886-425
                                                          FAX-386

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-