Skip to contentSkip to conversation

lvmtab and lvmtab.d disappeared.

linux-lvm doganello 2 participants 3 messages Jan 18, 2001 – Jan 20, 2001

lore
Share & tools
lore

doganello

author
#0 lore raw

Hi there.
I use a Suse 6.4 (kernel 2.2.14-SUSE) with LVM since six months, with much pleasure.
I have only a Volume group, with 5 logical volumes.
Yesterday I decided to delete a logical volume and create a new one.
I went in single-user mode, made a lvdelete, then made a new logical volume with lvcreate, and create a new Reiser file system on it. After that, I came back in mode 3 and continuie to work. Everything war working fine. Afer a normal shutdown, this morning my box couldn't access to the VG.
I Watched in the /etc directory, and there were no lvmtab and lvmtab.d

I run a vgscan -v, and I got these messages (this i s a summary):

ERROR - 132 volume group "vg1" is inconsistent ERROR - unable to do a backup of volume group "vg1" "etc/lvmtab" and "etc/lvmtab.d" were succesfully created. But this was not true, there weren't any lvmtab in /etc.

I watched at your mailing list, to search for answers, but I find nothing .

Do you think is's possible to recover my VG and my partitions?

I'm sending a "vgscan -d" log.

Saluti

Anchise.

--
TiscaliNet, libero accesso ad Internet.
http://www.tiscalinet.it

#1 lore raw

Hi Doganello,

the error code 328 returned by vg_check_consistency() shows that you might have more PVs in your system which claim to belong to volume group "vg1" than there should be.

Please check with pvscan and report again.

Thanks,
Heinz

Quoted 30 lines · doganello

Hi there.
I use a Suse 6.4 (kernel 2.2.14-SUSE) with LVM since six months, with much pleasure.
I have only a Volume group, with 5 logical volumes.
Yesterday I decided to delete a logical volume and create a new one.
I went in single-user mode, made a lvdelete, then made a new logical volume with lvcreate, and create a new Reiser file system on it. After that, I came back in mode 3 and continuie to work. Everything war working fine. Afer a normal shutdown, this morning my box couldn't access to the VG.
I Watched in the /etc directory, and there were no lvmtab and lvmtab.d

I run a vgscan -v, and I got these messages (this i s a summary):

ERROR - 132 volume group "vg1" is inconsistent ERROR - unable to do a backup of volume group "vg1" "etc/lvmtab" and "etc/lvmtab.d" were succesfully created. But this was not true, there weren't any lvmtab in /etc.

I watched at your mailing list, to search for answers, but I find nothing .

Do you think is's possible to recover my VG and my partitions?

I'm sending a "vgscan -d" log.

Saluti

Anchise.

--
TiscaliNet, libero accesso ad Internet.
http://www.tiscalinet.it

Signature · 15 lines
Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

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

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
[email protected]                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#2 lore raw

Hi Heinz,

as you asked, I'm reporting the pvscan log.

Thanks.

Saluti,
Anchise.

Quoted 10 lines · Heinz J. Mauelshagen

Hi Doganello,

the error code 328 returned by vg_check_consistency() shows that you might have more PVs in your system which claim to belong to volume group "vg1" than there should be.

Please check with pvscan and report again.

Thanks,
Heinz

lvm_get_iop_version -- CALLED
lvm_get_iop_version -- AFTER ioctl ret: 0 lvm_get_iop_version -- LEAVING with ret: 0
pvscan -- reading all physical volumes (this may take a while...) pv_read_all_pv -- CALLED
pv_read_all_pv -- calling lvm_dir_cache
lvm_dir_cache -- CALLED
lvm_dir_cache -- LEAVING with cache_size: 8 pv_read_all_pv -- calling pv_read with "/dev/hdc"
pv_read -- CALLED with /dev/hdc
pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hdc" pv_check_name -- LEAVING with ret: 0
pv_flush -- CALLED to flush /dev/hdc
pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hdc" pv_check_name -- LEAVING with ret: 0
pv_flush -- LEAVING with ret: 0
pv_read -- going to read /dev/hdc
pv_copy_from_disk -- CALLED
pv_copy_from_disk -- LEAVING
pv_create_name_from_kdev_t -- CALLED with 22:0 lvm_dir_cache -- CALLED
lvm_dir_cache -- LEAVING with cache_size: 8 pv_create_name_from_kdev_t -- LEAVING with dev_name: /dev/hdc pv_read -- LEAVING with ret: -259
pv_read_all_pv -- pv_read returned: -259
pv_read_all_pv -- calling pv_read with "/dev/hdc1" pv_read -- CALLED with /dev/hdc1
pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hdc1" pv_check_name -- LEAVING with ret: 0
pv_flush -- CALLED to flush /dev/hdc1
pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hdc1" pv_check_name -- LEAVING with ret: 0
pv_flush -- LEAVING with ret: 0
pv_read -- going to read /dev/hdc1
pv_copy_from_disk -- CALLED
pv_copy_from_disk -- LEAVING
pv_create_name_from_kdev_t -- CALLED with 22:1 lvm_dir_cache -- CALLED
lvm_dir_cache -- LEAVING with cache_size: 8 pv_create_name_from_kdev_t -- LEAVING with dev_name: /dev/hdc1 pv_read -- LEAVING with ret: -259
pv_read_all_pv -- pv_read returned: -259
pv_read_all_pv -- calling pv_read with "/dev/hdd"
pv_read -- CALLED with /dev/hdd
pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hdd" pv_check_name -- LEAVING with ret: 0
pv_flush -- CALLED to flush /dev/hdd
pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hdd" pv_check_name -- LEAVING with ret: 0
pv_flush -- LEAVING with ret: 0
pv_read -- going to read /dev/hdd
pv_copy_from_disk -- CALLED
pv_copy_from_disk -- LEAVING
pv_create_name_from_kdev_t -- CALLED with 22:64 lvm_dir_cache -- CALLED
lvm_dir_cache -- LEAVING with cache_size: 8 pv_create_name_from_kdev_t -- LEAVING with dev_name: /dev/hdd pv_read -- LEAVING with ret: -259
pv_read_all_pv -- pv_read returned: -259
pv_read_all_pv -- calling pv_read with "/dev/hde"
pv_read -- CALLED with /dev/hde
pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hde" pv_check_name -- LEAVING with ret: 0
pv_flush -- CALLED to flush /dev/hde
pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hde" pv_check_name -- LEAVING with ret: 0
pv_flush -- LEAVING with ret: 0
pv_read -- going to read /dev/hde
pv_copy_from_disk -- CALLED
pv_copy_from_disk -- LEAVING
pv_create_name_from_kdev_t -- CALLED with 33:0 lvm_dir_cache -- CALLED
lvm_dir_cache -- LEAVING with cache_size: 8 pv_create_name_from_kdev_t -- LEAVING with dev_name: /dev/hde pv_read -- LEAVING with ret: -259
pv_read_all_pv -- pv_read returned: -259
pv_read_all_pv -- calling pv_read with "/dev/hde1" pv_read -- CALLED with /dev/hde1
pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hde1" pv_check_name -- LEAVING with ret: 0
pv_flush -- CALLED to flush /dev/hde1
pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hde1" pv_check_name -- LEAVING with ret: 0
pv_flush -- LEAVING with ret: 0
pv_read -- going to read /dev/hde1
pv_copy_from_disk -- CALLED
pv_copy_from_disk -- LEAVING
pv_create_name_from_kdev_t -- CALLED with 33:1 lvm_dir_cache -- CALLED
lvm_dir_cache -- LEAVING with cache_size: 8 pv_create_name_from_kdev_t -- LEAVING with dev_name: /dev/hde1 pv_read -- LEAVING with ret: -259
pv_read_all_pv -- pv_read returned: -259
pv_read_all_pv -- calling pv_read with "/dev/hde2" pv_read -- CALLED with /dev/hde2
pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hde2" pv_check_name -- LEAVING with ret: 0
pv_flush -- CALLED to flush /dev/hde2
pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hde2" pv_check_name -- LEAVING with ret: 0
pv_flush -- LEAVING with ret: 0
pv_read -- going to read /dev/hde2
pv_copy_from_disk -- CALLED
pv_copy_from_disk -- LEAVING
pv_create_name_from_kdev_t -- CALLED with 33:2 lvm_dir_cache -- CALLED
lvm_dir_cache -- LEAVING with cache_size: 8 pv_create_name_from_kdev_t -- LEAVING with dev_name: /dev/hde2 pv_read -- LEAVING with ret: -259
pv_read_all_pv -- pv_read returned: -259
pv_read_all_pv -- calling pv_read with "/dev/hde3" pv_read -- CALLED with /dev/hde3
pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hde3" pv_check_name -- LEAVING with ret: 0
pv_flush -- CALLED to flush /dev/hde3
pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hde3" pv_check_name -- LEAVING with ret: 0
pv_flush -- LEAVING with ret: 0
pv_read -- going to read /dev/hde3
pv_copy_from_disk -- CALLED
pv_copy_from_disk -- LEAVING
pv_create_name_from_kdev_t -- CALLED with 33:3 lvm_dir_cache -- CALLED
lvm_dir_cache -- LEAVING with cache_size: 8 pv_create_name_from_kdev_t -- LEAVING with dev_name: /dev/hde3 pv_read -- LEAVING with ret: -259
pv_read_all_pv -- pv_read returned: -259
pv_read_all_pv -- calling pv_read with "/dev/hde4" pv_read -- CALLED with /dev/hde4
pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hde4" pv_check_name -- LEAVING with ret: 0
pv_flush -- CALLED to flush /dev/hde4
pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hde4" pv_check_name -- LEAVING with ret: 0
pv_flush -- LEAVING with ret: 0
pv_read -- going to read /dev/hde4
pv_copy_from_disk -- CALLED
pv_copy_from_disk -- LEAVING
pv_create_name_from_kdev_t -- CALLED with 33:4 lvm_dir_cache -- CALLED
lvm_dir_cache -- LEAVING with cache_size: 8 pv_create_name_from_kdev_t -- LEAVING with dev_name: /dev/hde4 pv_read -- LEAVING with ret: 0
pv_get_size -- CALLED with /dev/hde4 and BFFFF63C pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hde4" pv_check_name -- LEAVING with ret: 0
pv_check_part -- CALLED with /dev/hde4
pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hde4" pv_check_name -- LEAVING with ret: 0
pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hde4" pv_check_name -- LEAVING with ret: 0
lvm_dir_cache -- CALLED
lvm_dir_cache -- LEAVING with cache_size: 8
pv_check_part -- LEAVING with 4
lvm_dir_cache -- CALLED
lvm_dir_cache -- LEAVING with cache_size: 8
pv_get_size -- BEFORE llseek 0:0
pv_get_size -- part[0].sys_ind: 83 part[0].nr_sects: 722862 pv_get_size -- first == 1
pv_get_size -- part[1].sys_ind: 82 part[1].nr_sects: 530145 pv_get_size -- first == 1
pv_get_size -- part[2].sys_ind: 6 part[2].nr_sects: 2056320 pv_get_size -- first == 1
pv_get_size -- part[3].sys_ind: 8E part[3].nr_sects: 13189365 pv_get_size -- first == 1
pv_get_size -- part_i == part_i_tmp
pv_get_size -- LEAVING with ret: 13189365
pv_check_volume -- CALLED dev_name: "/dev/hde4" pv: 804D450 pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hde4" pv_check_name -- LEAVING with ret: 0
pv_check_new -- CALLED
pv_check_new -- LEAVING with ret: 0
vg_check_name -- CALLED
vg_check_name -- vg_name: "vg1"
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
vg_check_name -- LEAVING with ret: 0
pv_check_volume -- LEAVING with ret: 1
pv_read_all_pv: allocating for /dev/hde4 vg1 pv_read_all_pv -- avoiding multiple entries in case of MD; np: 1 pv_read_all_pv -- LEAVING with ret: 0
pv_read -- CALLED with /dev/hde4
pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hde4" pv_check_name -- LEAVING with ret: 0
pv_read -- going to read /dev/hde4
pv_copy_from_disk -- CALLED
pv_copy_from_disk -- LEAVING
pv_create_name_from_kdev_t -- CALLED with 33:4 lvm_dir_cache -- CALLED
lvm_dir_cache -- LEAVING with cache_size: 8 pv_create_name_from_kdev_t -- LEAVING with dev_name: /dev/hde4 pv_read -- LEAVING with ret: 0
pv_check_new -- CALLED
pv_check_new -- LEAVING with ret: 0
pvscan -- pv_check_active -- CALLED
vg_check_name -- CALLED
vg_check_name -- vg_name: "vg1"
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
vg_check_name -- LEAVING with ret: 0
pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hde4" pv_check_name -- LEAVING with ret: 0
pv_status -- CALLED
vg_check_name -- CALLED
vg_check_name -- vg_name: "vg1"
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
vg_check_name -- LEAVING with ret: 0
pv_check_name -- CALLED
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
pv_check_name -- CALLED pv_name: "/dev/hde4" pv_check_name -- LEAVING with ret: 0
pv_status -- LEAVING with ret: -6
inactive pv_check_new -- CALLED
pv_check_new -- LEAVING with ret: 0 lvm_tab_vg_check_exist -- CALLED with vg_name: "vg1" vg_check_name -- CALLED
vg_check_name -- vg_name: "vg1"
lvm_check_chars -- CALLED
lvm_check_chars -- LEAVING
vg_check_name -- LEAVING with ret: 0
lvm_tab_read -- CALLED
lvm_tab_read -- LEAVING with ret: 0 data: 804B400 size: 1 lvm_tab_vg_check_exist -- LEAVING with ret: 0
PV "/dev/hde4" is associated to an unknown VG (run vgscan) pvscan -- total: 1 [6.29 GB] / in use: 1 [6.29 GB] / in no VG: 0 [0]