public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] LVM for data drives but not the OS
       [not found]               ` <gFkev-8r9-27@gated-at.bofh.it>
@ 2011-04-08 15:15 99%             ` David W Noon
  0 siblings, 0 replies; 1+ results
From: David W Noon @ 2011-04-08 15:15 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1591 bytes --]

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.
-- 
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
dwnoon@ntlworld.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
     [not found]     <gEUDo-72k-19@gated-at.bofh.it>
     [not found]     ` <gF1ES-22O-19@gated-at.bofh.it>
     [not found]       ` <gF2hz-3ba-17@gated-at.bofh.it>
     [not found]         ` <gF3nk-50O-23@gated-at.bofh.it>
     [not found]           ` <gFhqh-3wh-3@gated-at.bofh.it>
     [not found]             ` <gFicG-4Ul-7@gated-at.bofh.it>
     [not found]               ` <gFkev-8r9-27@gated-at.bofh.it>
2011-04-08 15:15 99%             ` [gentoo-user] LVM for data drives but not the OS David W Noon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox