LVM 1.0.3 VGDA corrupted often ??
Hi,
Has anyone found the VGDA corrupted very often?
message --
"ERROR: VGDA in kernel and lvmtab are NOT consistent; please run vgscan"
I create a volume group "MainVG" and several LVs (and some snapshots) in it. After creating and removing the logical volumes or snapshots for several times, the VGDA error message comes up easily.
And after "vgscan", my "MainVG" is gone.
(But the mounted LVs work fine until next boot??)
Should I execute "sync" every time I make changes to my LVs? Or should I execute "vgcfgbackup" and restore them if the error occurs?
BTW, I resized a LV today and execute "resize2fs"; but after mounting the LV again, the size was not what I expected??
My command : "resize2fs -f /dev/MainVG/LV1"
no error message at all??
Thanks in advance!!
Catherine
Quoted 6 lines · Catherine Shen
Hi,
Has anyone found the VGDA corrupted very often?
message --
"ERROR: VGDA in kernel and lvmtab are NOT consistent; please run vgscan"
Quoted 8 lines
I create a volume group "MainVG" and several LVs (and some snapshots) in it. After creating and removing the logical volumes or snapshots for several times, the VGDA error message comes up easily.
And after "vgscan", my "MainVG" is gone.
(But the mounted LVs work fine until next boot??)Should I execute "sync" every time I make changes to my LVs? Or should I execute "vgcfgbackup" and restore them if the error occurs?
Nope, everything should work without those.
Looks like a bug, if you can reproduce it.
Could you send the before/after metadata to me directly <[email protected]> for further investigation?
Please retrieve it with *before* the problem occurs and another time *after* it occurs and replace "WHEN" below with before or after respectively:
#!/bin/bash
mkdir /tmp/vgda
cd /tmp/vgda
for p in ListOfAllPVsOfTheVG
do
dd if=$p of=$(basename $p).vgda bs=1k count=4k
done
tar cvf - *vgda | bzip2 -c > Catherine_Shen${WHEN}.vgda.tar.bz2 rm *vgda
Quoted 9 lines
BTW, I resized a LV today and execute "resize2fs"; but after mounting the LV again, the size was not what I expected??
My command : "resize2fs -f/dev/MainVG/LV1"
no error message at all??Thanks in advance!!
CatherineÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿåŠ{±þ[晨¥Šx%ŠËeŠ{±þ[æþȬ¶)ÚýÊ&†ÛiÿÿåŠËlþȬ¶)ÚýÊ&þf¢–f§þX¬¶)ߣùbžìÿ–ù«y§m…âÕ0s–ý3š¶mÿÿÿÃÿ²+-Švÿr‰¿–ù¿=¨³øhÂÚÿ†Ù¥
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-