解决pve 启动失败lxc_init: 846 Failed to run lxc.hook.pre-start for container "118"

Published on Aug. 22, 2023, 12:14 p.m.

root@pve:~# pct start 118
run_buffer: 321 Script exited with status 32
lxc_init: 846 Failed to run lxc.hook.pre-start for container “118”
__lxc_start: 2002 Failed to initialize container “118”
startup for container ‘118’ failed
root@pve:~# pct rescan
rescan volumes…
CT 118: add unreferenced volume ‘raid1drive:subvol-118-disk-1’ as ‘unused0’ to config.
Use of uninitialized value in hash element at /usr/share/perl5/PVE/LXC.pm line 2094.
CT 107: updated volume size of ‘local-lvm:base-107-disk-0’ in config.
Use of uninitialized value in hash element at /usr/share/perl5/PVE/LXC.pm line 2094.
Use of uninitialized value in hash element at /usr/share/perl5/PVE/LXC.pm line 2094.
CT 110: updated volume size of ‘data:110/vm-110-disk-0.raw’ in config.
root@pve:~# pct rescan
rescan volumes…
Use of uninitialized value in hash element at /usr/share/perl5/PVE/LXC.pm line 2094.
Use of uninitialized value in hash element at /usr/share/perl5/PVE/LXC.pm line 2094.
Use of uninitialized value in hash element at /usr/share/perl5/PVE/LXC.pm line 2094.
root@pve:~# pct start 118
run_buffer: 321 Script exited with status 32
lxc_init: 846 Failed to run lxc.hook.pre-start for container “118”
__lxc_start: 2002 Failed to initialize container “118”
startup for container ‘118’ failed
root@pve:~# pct df 118
mount: /var/lib/lxc/118/rootfs: wrong fs type, bad option, bad superblock on /dev/mapper/pve-vm–118–disk–0, missing codepage or helper program, or other error.
mounting container failed
command ‘mount /dev/dm-6 /var/lib/lxc/118/rootfs//’ failed: exit code 32
root@pve:~# fsck /dev/mapper/pve-vm–118–disk–0
fsck from util-linux 2.36.1
e2fsck 1.46.2 (28-Feb-2021)
fsck.ext4: MMP: e2fsck being run while checking MMP block
MMP check failed: If you are sure the filesystem is not in use on any node, run:
‘tune2fs -f -E clear_mmp /dev/mapper/pve-vm–118–disk–0’
MMP_block:
mmp_magic: 0x4d4d50
mmp_check_interval: 5
mmp_sequence: e24d4d50
mmp_update_date: Tue Mar 21 20:24:12 2023
mmp_update_time: 1679401452
mmp_node_name: pve
mmp_device_name: /dev/pve/vm-118-disk-0

/dev/mapper/pve-vm–118–disk–0: *** WARNING: Filesystem still has errors ***

root@pve:~# fsck.ext4 -v /dev/mapper/pve-vm–118–disk–0
e2fsck 1.46.2 (28-Feb-2021)
fsck.ext4: MMP: e2fsck being run while checking MMP block
MMP check failed: If you are sure the filesystem is not in use on any node, run:
‘tune2fs -f -E clear_mmp /dev/mapper/pve-vm–118–disk–0’
MMP_block:
mmp_magic: 0x4d4d50
mmp_check_interval: 5
mmp_sequence: e24d4d50
mmp_update_date: Tue Mar 21 20:24:12 2023
mmp_update_time: 1679401452
mmp_node_name: pve
mmp_device_name: /dev/pve/vm-118-disk-0

/dev/mapper/pve-vm–118–disk–0: *** WARNING: Filesystem still has errors ***

root@pve:~# tune2fs -f -E clear_mmp /dev/mapper/pve-vm–118–disk–0
tune2fs 1.46.2 (28-Feb-2021)

Tags:

related content