public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Neil Bothwick <neil@digimed.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] lvm2 questions
Date: Fri, 5 Jun 2009 09:34:53 +0100	[thread overview]
Message-ID: <20090605093453.71129ad0@krikkit.digimed.co.uk> (raw)
In-Reply-To: <20090605061620.GB4753@ca.inter.net>

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

On Fri, 5 Jun 2009 02:16:20 -0400, Philip Webb wrote:

> That's not how it works: you need to create the LVs with enough space
> for your likely needs & LVM then assigns them in its own way to the PVs;
> later, if you made an LV too small, you can increase it
> (you also have to extend the file system after you've done that,
> but of couse don't simply reformat the whole LV);
> if you want to decrease an LV -- rather unlikely in real life -- ,
> the problem is that you may risk losing data, if that part is dropped:
> I would imagine the correct procedure is to copy everything somewhere
> -- another LV, another partition, a USB stick -- ,
> then delete the LV & recreate it with the smaller size.

You shrink an LV in much the same way that you increase its size, except
in the opposite order - resize the filesystem and then the LV. It's not
difficult but it does take longer, because the filesystem resize
generally results in data being moved around. The main difficulty is that
you cannot shrink a mounted filesystem, so if you can't unmount it you
have to use a live CD to do the job.


-- 
Neil Bothwick

2 + 2 = 5 for extremely large values of 2.

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

      reply	other threads:[~2009-06-05  8:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-04 19:01 [gentoo-user] lvm2 questions Maxim Wexler
2009-06-04 23:00 ` Albert Hopkins
2009-06-05  4:32   ` Maxim Wexler
2009-06-05  6:16     ` Philip Webb
2009-06-05  8:34       ` Neil Bothwick [this message]

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=20090605093453.71129ad0@krikkit.digimed.co.uk \
    --to=neil@digimed.co.uk \
    --cc=gentoo-user@lists.gentoo.org \
    /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