linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Thomas Deutschmann <whissi@gentoo.org>
To: linux-lvm@redhat.com
Subject: [linux-lvm] LVM complains about /etc/lvm/cache/.cache it created
Date: Wed, 7 Aug 2019 01:36:27 +0200	[thread overview]
Message-ID: <d21ca2aa-5d34-2938-2f8a-622f7aa5403d@gentoo.org> (raw)

Hi,

while reworking how we activate LVM in Gentoo's genkernel initramfs init
script, I tested some commands at boot in the following order:

# /sbin/lvm vgscan
# /sbin/lvm vgchange -ay --sysinit
# /sbin/lvm vgmknodes --ignorelockingfailure --verbose

The last command (vgmknodes) will output

>     Failed to load existing device cache from /etc/lvm/cache/.cache

I can delete this file (/etc/lvm/cache/.cache), re-run the command twice
and on the second call, after cache file was recreated by LVM, the error
is back.

So this looks like LVM is creating a cache it cannot use by itself?!


# lvm version
  LVM version:     2.02.185(2) (2019-05-13)
  Library version: 1.02.158 (2019-05-13)
  Driver version:  4.35.0
  Configuration:   ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
    --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
    --localstatedir=/var/lib --disable-dependency-tracking --docdir=/usr/share/doc/lvm-2.02.185
    --htmldir=/usr/share/doc/lvm-2.02.185/html --enable-static_link --enable-pkgconfig --enable-dmeventd
    --enable-cmdlib --disable-lvmetad --with-clvmd=none --with-cluster=none --disable-readline
    --disable-selinux --with-mirrors=internal --with-snapshots=internal --with-thin=internal
    --with-cache=internal --disable-udev-systemd-background-jobs --disable-udev_sync
    --disable-udev_rules


-- 
Regards,
Thomas Deutschmann / Gentoo Linux Developer
C4DD 695F A713 8F24 2AA1 5638 5849 7EE5 1D5D 74A5

             reply	other threads:[~2019-08-06 23:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-06 23:36 Thomas Deutschmann [this message]
2019-08-07 18:32 [linux-lvm] LVM complains about /etc/lvm/cache/.cache it created Thomas Deutschmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d21ca2aa-5d34-2938-2f8a-622f7aa5403d@gentoo.org \
    --to=whissi@gentoo.org \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).