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 1Q8Wbk-0002Rp-Jj for garchives@archives.gentoo.org; Sat, 09 Apr 2011 11:45:40 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3AA241C00F; Sat, 9 Apr 2011 11:43:29 +0000 (UTC) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.213.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 0DEBC1C00F for ; Sat, 9 Apr 2011 11:43:28 +0000 (UTC) Received: by yxm8 with SMTP id 8so2570301yxm.40 for ; Sat, 09 Apr 2011 04:43:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=+kSeWwu/BS/Tuz4GJShsj0mRiNGrNPiM1z437HSgiFI=; b=ETAjfoWn0HWWY9ADRwRHyjejItNFcWW9XxbjbGYC3rh61Ec6WXrMouyp4L9SJ7eczt FTjvCHtSVCbac/XiqN3r0sf2OzvQCuVQ4nB8eFRj9JprIs4pFpfWh0WWv6TlHYt8Cls+ bbegkPuJZqWLF8xuWipsJD5mNmNoNtEfXuJZA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=AeudBq8XQQRrRnElWCIV1PNaMr+FNz98anrNwylLS5BgYFIFjccJ1AcRyU+gNd4UmO fi05Ex3loZagfsQxhW0v5BAAx5/qwOV7Ytne+JfComIxGnWR8yo0aZLeNEPZfHBOos4u dxi5Zy2ZhpnDk/mXlyD3vCDGsd/7lX0x2FfoY= Received: by 10.91.201.8 with SMTP id d8mr2970499agq.116.1302349408494; Sat, 09 Apr 2011 04:43:28 -0700 (PDT) Received: from [192.168.2.5] (adsl-0-118-199.jan.bellsouth.net [65.0.118.199]) by mx.google.com with ESMTPS id c24sm3954302ana.21.2011.04.09.04.43.26 (version=SSLv3 cipher=OTHER); Sat, 09 Apr 2011 04:43:27 -0700 (PDT) Message-ID: <4DA0465D.2000409@gmail.com> Date: Sat, 09 Apr 2011 06:43:25 -0500 From: Dale User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.18) Gecko/20110325 Gentoo/2.0.13 SeaMonkey/2.0.13 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] LVM for data drives but not the OS References: <4D9D9071.2050504@gmail.com> <4DA037DD.1050409@gmail.com> <4DA03973.4040103@gmail.com> <201104091319.10422.alan.mckinnon@gmail.com> In-Reply-To: <201104091319.10422.alan.mckinnon@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: 2a3dd11c715801c1d2d72d35e5d17dc2 Alan McKinnon wrote: > Apparently, though unproven, at 12:48 on Saturday 09 April 2011, Dale did > opine thusly: > Yes. > > PVs, VGs, LVs all have a concept of extend|resize|reduce. What that means > depends on what you are working with, but they all make the thing bigger or > smaller. > > For a PV it means the underlying device's size changed, so the PV must change > to match. Take a 500G drive, create 1 partition on it of 100G and make it a > PV. Now enlarge the partition to 200G, you must extend the PV to match. > > A VG isn't a single thing, it's a collection of things. Extending it means to > add more PVs, reducing it means to take PVs out of the VG. Hopefully you will > always remember to migrate the data off a PV before removing it from a VG :-) > > Extend/Reduce an LV means to make the device larger/smaller. It is exactly the > same thing as changing a partition size using fdisk. Obviously, you need to > tweak the filesystem at the same time > > So, when I get me a new drive, I use pvcreate to get it ready for LVM, then use vgextend to add it to the VG, then it is available for whatever LV I want to extend or to make a new LV? I think I am catching on here. It was just difficult for me to grasp how things are layered for some reason. Some of the pictures I found helped a good bit tho. Just helped me picture what the commands are doing exactly. I did learn the hard way to resize the file system tho. I forgot that earlier. Sort of had me scratching my head for a bit. lol Dale :-) :-)