Vm not starting after power fai;

varadarajan

Member
May 12, 2016
16
0
21
65
Hi all !

I had a power failure and after that the vms will not start .
The vms show > running (io-error)
I know the problem - there is no space > local lvm shows > 100.00% (363.31 GB of 363.31 GB)
How did this happen ? It was working before and all the vms were running ?

And how to increase the size as I have 3 TB ?

root@pve:~# vgs
VG #PV #LV #SN Attr VSize VFree
pve 4 19 0 wz--n- <2.73t 0


root@pve:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
base-101-disk-0 pve Vri---tz-k 100.00g data
base-108-disk-0 pve Vri---tz-k 100.00g data
base-111-disk-0 pve Vri---tz-k 100.00g data
base-112-disk-0 pve Vri---tz-k 100.00g data
base-113-disk-0 pve Vri---tz-k 100.00g data
data pve twi-aotzD- <338.36g 100.00 5.25
root pve -wi-ao---- 2.38t
swap pve -wi-ao---- 8.00g
vm-100-disk-0 pve Vwi-a-tz-- 100.00g data 11.93
vm-102-disk-0 pve Vwi-a-tz-- 100.00g data base-111-disk-0 14.55
vm-103-disk-0 pve Vwi-a-tz-- 150.00g data 0.00
vm-103-disk-1 pve Vwi-aotz-- 108.00g data 2.69
vm-104-disk-1 pve Vwi-a-tz-- 113.00g data 2.24
vm-105-disk-0 pve Vwi-a-tz-- 100.00g data 22.51
vm-106-disk-0 pve Vwi-a-tz-- 100.00g data 100.00
vm-107-disk-0 pve Vwi-a-tz-- 100.00g data base-101-disk-0 17.51
vm-109-disk-0 pve Vwi-a-tz-- 100.00g data 13.49
vm-110-disk-0 pve Vwi-a-tz-- 100.00g data 16.43
vm-114-disk-0 pve Vwi-a-tz-- 100.00g data base-101-disk-0 16.73

I am not an experienced user . Where am I going wrong ?

Cheers

Rad
 
You installed your PVE with a bad storage distribution (so you manually changed the default values to worse ones). You got 2 storages. One directory storage (root) of 2.4TB that can store backups, ISOs, LXC templates and your PVE system. And one LVM-Thin block storage (data) of 340 GB that can only be used for VM/LXC disks.

So you should do backups, read about LVM management and then shrink your root LV and extend your data LV so that you get a small (32-100GB or so) root LV and a big (remaining space) data LV.
 
Oops ! Actually I added more disks and then looks like I made a mess !. So "shrink the root LV and extend data LV "is what is needed without making a mess of the file system. Let me see how to do this .