Forum archive
Disk Space Issues
Hi all,
Please forgive my ignorence and I appreciate any help. I'm having some problems with disk space on an Observium image that I'm running on ESXi 6. It has 100 GB of provisioned space for the VM.
When I SSH into the VM console, I get the following message:
Welcome to Observium, TurnKey GNU/Linux 14.1 / Debian 8.4 Jessie
System information (as of Mon Jun 26 10:53:57 2017)
System load: 0.17 Memory usage: 57%
Processes: 113 Swap usage: 0%
Usage of /: 99.9% of 16.61GB
I extended the partition using GParted, so the 16 GB parition occupied the entire 100 GB space but this VM doesn't appear to have noticed.
I then found this article but it doesn't seem to have helped me in this instance.
Extending an LVM volume: Physical volumes (partitions) -> Volume groups -> Logical volume -> Filesystem
/blog/extending-lvm
root@observium /# vgdisplay
--- Volume group ---
VG Name turnkey
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 6
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 99.52 GiB
PE Size 4.00 MiB
Total PE 25477
Alloc PE / Size 4480 / 17.50 GiB
Free PE / Size 20997 / 82.02 GiB
root@observium /# pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name turnkey
PV Size 99.52 GiB / not usable 1.77 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 25477
Free PE 20997
Allocated PE 4480
root@observium /# cfdisk
Disk: /dev/sda
Size: 100 GiB, 107374182400 bytes, 209715200 sectors
Label: dos, identifier: 0xd88d9bbb
Device Boot Start End Sectors Size Id Type
>> Free space 2048 122879 120832 59M
/dev/sda1 * 122880 999423 876544 428M 83 Linux
Free space 999424 1001952 2529 1.2M
/dev/sda2 1001953 209715199 208713247 99.5G 8e Linux LVM
I feel I'm missing something crucial to use what I believe to be 82.02 GB of free space? Any help please?
Thanks,
Jon
To see if the LV already includes this extra space, check like this:
As per the blog post you linked to, to add 10GB to your existing LV:
Then to resize the partition so that it includes the extra space: