Re: Resizing LVM issue
- To: firstname.lastname@example.org
- Subject: Re: Resizing LVM issue
- From: Pascal Hambourg <email@example.com>
- Date: Wed, 02 Jul 2014 23:25:12 +0200
- Message-id: <[🔎] 53B478B8.firstname.lastname@example.org>
- In-reply-to: <53B030F0.email@example.com>
- References: <5328E7F1.firstname.lastname@example.org> <538B8663.email@example.com> <CAE7pJ3Az+SPUOrG_tAO+yaPMAwUCCTy_0g61D8KJ1yf-UJC4Yg@mail.gmail.com> <538F9AF6.firstname.lastname@example.org> <5390113A.email@example.com> <20140605090400.GC15859@hysteria.proulx.com> <539CC14A.firstname.lastname@example.org> <53A6DA43.email@example.com> <53B030F0.firstname.lastname@example.org>
Miroslav Skoric a écrit :
> On 06/22/2014 03:29 PM, Pascal Hambourg wrote:
>> You should not have allocated all the space in the VG but instead should
>> have left some free space for further growing or creating LVs when the
>> need arises.
> Let's try once again: I have not allocated anything at the time of
Yes you have, by accepting the installer's suggestion :
> The only thing I've done was to accept Debian installer's
> suggestion to make the OS installation by using the whole hard disk and
> make the LVM. (In the other words, I let the installer to calculate
> particular partitions.)
> I see now some of you telling it should not be
> done that way, but would not be better to blame the programmers who had
> made such a 'bad option' within the installer?
You as the user have the final choice. You have to decide if the
installer's suggestion fits your needs and constraints. The installer
doesn't know about them.
> Secondly, either the installer and/or some online manuals had suggested
> that the main purpose of LVM was to allow additional reallocating space
> within the OS's partitions, later if and when needed, from within an
> already working system.
Yes, but LVs usually contain filesystems, and as you have seen, online
shrinking of a mounted filesystem is often difficult or impossible. So
it is better to avoid this kind of situation.
If you can grow the PV (e.g. by adding a new disk) when you need to grow
a LV, then it is fine to allocate all the space of the initial PV.
However if you cannot grow the PV, then it is better to leave some of
the PV space initially unallocated and to grow LVs from that free space