Gentoo Archives: gentoo-user

From: David W Noon <dwnoon@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] LVM for data drives but not the OS
Date: Fri, 08 Apr 2011 15:18:16
Message-Id: 20110408161555.5ba78d34@karnak.local
1 On Fri, 08 Apr 2011 15:50:03 +0200, Dale wrote about Re: [gentoo-user]
2 LVM for data drives but not the OS:
4 [snip]
5 >Ooooh. Still some progress tho. lol So, if I was going to use LVM,
6 >I create a partition first, either whole drive or part of it then use
7 >LVM on that?
9 You use pvcreate to create a physical volume from the partition; this
10 formats the partition for LVM use, rather than for a filesystem. When
11 you have enough physical volumes on enough disks -- it's usually one
12 large PV per disk -- you then use vgcreate to amalgamate those physical
13 volumes into a volume group. You can then use lvcreate to allocate
14 logical volumes within that volume group.
16 After that, you use mkfs to format each logical volume, as if it were a
17 partition. You can then add them to /etc/fstab and mount them as
18 needed.
20 Note that the amalgamation of physical volumes into a volume group
21 allows you to do some neat things: you can "stripe" a logical volume
22 across multiple physical volumes to improve its I/O bandwidth; your
23 volume group is what DASD managers call a "concatenation set", which
24 means its effective size is the sum of the physical volume sizes, so
25 you can create a logical volume that is bigger than any of the physical
26 volumes involved.
28 But before you do any of that fancy stuff, get used to using LVM2 as a
29 smarter partition manager.
30 --
31 Regards,
33 Dave [RLU #314465]
34 *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
35 dwnoon@××××××××.com (David W Noon)
36 *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


File name MIME type
signature.asc application/pgp-signature