Purchase Linux CDs / DVDs / Flash Drives at OSDisc.com

Welcome to Our Community

While Linux.org has been around for a while, we recently changed management and had to purge most of the content (including users). If you signed up before April 23rd, 2017 please sign up again. Thanks!

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

Discussion in 'Command Line' started by postcd, Jul 8, 2017.

  1. postcd

    postcd New Member

    Jul 8, 2017
    Likes Received:

    (Log in to hide this advertisement)

    my server provider installed Debian 9 stretch 64bit and this is the disk space layout after installation:

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

    /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.
    #1 postcd, Jul 8, 2017
    Last edited: Jul 8, 2017

Share This Page