From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MCLvK-0004Ad-Gq for garchives@archives.gentoo.org; Thu, 04 Jun 2009 23:00:38 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EEED7E0496; Thu, 4 Jun 2009 23:00:36 +0000 (UTC) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by pigeon.gentoo.org (Postfix) with ESMTP id D4D8DE0496 for ; Thu, 4 Jun 2009 23:00:36 +0000 (UTC) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id BA076356220 for ; Thu, 4 Jun 2009 19:00:36 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Thu, 04 Jun 2009 19:00:36 -0400 X-Sasl-enc: 1ipaCnDc6ckScbb7wCJO4ovwARHSs7gwYrvmDSWnWXhu 1244156436 Received: from [192.168.31.20] (cpe-024-211-156-075.nc.res.rr.com [24.211.156.75]) by www.fastmail.fm (Postfix) with ESMTPSA id 72B8B11AFB for ; Thu, 4 Jun 2009 19:00:36 -0400 (EDT) Subject: Re: [gentoo-user] lvm2 questions From: Albert Hopkins To: gentoo-user@lists.gentoo.org In-Reply-To: References: Content-Type: text/plain Date: Thu, 04 Jun 2009 19:00:03 -0400 Message-Id: <1244156408.11916.7.camel@centar> 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 Mime-Version: 1.0 X-Mailer: Evolution 2.26.2 Content-Transfer-Encoding: 7bit X-Archives-Salt: 4180db32-9720-46d2-960d-3ce8f80883cd X-Archives-Hash: df0bd592839c4c8030118acd26d3b14f On Thu, 2009-06-04 at 13:01 -0600, Maxim Wexler wrote: > Hi group, > > Creating LVM partitions on SSD and SD card using systemrescuecd-1.2.0 > while following doc, 'Gentoo LVM2 installation'. In the doc it says > to edit the 'filter =' statement in lvm.conf in order to scan the > correct devices. But just below it says to use #pvcreate with the > appropriate devices. But if you use pvcreate to specify the device > you're planning to partition what's the point in editing lvm.conf? > Edited it anyways. > > Now have: > ... > filter= [ "r|/dev/ndb.*|", "a|/dev/sd[ab]|" ] # only changed 'accept' line > ... > > /root % vgscan > Reading all physical volumes. This may take a while... > > Well, no, it was more or less instant. There was no further output and > the prompt reappeared. Does this mean everything is cool or that > vgscan found nothing? > You still need pvcreate to create PVs. What the filter parameter is for is for when LVM scans for PVs. Basically pvcreate puts a header on the device so that vgscan and friends knows that it's a PV. It may be undesirable to scan some devices (e.g. optical drives) for PVs. Having said that, usually the defaults for filter and exclude are fine and you don't need to play with them (as is the case for many defaults). You'll know if LVM has detected your PVs by running pvdisplay. If your PV doesn't show up either a: you didn't pvcreate it or b: it didn't get scanned due to your filter or exclude params. -a