linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Drew <drew.kay@gmail.com>
To: Lou Arnold <larnolda1@gmail.com>
Cc: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Total free space using added VGs and LVs
Date: Mon, 19 Oct 2009 12:51:34 -0700	[thread overview]
Message-ID: <c268e4660910191251x485888edm470b67a1999d5241@mail.gmail.com> (raw)
In-Reply-To: <a5a956f70910191200t340c02c2t28f14d3aef46cfdc@mail.gmail.com>

>> > 1) Why would you want several logical volumes in one volume group?
>>
>> The same reason(s) you would want to partition a regular hard drive.
>>
>> Maybe you only want /home to have 20GB so your kids can't flood the
>> computer with downloaded music. Maybe you want /var/www to have
>> restricted permissions so your home web server is less vulnerable to
>> hackers. Maybe you're running a PVR application like MythTV and want a
>> high-performance filesystem like XFS for storing recorded shows.
>>
>> All of these can be done with logical volumes, and are often easier under
>> LVM.
>
>
> But then if the above is true, then you may as well simply mount the
> partition as normal and add an entry into the fstab file. You get no
> advantage one way or the other - is that true?

LVM does this better then regular disk partitioning. The fact that it
creates a pool of space is it's power.

Two examples.

Let's say you don't have LVM and partitioned your disk with some
leftover space. What happens if you change your mind and want to
increase the size of a partition? Now you have to juggle the
partitions on the disk while you move that free space around to a
place where the partition can be extended. I've done it before and
it's messy. LVM? Just use the lvextend command with the right
parameters and you're done.

Next. Say you have two 80GB disks each partitioned with two partitions
60GB & 20GB. Now say you need to add an extra partition 30GB in size.
How? With regular disks, you pretty much can't. With LVM, you'd have
40GB free and can just create the 30GB logical volume without worrying
about which disk.

As a side note, can you cc: the LVM list when you reply? I don't think
they're getting your side of this conversation.


-- 
Drew

"Nothing in life is to be feared. It is only to be understood."
--Marie Curie

  parent reply	other threads:[~2009-10-19 19:52 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-19 14:52 [linux-lvm] Total free space using added VGs and LVs Lou Arnold
2009-10-19 17:21 ` Stuart D. Gathman
2009-10-19 18:03 ` Drew
     [not found]   ` <a5a956f70910191114r3025ec45r5ddb2e02620fb0c0@mail.gmail.com>
2009-10-19 18:41     ` Drew
     [not found]       ` <a5a956f70910191200t340c02c2t28f14d3aef46cfdc@mail.gmail.com>
2009-10-19 19:51         ` Drew [this message]
2009-10-20  0:26           ` Lou Arnold
2009-10-20  3:19             ` Drew
     [not found]               ` <a5a956f70910201044j12e70c1cg78f454e580595815@mail.gmail.com>
2009-10-21 15:02                 ` Lou Arnold
2009-10-21 15:28                 ` Drew
2009-10-21 19:03                   ` Lou Arnold
2009-10-21 19:18                     ` Ryan Anderson
2009-10-23  0:26                       ` Lou Arnold
2009-10-23  0:52                         ` Stuart D. Gathman
2009-10-21 22:54                     ` David
2009-10-23  6:52                     ` Luca Berra
2009-10-23 19:06                       ` Lou Arnold
2009-10-23 20:12                         ` Ryan Anderson
2009-10-23 20:41                           ` Lou Arnold
2009-10-24  0:06                             ` Brian McCullough
2009-10-24  7:34                               ` Luca Berra
2009-10-24 16:43                               ` Lou Arnold
2009-10-24 17:04                                 ` brem belguebli
2009-10-24 19:16                                   ` Lou Arnold
2009-10-24 20:54                                     ` brem belguebli
2009-10-24 21:21                                       ` Lou Arnold
2009-10-24 22:04                                       ` Stuart D. Gathman
2009-10-25  8:46                                   ` Luca Berra
2009-10-25 13:13                                     ` Drew
2009-10-25 18:09                                       ` Stuart D. Gathman
2009-10-25 19:17                                         ` Stuart D. Gathman
2009-10-26 15:20                                           ` Lou Arnold
2009-10-26 19:39                                             ` Stuart D. Gathman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c268e4660910191251x485888edm470b67a1999d5241@mail.gmail.com \
    --to=drew.kay@gmail.com \
    --cc=larnolda1@gmail.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).