Need to resize a partition where VM's are stored

foxyproxy

New Member
Dec 19, 2022
27
4
3
Hi,

I have a 1TB drive with a lot of unused space. I tried using the lvextend command but it's saying there isn't enough free space. As you can see from the screenshot, the disk is 921.2G in size and the data partition is only 54.6 GB. How can I extend this?

proxxymox-resize-disks.png
 
what about pvs?

as for "vgs", it shows you the content/size of the volume group. You can refer to this (or many other articles on LVM structure):
https://access.redhat.com/documenta..._volume_manager_administration/lvm_definition

disks go into physical groups
physical groups go into volume groups
volumes groups get carved into logical groups

your disk may be large, but the volume group does not occupy entire space, as you can see from "vgs".
It means your partition on which "pve" VG is located is limited. You need to dig down and find where the space is, then expand each layer one by one.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Looks like you need to extend the sda3 partition to the end of the disk, as it is only 118GB instead of 873GB. Boot the system using a GParted Live CD or use gdisk /dev/sda to recreate the third partition (starting at the same sector, but extending to the end).
 
something does not add up
Looks like you need to extend the sda3 partition
thats what I thought, but his first screenshot shows lsblk reporting partition at 900gb. not sure whats going on there. I would advise to go through every output again to be sure:
lsblk
fdisk -l
pvdisplay
vgdisplay
lvdisplay


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Something tells me that message in red has something to do with my issue...

1671508250296.png

1671508350393.png

1671508380366.png

--- Volume group ---
VG Name storage-8tb
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 8
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 7
Open LV 5
Max PV 0
Cur PV 1
Act PV 1
VG Size <7.28 TiB
PE Size 4.00 MiB
Total PE 1907721
Alloc PE / Size 8704 / 34.00 GiB
Free PE / Size 1899017 / 7.24 TiB
VG UUID fg5U88-KxHB-uyTX-H0rb-seUi-LL98-xMrIv4

--- Volume group ---
VG Name webservers
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 34
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 5
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size <4.55 TiB
PE Size 4.00 MiB
Total PE 1192326
Alloc PE / Size 1192198 / <4.55 TiB
Free PE / Size 128 / 512.00 MiB
VG UUID uAAwds-QLUu-BDRd-PwYu-vAto-OnpS-zTsvC9

--- Volume group ---
VG Name pve
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 255
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size <118.74 GiB
PE Size 4.00 MiB
Total PE 30397
Alloc PE / Size 26621 / <103.99 GiB
Free PE / Size 3776 / 14.75 GiB
VG UUID FKywrN-a7F8-uqOL-dl06-FBVy-ZbEO-qTcrbg




--- Logical volume ---
LV Path /dev/storage-8tb/vm-103-disk-0
LV Name vm-103-disk-0
VG Name storage-8tb
LV UUID V0Id4y-ypSK-3XKf-PpHW-ffy5-ws9l-R4LV9t
LV Write Access read/write
LV Creation host, time proxmox, 2022-12-20 14:12:01 +1100
LV Status available
# open 1
LV Size 4.00 GiB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:8

--- Logical volume ---
LV Path /dev/storage-8tb/vm-100-disk-0
LV Name vm-100-disk-0
VG Name storage-8tb
LV UUID vjQlyh-MUUl-oP7Q-hdLh-JrdT-C5YP-dw1Jqd
LV Write Access read/write
LV Creation host, time proxmox, 2022-12-20 14:12:33 +1100
LV Status NOT available
LV Size 3.00 GiB
Current LE 768
Segments 1
Allocation inherit
Read ahead sectors auto

--- Logical volume ---
LV Path /dev/storage-8tb/vm-101-disk-0
LV Name vm-101-disk-0
VG Name storage-8tb
LV UUID PanbYd-Jy3h-Pi7V-aYX5-UgsD-rdmu-0LYK6I
LV Write Access read/write
LV Creation host, time proxmox, 2022-12-20 14:14:55 +1100
LV Status available
# open 1
LV Size 2.00 GiB
Current LE 512
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:12

--- Logical volume ---
LV Path /dev/storage-8tb/vm-102-disk-0
LV Name vm-102-disk-0
VG Name storage-8tb
LV UUID FnCqKj-iJZn-hhDO-0bD3-uTIT-zFE2-Y3xV46
LV Write Access read/write
LV Creation host, time proxmox, 2022-12-20 14:15:31 +1100
LV Status NOT available
LV Size 2.50 GiB
Current LE 640
Segments 1
Allocation inherit
Read ahead sectors auto

--- Logical volume ---
LV Path /dev/storage-8tb/vm-104-disk-0
LV Name vm-104-disk-0
VG Name storage-8tb
LV UUID 2RaNpE-kCoK-nHFo-JULb-Oa4s-pcR2-oD3NRt
LV Write Access read/write
LV Creation host, time proxmox, 2022-12-20 14:16:13 +1100
LV Status available
# open 1
LV Size 14.00 GiB
Current LE 3584
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:9

--- Logical volume ---
LV Path /dev/storage-8tb/vm-106-disk-0
LV Name vm-106-disk-0
VG Name storage-8tb
LV UUID wOl6lz-AR7B-edzt-2yTf-PfEr-wKqY-WnrtJl
LV Write Access read/write
LV Creation host, time proxmox, 2022-12-20 14:17:31 +1100
LV Status available
# open 1
LV Size 4.00 GiB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:10

--- Logical volume ---
LV Path /dev/storage-8tb/vm-107-disk-0
LV Name vm-107-disk-0
VG Name storage-8tb
LV UUID gdwYOJ-v14o-U6jd-q4y0-pDvI-i5YV-W20rQn
LV Write Access read/write
LV Creation host, time proxmox, 2022-12-20 14:19:02 +1100
LV Status available
# open 1
LV Size 4.50 GiB
Current LE 1152
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:11

--- Logical volume ---
LV Name webservers
VG Name webservers
LV UUID p1E4Bl-Yf7V-xteo-qrDk-EqdG-od7m-CqT1Cs
LV Write Access read/write (activated read only)
LV Creation host, time proxmox, 2022-12-06 14:23:18 +1100
LV Pool metadata webservers_tmeta
LV Pool data webservers_tdata
LV Status available
# open 0
LV Size <4.52 TiB
Allocated pool data 57.09%
Allocated metadata 5.81%
Current LE 1184102
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:18

--- Logical volume ---
LV Path /dev/webservers/vm-103-disk-0
LV Name vm-103-disk-0
VG Name webservers
LV UUID Na29qi-vUg9-hfNd-Wsw5-tZsK-qVG1-pWjE7s
LV Write Access read/write
LV Creation host, time proxmox, 2022-12-06 14:37:12 +1100
LV Pool name webservers
LV Status available
# open 1
LV Size <3.91 TiB
Mapped size 60.31%
Current LE 1024000
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:19

--- Logical volume ---
LV Path /dev/webservers/base-1000-disk-0
LV Name base-1000-disk-0
VG Name webservers
LV UUID UwYCdc-mhQs-t92X-Tsrw-QWIz-5XDV-L1VJ65
LV Write Access read only
LV Creation host, time proxmox, 2022-12-20 08:03:44 +1100
LV Pool name webservers
LV Status NOT available
LV Size 4.00 GiB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto

--- Logical volume ---
LV Path /dev/webservers/vm-107-disk-1
LV Name vm-107-disk-1
VG Name webservers
LV UUID y6JOEf-5sv2-YmWx-oVuQ-vacz-czoG-bb4MGL
LV Write Access read/write
LV Creation host, time proxmox, 2022-12-20 08:07:42 +1100
LV Pool name webservers
LV Status available
# open 1
LV Size 1.46 TiB
Mapped size 15.01%
Current LE 384000
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:7

--- Logical volume ---
LV Path /dev/webservers/vm-105-disk-0
LV Name vm-105-disk-0
VG Name webservers
LV UUID mCRIbn-pLWy-nVjm-BTG0-fgPQ-SWKz-t4YnM8
LV Write Access read/write
LV Creation host, time proxmox, 2022-12-20 13:39:03 +1100
LV Pool name webservers
LV Status available
# open 0
LV Size 8.00 GiB
Mapped size 23.16%
Current LE 2048
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:6

--- Logical volume ---
LV Path /dev/pve/swap
LV Name swap
VG Name pve
LV UUID uLwrRl-Owwu-6yfE-SUmt-Zz3i-JA4G-ZxJQJ7
LV Write Access read/write
LV Creation host, time proxmox, 2022-11-26 17:26:20 +1100
LV Status available
# open 2
LV Size <7.66 GiB
Current LE 1960
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Path /dev/pve/root
LV Name root
VG Name pve
LV UUID BV1M4r-weqQ-AoI2-2E5U-JFoD-mpjZ-gfmqSv
LV Write Access read/write
LV Creation host, time proxmox, 2022-11-26 17:26:21 +1100
LV Status available
# open 1
LV Size 39.77 GiB
Current LE 10182
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1

--- Logical volume ---
LV Name data
VG Name pve
LV UUID Yo9zxJ-cHYO-0zWv-BFBa-9tpJ-7nqV-wjmHsJ
LV Write Access read/write (activated read only)
LV Creation host, time proxmox, 2022-11-26 17:26:23 +1100
LV Pool metadata data_tmeta
LV Pool data data_tdata
LV Status available
# open 0
LV Size <54.56 GiB
Allocated pool data 0.00%
Allocated metadata 1.59%
Current LE 13967
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:5
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!