LXC won't start after storage resize

Hashji

Member
Mar 29, 2020
5
0
6
Hello,

after a manually stop and storage resize of a container it isn't possible to start it again.


Pve version :

Code:
proxmox-ve: 5.4-2 (running kernel: 4.15.18-27-pve)
pve-manager: 5.4-13 (running version: 5.4-13/aee6f0ec)
pve-kernel-4.15: 5.4-16
pve-kernel-4.15.18-27-pve: 4.15.18-55
pve-kernel-4.15.18-16-pve: 4.15.18-41
ceph: 12.2.13-pve1~bpo9
corosync: 2.4.4-pve1
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: 1.2-2
libjs-extjs: 6.0.1-2
libpve-access-control: 5.1-12
libpve-apiclient-perl: 2.0-5
libpve-common-perl: 5.0-56
libpve-guest-common-perl: 2.0-20
libpve-http-server-perl: 2.0-14
libpve-storage-perl: 5.0-44
libqb0: 1.0.3-1~bpo9
lvm2: 2.02.168-pve6
lxc-pve: 3.1.0-7
lxcfs: 3.0.3-pve1
novnc-pve: 1.0.0-3
proxmox-widget-toolkit: 1.0-28
pve-cluster: 5.0-38
pve-container: 2.0-41
pve-docs: 5.4-2
pve-edk2-firmware: 1.20190312-1
pve-firewall: 3.0-22
pve-firmware: 2.0-7
pve-ha-manager: 2.0-9
pve-i18n: 1.1-4
pve-libspice-server1: 0.14.1-2
pve-qemu-kvm: 3.0.1-4
pve-xtermjs: 3.12.0-1
qemu-server: 5.0-55
smartmontools: 6.5+svn4324-1
spiceterm: 3.0-5
vncterm: 1.5-3
zfsutils-linux: 0.7.13-pve1~bpo2

PCT config :

Code:
arch: amd64
cores: 2
hostname: Debian
memory: 4000
ostype: debian
rootfs: local:105/vm-105-disk-0.raw,size=438345600K
swap: 2000
unprivileged: 1

Log before any change : lxc.txt

"pct mount 105" works and /etc/debian_version was empty. So I changed it with "9.12".
Unfortunetly, "lxc-start -n 105 -F -l DEBUG" display nothing and still won't start.

Log after change : lxc2.txt

Thanks a lot for your help !
 

Attachments

hi,

did you try updating? it seems like this hasn't been updated for a while.

you can try apt update && apt full-upgrade to get the latest version of 5.x branch and see if that fixes things for you.
 
Thanks for your help !

Yes, It's already up to date.

Code:
Ign:1 http://debian.mirrors.ovh.net/debian stretch InRelease
Réception de:2 http://debian.mirrors.ovh.net/debian stretch-updates InRelease [91,0 kB]                             
Atteint:3 http://security.debian.org/debian-security stretch/updates InRelease                                                                 
Réception de:4 http://debian.mirrors.ovh.net/debian stretch Release [118 kB]                                             
Atteint:5 https://enterprise.proxmox.com/debian/pve stretch InRelease                                                    
Atteint:7 http://download.proxmox.com/debian/ceph-luminous stretch InRelease           
Atteint:8 http://download.proxmox.com/debian stretch InRelease 
209 ko réceptionnés en 1s (176 ko/s)                           
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
All packages are up to date.
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Calcul de la mise à jour... Fait
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
 
how did you do the storage resize?

rootfs: local:105/vm-105-disk-0.raw,size=438345600K looks weird. how much increase did you do?
 
can you check the actual size of the raw disk? it should be in /var/lib/vz/ somewhere (since local is the selected storage)

du -b filename
 
Code:
root@nsxxx:/var/lib/vz/images/105# du -b vm-105-disk-0.raw
448865894400    vm-105-disk-0.raw
 
it looks like the real size of the file doesn't match with the config. maybe try editing the config manually and copy paste the size (with K at the end)
 
Code:
arch: amd64
cores: 2
hostname: Debian
memory: 4000
ostype: debian
rootfs: local:105/vm-105-disk-0.raw,size=448865894400K
swap: 2000
unprivileged: 1


he doesn't want to start


PS:
I have data on it, but when I use "pct mount 105" some of them no longer appear. Any idea to recover them? Are they deleted?
Otherwise, no problem, I have a fairly recent backup (few missing files).
 

Attachments

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!