From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 668AB138F88 for ; Fri, 28 Feb 2014 20:33:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 414F6E0AEB; Fri, 28 Feb 2014 20:33:09 +0000 (UTC) Received: from ccs.covici.com (ccs.covici.com [70.109.53.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3F3BDE0A98 for ; Fri, 28 Feb 2014 20:33:08 +0000 (UTC) Received: from ccs.covici.com (localhost [127.0.0.1]) by ccs.covici.com (8.14.8/8.14.7) with ESMTP id s1SKX7bQ012799 for ; Fri, 28 Feb 2014 15:33:07 -0500 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] what is lvmetad? In-reply-to: <5310EF9A.8030604@gmail.com> References: <1507.1393614724@ccs.covici.com> <5310E11A.8000401@gmail.com> <6565.1393616829@ccs.covici.com> <5310EF9A.8030604@gmail.com> Comments: In-reply-to Alan McKinnon message dated "Fri, 28 Feb 2014 22:20:42 +0200." X-Mailer: MH-E 8.2; nmh 1.3; GNU Emacs 23.4.1 Date: Fri, 28 Feb 2014 15:33:07 -0500 Message-ID: <12798.1393619587@ccs.covici.com> From: covici@ccs.covici.com Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Archives-Salt: 4d496778-9e52-4592-b089-9f54fbb49eef X-Archives-Hash: bbd664bf633d0e0176757782564c9a76 Alan McKinnon wrote: > On 28/02/2014 21:47, covici@ccs.covici.com wrote: > > Alan McKinnon wrote: > > > >> On 28/02/2014 21:12, covici@ccs.covici.com wrote: > >>> In the newest lvm, there is something called lvmetad, but it won't > >>> start because /run/lvm is missing. When I created by hand, it then > >>> started, but when I then started lvm which would not start without > >>> lvmetad, it said lvmetad was started, but disabled. > >>> > >>> Can anyone tell me what is going on here? > >>> > >>> Thanks. > >>> > >> > >> the ebuild issues an elog: > >> > >> * Make sure the "lvm" init script is in the runlevels: > >> * # rc-update add lvm boot > >> * > >> * Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want > >> * to enable lvm autoactivation and metadata caching. > >> > >> > >> Did you notice it and follow it? > > > > I did not ignore, but I could not find where use_lvmetad was and up till > > now it never made any difference, but I see where it is. but lvmetad > > would not start at all till I manually created /run/lvm. > > > > > > > /run is a tmpfs, so something must mkdir it as startup time. I reckon > that is device-mapper: > > $ grep /run/lvm * > device-mapper: checkpath -q -d -m 0700 -o root:root /run/lvm /run/lock/lvm > lvmetad:pidfile="/var/run/lvmetad.pid" > > > Do you have device-mapper configured to run? > I must admit I see oddities sometimes on my lvm-enabled hosts where the > /var/run -> /run symlinks are missing. > I think you should file a bug, either the code is wrong or the > docs/elogs are insufficient here Maybe I will do that as the lvmetad is started before devicemapper if I remember correctly or somehow the dependencies are wrong. I am not sure why its a requirement, I don't scan new lvm volumes very often at all, so its not saving any time, if that is why it exists. -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com