Bug#756560: lvm2: cache_dir /run/lvm doesn't exist, ENOENT /run/lvm/.cache

2016-03-10 Thread Zdenek Kabelac

On Wed, 30 Jul 2014 15:54:32 -0600 Jacob Anawalt  wrote:

Package: lvm2
Version: 2.02.95-8
Severity: normal

Dear Maintainer,

I have installed fresh Debian 7 systems to do some testing with and found
that the default configured cache_dir of "/run/lvm" does not exist under /run.

When I strace vgscan, it gives the ENOENT error because it cannot open
/run/lvm/.cache.

The system us using tmpfs for /run as per the Debian defaults.

I don't know what is suppose to create the lvm directory under /run
on reboot, but it seems that something, perhaps /etc/init.d/lvm2,
should to enable caching.



Upstream (original)  lvm2  stores .cache within  /etc/lvm dir which
is persistent across reboots.

Debian for unknown reason relocated this 'persistent' place to /run
which is cleared on every reboot - so losing the original purpose.

On the other hand on any modern distro which is using 'udev' scan,
this .cache file is actually not used - since the list of devices
is obtained from udev - so no big harm as the cache file is not even created...

Regards

Zdenek



Bug#756560: lvm2: cache_dir /run/lvm doesn't exist, ENOENT /run/lvm/.cache

2014-07-30 Thread Jacob Anawalt
Package: lvm2
Version: 2.02.95-8
Severity: normal

Dear Maintainer,

I have installed fresh Debian 7 systems to do some testing with and found
that the default configured cache_dir of /run/lvm does not exist under /run.

When I strace vgscan, it gives the ENOENT error because it cannot open
/run/lvm/.cache.

The system us using tmpfs for /run as per the Debian defaults.

I don't know what is suppose to create the lvm directory under /run
on reboot, but it seems that something, perhaps /etc/init.d/lvm2,
should to enable caching.

-- System Information:
Debian Release: 7.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lvm2 depends on:
ii  dmsetup   2:1.02.74-8
ii  initscripts   2.88dsf-41+deb7u1
ii  libc6 2.13-38+deb7u3
ii  libdevmapper-event1.02.1  2:1.02.74-8
ii  libdevmapper1.02.12:1.02.74-8
ii  libreadline5  5.2+dfsg-2~deb7u1
ii  libudev0  175-7.2
ii  lsb-base  4.1+Debian8+deb7u1

lvm2 recommends no packages.

lvm2 suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org