Red Hat Bugzilla – Bug 246516
lstat failed errors - .cache contains invalid items
Last modified: 2013-02-28 23:05:49 EST
Description of problem:
During lvm regression testing there is a test case that attempts to create 32
mirrors all with the names "thirty_[1-32]" and lately whenever I attempt to
create a mirror with that name I get a "lstat failed" error even though the
creation works. If I try a different name, I don't see the error. I didn't
notice any left over entries in the device-mapper listings and I have deleted
both the lvm/backup and lvm/archive directories.
lvcreate -m 1 -n thirty_1 -vvvv -L 100M mirror_sanity
/dev/mirror_sanity/thirty_1_mlog: lstat failed: No such file or directory
Logical volume "thirty_1" created
Version-Release number of selected component (if applicable):
Created attachment 158368 [details]
lvmdump before the creation
Created attachment 158369 [details]
lvmdump after the creation
Created attachment 158370 [details]
verbose -vvvv output from creation
There are invalid devices left in /etc/lvm/cache/.cache file, removing .cache helps.
I see this on RHEL4 too when using lvconvert on mirror and converting from core
log to disk log (even if .cache is removed before this operation).
(But it is seems that problem is in .cache use anyway.)
*** Bug 248814 has been marked as a duplicate of this bug. ***
Fixed in lvm2-2.02.26-3.el5.
This bug has been verified fixed in lvm2-2.02.27-2.el4.
whoops, wrong machine, fix was verified in lvm2-2.02.26-3.el5.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.