Le 20/05/2018 à 16:19, Abdullah Ramazanoğlu a écrit :
On Sun, 20 May 2018 15:03:37 +0200 Pascal Hambourg said:
Le 20/05/2018 à 14:33, songbird a écrit :

in my last system i had many different partitions like that but
with the new system i decided that was wasting too much space and

Then LVM is your friend. You can create as many logical volumes as you
like with minimal sizes and easily extend them when needed. This way you
don't waste space in overprovisioning.

LVM greatly simplifies the partitioning part of the chore. But you still need
to do the content management part[*] before shrinking / after enlarging an LV,
don't you?

[*] backup, umount/swapoff, resize2fs/mkswap, mount/swapon, (unlikely but
possibly: restore)

Most common filesystems such as ext2/3/4, xfs or btrfs can be extended online while mounted. Extend the logical volume, then resize the filesystem, that's it. A swap cannot be extended while in use [*], but you can create and add a new swap instead. If you install with minimal logical volume sizes and leave plenty of free space in the volume group for future logical volume growth, you do not need to reduce existing logical volumes to gain free space.

[*] Actually it cannot be resized even when not in use, but it can be recreated with the same UUID and/or label, which provides about the same result as offline resizing would.

Reply via email to