Bug#297010: linux-kernel-header: O_NOATIME needed for lvm

GOTO Masanori GOTO Masanori <gotom@debian.or.jp>, 297010@bugs.debian.org
Mon, 28 Feb 2005 09:15:01 +0900


At Sat, 26 Feb 2005 14:40:33 +0100,
Goswin Brederlow wrote:
> Package: linux-kernel-headers
> Version: 2.5.999-test7-bk-17
> Severity: critical
> File: linux-kernel-header
> Justification: breaks the whole system
> 
> Hi,
> 
> when one tries to run pvmove or lvsnapshot on / the lvm will deadlock
> itself due to atime updates on /dev/ being blocked while the LVM is
> locked. Sine any read/write access to / will be blocked the system
> breaks.
> 
> To prevent this lvm uses O_NOATIME where available, which is still not
> the case in current linux-kernel-headers.

I couldn't understand why this problem is occured.  O_NOATIME was
introduced in 2.6.7.  Is the root of problem to upgrading lvm package?
Bastian's patch adds only O_NOATIME flag - this means that lvm can fix
using O_NOATIME in your new package.  In other words, lvm is
"severity: critical", but glibc is not.  lvm is kernel related
package, so depending on libc6 header sometimes causes problems.

So I recommend that lvm should use O_NOATIME definition in your
package for a while.

Regards,
-- gotom