Hi
I just transfered my .raw disk of my container to my new server on a ZFSpool and I cannot start the container, here is the output:
lxc conf on new server :
lxc conf from old server server :
Any help appreciated
edit:
when I run a pct fsck 108
He is trying to check in `/dev/zvol/ZFSpool/` but there is no folder here, the ZFSpool folder is mounted on `/ZFSpool` and not `/dev/zvol/ZFSpool/ `
Edit 2:
I created the folder zvol in /dev and then created a symblink :
tried to launch the container again and got new error log :
I just transfered my .raw disk of my container to my new server on a ZFSpool and I cannot start the container, here is the output:
Code:
lxc-start 108 20210523134118.336 INFO lsm - lsm/lsm.c:lsm_init:40 - Initialized LSM security driver AppArmor
lxc-start 108 20210523134118.336 INFO conf - conf.c:run_script_argv:331 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "108", config section "lxc"
lxc-start 108 20210523134118.678 DEBUG conf - conf.c:run_buffer:303 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 108 lxc pre-start produced output: failed to get device path
lxc-start 108 20210523134118.685 ERROR conf - conf.c:run_buffer:314 - Script exited with status 2
lxc-start 108 20210523134118.685 ERROR start - start.c:lxc_init:798 - Failed to run lxc.hook.pre-start for container "108"
lxc-start 108 20210523134118.685 ERROR start - start.c:__lxc_start:1945 - Failed to initialize container "108"
lxc-start 108 20210523134118.685 INFO conf - conf.c:run_script_argv:331 - Executing script "/usr/share/lxc/hooks/lxc-pve-poststop-hook" for container "108", config section "lxc"
lxc-start 108 20210523134118.985 DEBUG conf - conf.c:run_buffer:303 - Script exec /usr/share/lxc/hooks/lxc-pve-poststop-hook 108 lxc post-stop produced output: umount: /var/lib/lxc/108/rootfs: not mounted
lxc-start 108 20210523134118.985 DEBUG conf - conf.c:run_buffer:303 - Script exec /usr/share/lxc/hooks/lxc-pve-poststop-hook 108 lxc post-stop produced output: command 'umount --recursive -- /var/lib/lxc/108/rootfs' failed: exit code 1
lxc-start 108 20210523134118.991 ERROR conf - conf.c:run_buffer:314 - Script exited with status 1
lxc-start 108 20210523134118.991 ERROR start - start.c:lxc_end:958 - Failed to run lxc.hook.post-stop for container "108"
lxc-start 108 20210523134118.991 ERROR lxc_start - tools/lxc_start.c:main:308 - The container failed to start
lxc-start 108 20210523134118.991 ERROR lxc_start - tools/lxc_start.c:main:314 - Additional information can be obtained by setting the --logfile and --logpriority options
lxc conf on new server :
Code:
arch: amd64
cores: 7
features: nesting=1
hostname: SbLXC
memory: 24064
mp1: ZFSpool:vm-108-disk-2.raw,mp=/media/disk2,size=5500G
net0: name=eth0,bridge=vmbr1,firewall=1,gw=10.0.0.1,hwaddr=DA:DF:67:5F:CB:86,ip=10.0.0.8/24,type=veth
onboot: 1
ostype: debian
rootfs: ZFSpool:vm-108-disk-0.raw,size=16360G
swap: 24064
lxc conf from old server server :
Code:
arch: amd64
cores: 7
features: nesting=1
hostname: SbLXC
memory: 24064
mp1: local:108/vm-108-disk-2.raw,mp=/media/disk2,size=5500G
net0: name=eth0,bridge=vmbr0,gw=10.0.0.1,hwaddr=6E:83:C1:EC:1A:F9,ip=10.0.0.8/24,type=veth
onboot: 0
ostype: debian
rootfs: local:108/vm-108-disk-0.raw,size=16360G
swap: 24064
Any help appreciated
edit:
when I run a pct fsck 108
Code:
fsck from util-linux 2.33.1
Possibly non-existent device?
fsck.ext2: No such file or directory while trying to open /dev/zvol/ZFSpool/vm-108-disk-0.raw
command 'fsck -a -l /dev/zvol/ZFSpool/vm-108-disk-0.raw' failed: exit code 8
He is trying to check in `/dev/zvol/ZFSpool/` but there is no folder here, the ZFSpool folder is mounted on `/ZFSpool` and not `/dev/zvol/ZFSpool/ `
Edit 2:
I created the folder zvol in /dev and then created a symblink :
Code:
ln -s /ZFSpool/ /dev/zvol/ZFSpool
tried to launch the container again and got new error log :
Code:
lxc-start 108 20210523140356.628 INFO lsm - lsm/lsm.c:lsm_init:40 - Initialized LSM security driver AppArmor
lxc-start 108 20210523140356.628 INFO conf - conf.c:run_script_argv:331 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "108", config section "lxc"
lxc-start 108 20210523140356.950 DEBUG conf - conf.c:run_buffer:303 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 108 lxc pre-start produced output: unsupported storage type 'zfspool'
lxc-start 108 20210523140356.956 ERROR conf - conf.c:run_buffer:314 - Script exited with status 9
lxc-start 108 20210523140356.956 ERROR start - start.c:lxc_init:798 - Failed to run lxc.hook.pre-start for container "108"
lxc-start 108 20210523140356.956 ERROR start - start.c:__lxc_start:1945 - Failed to initialize container "108"
lxc-start 108 20210523140356.956 INFO conf - conf.c:run_script_argv:331 - Executing script "/usr/share/lxc/hooks/lxc-pve-poststop-hook" for container "108", config section "lxc"
lxc-start 108 20210523140357.250 DEBUG conf - conf.c:run_buffer:303 - Script exec /usr/share/lxc/hooks/lxc-pve-poststop-hook 108 lxc post-stop produced output: umount: /var/lib/lxc/108/rootfs: not mounted
lxc-start 108 20210523140357.250 DEBUG conf - conf.c:run_buffer:303 - Script exec /usr/share/lxc/hooks/lxc-pve-poststop-hook 108 lxc post-stop produced output: command 'umount --recursive -- /var/lib/lxc/108/rootfs' failed: exit code 1
lxc-start 108 20210523140357.256 ERROR conf - conf.c:run_buffer:314 - Script exited with status 1
lxc-start 108 20210523140357.256 ERROR start - start.c:lxc_end:958 - Failed to run lxc.hook.post-stop for container "108"
lxc-start 108 20210523140357.256 ERROR lxc_start - tools/lxc_start.c:main:308 - The container failed to start
lxc-start 108 20210523140357.256 ERROR lxc_start - tools/lxc_start.c:main:314 - Additional information can be obtained by setting the --logfile and --logpriority options
Last edited: