Advice on re-partitioning default Debian 9 stretch to support LVM

postcd

Member
Joined
Jul 8, 2017
Messages
37
Reaction score
3
Credits
89
Hello,

my server provider installed Debian 9 stretch 64bit and this is the disk space layout after installation:
https://pastebin.com/E0DHUhrG

The tmpfs and udev filesystems seems not to be using any disk space according to that figures. But they have big quotas?

Code:
/dev/sda1  *          2048 1031962623 1031960576 492.1G 83 Linux
/dev/sda2       1031964670 1166012415  134047746  63.9G  5 Extended
/dev/sda5       1031964672 1166012415  134047744  63.9G 82 Linux swap / Solaris

I would like to have one big LVM volume, around 80% of the disk space and i am expecting i will be tight on disk space on this volume.

In the future will it anyhow limit me to have udev tmpfs so high quota when my main/largest LVM volume will need more disk space in future?

Would be wise to convert everything to LVM so i can resize them easily in future? Here is mentioned that it may not be good idea to convert root partition into LVM.

I see i can use "fdisk /dev/sda" to change /dev/sda1 type from Linux to Linux LVM.
But when reading this page, i am unsure if this LVM change in fdisk is all what i need to do, if i do not need to install some LVM software. apt-get install lvm2 says:
The following NEW packages will be installed:
dmeventd libdevmapper-event1.02.1 liblvm2app2.2 liblvm2cmd2.02 libreadline5 lvm2
Also there is LVM2. What is a difference between Linux LVM type created by fdisk and lvm2 installed by "apt-get install lvm2" ? Thank You for advises what is needed to convert my setup to LVM.
 
Last edited:

Members online


Top