Container can't start

guo9310

Active Member
Jun 5, 2017
4
1
43
50
The container 101 can't start after physical server reboot, and can't find the disk too.
But "lvs" show the volumn "vm-101-disk-1".
How can i fix this? Thanks!

root@stg-pve08:~# lxc-start -n 101 -F
mount: special device /dev/pve/vm-101-disk-1 does not exist
command 'mount /dev/pve/vm-101-disk-1 /var/lib/lxc/101/rootfs//' failed: exit code 32
lxc-start: conf.c: run_buffer: 405 Script exited with status 32.
lxc-start: start.c: lxc_init: 450 Failed to run lxc.hook.pre-start for container "101".
lxc-start: start.c: __lxc_start: 1321 Failed to initialize container "101".
lxc-start: tools/lxc_start.c: main: 366 The container failed to start.
lxc-start: tools/lxc_start.c: main: 370 Additional information can be obtained by setting the --logfile and --logpriority options.

root@stg-pve08:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-aotzM- 1.18t 13.78 99.96
root pve -wi-ao---- 34.00g
swap pve -wi-ao---- 8.00g
vm-101-disk-1 pve Vwi-i-tz-- 1.00t data 100.00 100.00
 
Is the path aviable /dev/pve/vm-101-disk-1 ?
Did you tried to read the disk with e.g. fdisk?

Code:
fdisk -l /dev/pve/vm-101-disk-1

And what says

Code:
lvdisplay pve

I have to admit that i've never used virtual volumes.