Hi everyone, recently my VMs freeze and proxmox marks io-error status. I think it is due to the local-lvm volume being full
Here are some dumps:
As I understand it the logical volume data (which should be the volume where the virtual disks are saved) is full. From the dumps I also see that there is still ~ 15GB in the volume group and physical volume.
Unfortunately I have no way to immediately have more space for virtual disks, until then I would like to make do with these 15GB still free until I buy a new SSD.
I know that I can extend the size of the
I don't want to screw everything up due to incorrect commands, so:
Here are some dumps:
Code:
root@pve:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 12G 0 12G 0% /dev
tmpfs 2.4G 9.1M 2.4G 1% /run
/dev/mapper/pve-root 29G 5.2G 23G 19% /
tmpfs 12G 43M 12G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 12G 0 12G 0% /sys/fs/cgroup
/dev/nvme0n1p2 511M 312K 511M 1% /boot/efi
/dev/fuse 30M 20K 30M 1% /etc/pve
tmpfs 2.4G 0 2.4G 0% /run/user/0
root@pve:~# vgs
VG #PV #LV #SN Attr VSize VFree
pve 1 7 0 wz--n- <118.74g 14.75g
root@pve:~# pvs
PV VG Fmt Attr PSize PFree
/dev/nvme0n1p3 pve lvm2 a-- <118.74g 14.75g
root@pve:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-aotzD- <67.49g 100.00 4.62
root pve -wi-ao---- 29.50g
swap pve -wi-ao---- 5.00g
vm-100-disk-0 pve Vwi-aotz-- 32.00g data 81.81
vm-100-disk-1 pve Vwi-aotz-- 20.00g data 48.46
vm-102-disk-0 pve Vwi-aotz-- 32.00g data 98.81
vm-102-disk-2 pve Vwi-aotz-- 4.00m data 3.12
root@pve:~# pvesm status
Name Type Status Total Used Available %
Backup_VMs dir disabled 0 0 0 N/A
local dir active 30316484 5443500 23309952 17.96%
local-lvm lvmthin active 70766592 70766592 0 100.00%
As I understand it the logical volume data (which should be the volume where the virtual disks are saved) is full. From the dumps I also see that there is still ~ 15GB in the volume group and physical volume.
Unfortunately I have no way to immediately have more space for virtual disks, until then I would like to make do with these 15GB still free until I buy a new SSD.
I know that I can extend the size of the
data
volume via LVM commands lvresize -L [+|-][Size] <vgname>/<lvname>
or something like that. The problem is that I don't quite understand how, since it is an LVM-thin volume and so there is also the volume of metadata.I don't want to screw everything up due to incorrect commands, so:
- Is it safe to expand the volume this way?
- Otherwise what commands should i give to expand the volume safely?
- If I don't get it wrong, eventually I should also resize the filesystem with something like this
resize2fs /<absolute_path_volume>
? - Is there an easier and safer way using
pvesm
? I couldn't figure it out from here: PVE-admin-guide-storage