LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Storage Config on a new install (https://www.linuxquestions.org/questions/linux-newbie-8/storage-config-on-a-new-install-4175690417/)

merc718 02-12-2021 06:07 PM

Storage Config on a new install
 
Just installed ubuntu Server on 20.04 - ssd is 512gb. When i ssh into the system, my disk usage is 5.3 % of 195gb? i lsblk my hd and got:

Code:

nvme0n1                  259:0    0 476.9G  0 disk
├─nvme0n1p1              259:1    0  512M  0 part /boot/efi
├─nvme0n1p2              259:2    0    1G  0 part /boot
└─nvme0n1p3              259:3    0 475.4G  0 part
  └─ubuntu--vg-ubuntu--lv 253:0    0  200G  0 lvm  /
nvme1n1                  259:4    0 953.9G  0 disk

ot seems like i should have paid more attention to the install but there seems to be a lvm volumn of 200gb. i google what lvm is and dont exactly understand what it does. it the most simplest terms, can someone explain? i have one disk for the OS and a separate one(1tb) for storage.

berndbausch 02-12-2021 06:20 PM

In a single sentence, LVM can be described as "flexible partitioning". It is flexible because logical volumes can be created, deleted and resized easily and span several storage devices. If you want your root filesystem to be larger than 200GB, use the lvextend command.

Further reading: The LVM HOWTO is old but still a useful introduction.

computersavvy 02-12-2021 07:10 PM

There are several LVM commands that will assist in visualizing what was done during the install. Your first drive, where the install was done is 500G. You have ~476G available to use with
0.5G at /boot/efi, 1.0G at /boot and 200G at /.
The remainder of the 475 G in nvme0n1p3 is part of the VG but is unallocated.

The commands pvscan, vgscan, and lvscan combined can tell you a lot about what is where and what is available. You could, for example, create a new LV within that VG to mount at /home and keep your personal data separate from the system data with the lvcreate command. All while still using space available on the first disk.


All times are GMT -5. The time now is 10:43 PM.