[SOLVED] Debian 10 container disks disappear

tayra

Active Member
Sep 25, 2017
11
0
41
52
Hello!
I use proxmox 6.2
Debian 10 containers not loading with error:

Code:
run_buffer: 323 Script exited with status 32
lxc_init: 797 Failed to run lxc.hook.pre-start for container "219"
__lxc_start: 1896 Failed to initialize container "219"
TASK ERROR: startup for container '219' failed

The disk with the container number disappears in the /dev/Data directory. The LVM section is there, and it hasn't gone anywhere. How to return the container disk to the directory /dev/Data? Why does it disappear from it?
 
pct config:
Code:
arch: amd64
cores: 2
hostname: mail
memory: 2048
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.2.60,hwaddr=16:08:25:B6:DC:80,ip=192
.168.2.195/20,type=veth
ostype: debian
parent: q3
rootfs: VMdata2:vm-216-disk-0,size=50G
swap: 2048
unprivileged: 1

boot log:
Code:
lxc-start 216 20201102123758.685 INFO     confile - confile.c:set_config_idmaps:2055 - Read uid map: type u nsid 0 hostid 100000 range 65536
lxc-start 216 20201102123758.685 INFO     confile - confile.c:set_config_idmaps:2055 - Read uid map: type g nsid 0 hostid 100000 range 65536
lxc-start 216 20201102123758.685 INFO     lsm - lsm/lsm.c:lsm_init:29 - LSM security driver AppArmor
lxc-start 216 20201102123758.685 INFO     conf - conf.c:run_script_argv:340 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "216", config section "lxc"
lxc-start 216 20201102123759.135 DEBUG    conf - conf.c:run_buffer:312 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 216 lxc pre-start produced output: mount: /var/lib/lxc/.pve-staged-mounts/rootfs: special device /dev/Data/vm-216-disk-0 does not exist.

lxc-start 216 20201102123759.135 DEBUG    conf - conf.c:run_buffer:312 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 216 lxc pre-start produced output: command 'mount /dev/Data/vm-216-disk-0 /var/lib/lxc/.pve-staged-mounts/rootfs' failed: exit code 32

lxc-start 216 20201102123759.144 ERROR    conf - conf.c:run_buffer:323 - Script exited with status 32
lxc-start 216 20201102123759.144 ERROR    start - start.c:lxc_init:797 - Failed to run lxc.hook.pre-start for container "216"
lxc-start 216 20201102123759.144 ERROR    start - start.c:__lxc_start:1896 - Failed to initialize container "216"
lxc-start 216 20201102123759.144 INFO     conf - conf.c:run_script_argv:340 - Executing script "/usr/share/lxc/hooks/lxc-pve-poststop-hook" for container "216", config section "lxc"
lxc-start 216 20201102123759.549 DEBUG    conf - conf.c:run_buffer:312 - Script exec /usr/share/lxc/hooks/lxc-pve-poststop-hook 216 lxc post-stop produced output: umount: /var/lib/lxc/216/rootfs: not mounted

lxc-start 216 20201102123759.549 DEBUG    conf - conf.c:run_buffer:312 - Script exec /usr/share/lxc/hooks/lxc-pve-poststop-hook 216 lxc post-stop produced output: command 'um/tmp/lxc-216.log
 
what is the /dev/Data directory?

could you post cat /etc/pve/storage.cfg output as well?
 
>what is the /dev/Data directory?
It's default proxmox directory, I do not know, what is this

this is /etc/pve/storage.cfg:

Code:
lvmthin: VMdata
        thinpool VMData
        vgname vd-data
        content rootdir,images

nfs: NAS4
        export /mnt/btrfs/VMBackup
        path /mnt/pve/NAS4
        server 192.168.2.53
        content backup,images,vztmpl,rootdir,iso
        maxfiles 4
        options vers=3

lvmthin: VMdata2
        thinpool VMdata
        vgname Data
        content images,rootdir
mthin: VMdata dir: local thinpool VMData path /var/lib/vz vgname vd-data
        content vztmpl,snippets,iso,rootdir,images content rootdir,images
        maxfiles 0

nfs: NAS4 export /mnt/btrfs/VMBackup path /mnt/pve/NAS4 server 192.168.2.53
        content backup,images,vztmpl,rootdir,iso maxfiles 4 options vers=3
lvmthin: VMdata2 thinpool VMdata vgname Data content images,rootdir dir: local
        path /var/lib/vz content vztmpl,snippets,iso,rootdir,images
        maxfilqx
 
Last edited:
It's default proxmox directory, I do not know, what is this
it's definitely not default, you can see it in your config :)

but the formatting looks off. does it really say mthin in your config? please paste it correctly here
 
did you fix your config? was the problem solved?
 
great, please mark the thread as [SOLVED] by editing the thread prefix so others who do the same can know :)