Le 31/10/2016 à 19:45, Greg Wooledge a écrit :
On Mon, Oct 31, 2016 at 01:27:22PM -0500, Richard Owlett wrote:
primary
extended
logical
Whither goest LVM?
1) Use GPT partitioning and get rid of this obsolete distinction between
primary, extended and logical partition.
2) LVM can use any type of block device as a "container" (physical
volume, or PV) : partitions, RAID arrays, encrypted volumes...
Under LVM, you create two (or more, but usually two) *real* partitions:
say, sda1 and sda1.
That looks like the same one partition.
The first partition (sda1) is just formatted using
a straight file system, used for /boot.
As discussed in other messages in this thread, a separate partition with
a plain filesystem for /boot is not always required.
The other partition (sda2)
is not given a file system; instead, it is turned into a Volume Group
(VG)
No, a Physical Volume (PV). Then you create a VG on top of one or
several PV.
Typically you perform your LVM installation by setting up the file systems
and swap partitions (created on LVs) using minimum sizes, and leave most
of the VG unused.
I would not be as extreme as you, and just advise to leave enough free
space in the VG for future LV growth or creation. Some filesystems such
as the ext family come with a fixed number of "inodes" (each file or
directory consumes one inode) which depends on the initial size by
default, and cannot be increased even when the filesystem size is
extended. So a filesystem with minimal size may have too few inodes for
its lifetime.
Unfortunately, the Debian installer does exactly the opposite in
assisted mode : beside assigning insane sizes to the logical volumes, it
allocates all the available space in the VG, making it harder to resize
logical volumes later.