One of my container(LXC) was failed to start.
Error :
Job for pve-container@114.service failed because the control process exited with error code.
See “systemctl status pve-container@114.service” and “journalctl -xe” for details.
TASK ERROR: command ‘systemctl start pve-container@114’ failed: exit code 1
From the debug :
lxc-start 114 20181126024829.995 DEBUG lxc_conf – conf.c:run_buffer:338 – Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 114 lxc pre-start with output: mount: /dev/loop0: can’t read superblock
This container used external drive as root disk. There were power issues on the storage itself and make the file system corrupted.
To solved this problem i have run :
e2fsck -fyv /mnt/pve/{my-drive-name}/images/114/vm-114-disk-1.raw
Journal checksum error found in /mnt/pve/{my-drive-name}/images/114/vm-114-disk-1.raw Clearing orphaned inode 3408262 (uid=999, gid=997, mode=0100600, size=0) Clearing orphaned inode 3408261 (uid=999, gid=997, mode=0100600, size=0) Clearing orphaned inode 3408260 (uid=999, gid=997, mode=0100600, size=0) Clearing orphaned inode 3408259 (uid=999, gid=997, mode=0100600, size=0) Clearing orphaned inode 3408258 (uid=999, gid=997, mode=0100600, size=0) Clearing orphaned inode 23 (uid=0, gid=0, mode=0100600, size=0) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information Free blocks count wrong (37869497, counted=35491075). Fix? yes Free inodes count wrong (9783079, counted=9739158). Fix? yes /mnt/pve/{my-drive-name}/images/114/vm-114-disk-1.raw: ***** FILE SYSTEM WAS MODIFIED ***** 91242 inodes used (0.93%, out of 9830400) 601 non-contiguous files (0.7%) 47 non-contiguous directories (0.1%) # of inodes with ind/dind/tind blocks: 0/0/0 Extent depth histogram: 90292/26 3830525 blocks used (9.74%, out of 39321600) 0 bad blocks 1 large file 81390 regular files 8925 directories 0 character device files 0 block device files 2 fifos 5219 links 882 symbolic links (880 fast symbolic links) 34 sockets ------------ 96452 files