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 1Q8WDu-0002sD-Jx for garchives@archives.gentoo.org; Sat, 09 Apr 2011 11:21:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 33A90E04C2; Sat, 9 Apr 2011 11:19:31 +0000 (UTC) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by pigeon.gentoo.org (Postfix) with ESMTP id D71E5E04C2 for ; Sat, 9 Apr 2011 11:19:30 +0000 (UTC) Received: by wwj40 with SMTP id 40so4803294wwj.10 for ; Sat, 09 Apr 2011 04:19:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:user-agent:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=9Dn5HiVob/ztcRkr169Vnd1Q6IFADvyCmC/T7xMdcnI=; b=H+p5E7YH4U0qzhexmWf+CN4U2QN/Jolt0UPkTgqMaIUX/uz2VS5eI8XaOn/SorlIOl 7FOFKplMDVsk1rtZifJHpPZapPEkXkqs886WDMAzLM1W/FCEwd4UTFG0lSqmZx/9cHH0 EhRmH+/vQ7soP1O/cjhi8mgQYvrO434KpNaS8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=jzpWe4YaXy03qBiFLO4gauqgMfSwMT2HsEXcigF139xkBrvH8Qsj3g7h52aTUycfRj bOiFwKJKLIfu9UpfgtfbaS5v3fj+xpwxC21fUB4mX0UPmA3e6cuykXG0POD/FfTJswYi jBEyBNkgmSRxvY/EHLtzF2FHD/WzX9vlqYX7E= Received: by 10.227.195.143 with SMTP id ec15mr3285411wbb.213.1302347969830; Sat, 09 Apr 2011 04:19:29 -0700 (PDT) Received: from nazgul.localnet (196-215-19-231.dynamic.isadsl.co.za [196.215.19.231]) by mx.google.com with ESMTPS id g7sm2220035wby.31.2011.04.09.04.19.27 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 09 Apr 2011 04:19:28 -0700 (PDT) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] LVM for data drives but not the OS Date: Sat, 9 Apr 2011 13:19:10 +0200 User-Agent: KMail/1.13.6 (Linux/2.6.38-ck; KDE/4.6.2; x86_64; ; ) References: <4D9D9071.2050504@gmail.com> <4DA037DD.1050409@gmail.com> <4DA03973.4040103@gmail.com> In-Reply-To: <4DA03973.4040103@gmail.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 MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201104091319.10422.alan.mckinnon@gmail.com> X-Archives-Salt: X-Archives-Hash: 769b5b05e025c086f77c97deafb4f3c7 Apparently, though unproven, at 12:48 on Saturday 09 April 2011, Dale did opine thusly: > > the new drive ready for LVM. What command adds it to the VG? Is it > > vgcreate with some option? I was sort of looking for something like > > vgadd or something but no luck finding that. Maybe I am missing it on > > the howtos. > > > > Dale > > > > :-) :-) > > That would be vgextend wouldn't it? I just read another bit in another > howto. 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 -- alan dot mckinnon at gmail dot com