From: Alex Schuster <wonko@wonkology.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Partitioning strategy...?
Date: Sun, 27 Nov 2011 10:31:16 +0100 [thread overview]
Message-ID: <20111127103116.58a22786@weird.wonkology.org> (raw)
In-Reply-To: <20111127090237.352b9686@amit.kihnet.sk>
Róbert Čerňanský writes:
> On Sun, 27 Nov 2011 00:01:07 +0100
> Alex Schuster <wonko@wonkology.org> wrote:
>
> > pvcreate /dev/sda5
> > vgcreate myvg /dev/sda5
> > lvcreate -n usr -L 10G myvg
> > mke2fs -j /dev/myvg/usr
> >
> > Of course, just using /dev/sda5 for /usr is simpler. But what if this
> > turns out to be too small? With so many partitions I would think this
> > is very likely to happen sooner or later. With LVM, all you'd have to
> > do is:
> >
> > lvresize -L +1G /dev/myvg/usr
> > resize2fs /dev/myvg/usr
>
> Here I do not understand from where this +1G is taken? Don't you have
> to make something smaller by 1G first?
I assumed that /dev/sda5 is large enough and has free space that is not
being used for logical volumes. The lvcreate -L 10G step creates a
logical volume of 10 GB size, the rest of the volume group (that is using
the physical volume /dev/sda5) is being unused. You can create other
logical volumes with lvcreate, or extend existing ones, until all of that
space is being used. Then, you need to make something smaller of course
(which can be done), or you can extend your volume group by another
partition. Which may be on the same drive, or even on another one.
pvcreate /dev/sda6
vgextend myvg /dev/sda6
lvresize...
Wonko
next prev parent reply other threads:[~2011-11-27 9:32 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-25 13:53 [gentoo-user] Partitioning strategy...? Pandu Poluan
2011-11-25 13:55 ` [gentoo-user] " Pandu Poluan
2011-11-25 19:02 ` Francesco Talamona
2011-11-25 21:43 ` Neil Bothwick
2011-11-25 14:35 ` [gentoo-user] " Mark Knecht
2011-11-25 16:12 ` Pandu Poluan
2011-11-25 16:25 ` Jarry
2011-11-25 16:30 ` Mark Knecht
2011-11-25 17:23 ` Pandu Poluan
2011-11-25 20:07 ` Dale
2011-11-25 20:15 ` Dale
2011-11-25 21:48 ` Neil Bothwick
2011-11-25 23:47 ` Dale
2011-11-26 8:05 ` Alan McKinnon
2011-11-25 17:56 ` [gentoo-user] " James
2011-11-25 18:31 ` Pandu Poluan
2011-11-26 8:03 ` Alan McKinnon
2011-11-26 8:32 ` Dale
2011-11-25 18:58 ` Francesco Talamona
2011-11-25 20:22 ` Dale
2011-11-25 20:08 ` [gentoo-user] " Walter Dnes
2011-11-26 18:22 ` Mick
2011-11-26 19:05 ` Pandu Poluan
2011-11-26 21:07 ` Alan McKinnon
2011-11-25 21:46 ` Neil Bothwick
2011-11-25 23:58 ` Dale
2011-11-26 21:30 ` Neil Bothwick
2011-11-26 1:16 ` Pandu Poluan
2011-11-26 23:01 ` Alex Schuster
2011-11-26 23:32 ` Neil Bothwick
2011-11-26 23:43 ` Mark Knecht
2011-11-26 23:50 ` Neil Bothwick
2011-11-26 23:58 ` Mark Knecht
2011-11-27 8:02 ` Róbert Čerňanský
2011-11-27 8:12 ` Dale
2011-11-27 8:29 ` Alan McKinnon
2011-11-27 9:31 ` Alex Schuster [this message]
2011-11-25 17:00 ` Stéphane Guedon
2011-11-25 17:53 ` Pandu Poluan
2011-11-25 18:17 ` Mark Knecht
2011-11-25 19:14 ` Stéphane Guedon
2011-11-25 19:51 ` Walter Dnes
2011-11-25 20:09 ` Mark Knecht
2011-11-25 20:30 ` Stéphane Guedon
2011-11-26 0:11 ` Dale
2011-11-25 21:58 ` Neil Bothwick
2011-11-26 1:27 ` Volker Armin Hemmann
2011-11-26 2:56 ` Pandu Poluan
2011-11-26 7:54 ` Alan McKinnon
2011-11-26 18:42 ` Pandu Poluan
2011-11-26 20:58 ` Alan McKinnon
2011-11-26 21:08 ` Neil Bothwick
2011-11-26 19:24 ` kashani
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=20111127103116.58a22786@weird.wonkology.org \
--to=wonko@wonkology.org \
--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