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 1Q8DRw-0001IJ-1H for garchives@archives.gentoo.org; Fri, 08 Apr 2011 15:18:16 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3331F1C02E; Fri, 8 Apr 2011 15:16:05 +0000 (UTC) Received: from karnak.local (cpc2-lutn10-2-0-cust603.9-3.cable.virginmedia.com [81.97.90.92]) by pigeon.gentoo.org (Postfix) with ESMTP id E5B9B1C02E for ; Fri, 8 Apr 2011 15:16:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by karnak.local (Postfix) with ESMTP id 011E33003 for ; Fri, 8 Apr 2011 16:16:04 +0100 (BST) X-Virus-Scanned: by amavisd-new using ClamAV at karnak.local Received: from karnak.local ([127.0.0.1]) by localhost (karnak.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OuNGrdvx0Xd3 for ; Fri, 8 Apr 2011 16:16:02 +0100 (BST) Received: from karnak.local (localhost [127.0.0.1]) by karnak.local (Postfix) with ESMTP id 6AA493002 for ; Fri, 8 Apr 2011 16:16:02 +0100 (BST) Date: Fri, 8 Apr 2011 16:15:55 +0100 From: David W Noon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] LVM for data drives but not the OS Message-ID: <20110408161555.5ba78d34@karnak.local> In-Reply-To: References: Organization: Luton Operatic Society X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; i686-pc-linux-gnu) 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: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/17RgxJsVbu805glycQXZ0MZ"; protocol="application/pgp-signature" X-Archives-Salt: X-Archives-Hash: 9b3c1596db63e78cab5b819715d2520b --Sig_/17RgxJsVbu805glycQXZ0MZ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 08 Apr 2011 15:50:03 +0200, Dale wrote about Re: [gentoo-user] LVM for data drives but not the OS: [snip] >Ooooh. Still some progress tho. lol So, if I was going to use LVM, >I create a partition first, either whole drive or part of it then use >LVM on that? You use pvcreate to create a physical volume from the partition; this formats the partition for LVM use, rather than for a filesystem. When you have enough physical volumes on enough disks -- it's usually one large PV per disk -- you then use vgcreate to amalgamate those physical volumes into a volume group. You can then use lvcreate to allocate logical volumes within that volume group. After that, you use mkfs to format each logical volume, as if it were a partition. You can then add them to /etc/fstab and mount them as needed. Note that the amalgamation of physical volumes into a volume group allows you to do some neat things: you can "stripe" a logical volume across multiple physical volumes to improve its I/O bandwidth; your volume group is what DASD managers call a "concatenation set", which means its effective size is the sum of the physical volume sizes, so you can create a logical volume that is bigger than any of the physical volumes involved. But before you do any of that fancy stuff, get used to using LVM2 as a smarter partition manager. --=20 Regards, Dave [RLU #314465] *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* dwnoon@ntlworld.com (David W Noon) *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* --Sig_/17RgxJsVbu805glycQXZ0MZ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEARECAAYFAk2fJrIACgkQc9/LpQ70v4/3qQCePworLjxGNHw+7LVfLUUkEbKJ JOEAniKBUT9/mqqOu/SXJZpPFTqSnfUv =T0lM -----END PGP SIGNATURE----- --Sig_/17RgxJsVbu805glycQXZ0MZ--