Backup job for LXC failed, LXC will not boot now, looking to restore

mikeo_43015

New Member
Jan 5, 2022
5
0
1
52
Looking to restore this LXC.

Version 6.4-13

backup job for LXC failed config file deleted after the BU failed but is still showing in the GUI as Container 104 (SMB) on node 'Vader' (snapshot-delete) "see attachment"

Showing that the container is locked and tried to start the container and it came back with status output:
TASK ERROR: CT is locked (snapshot-delete)

Tried to unlock to CT
root@Vader:/etc/pve/lxc# qm unlock 104
Configuration file 'nodes/Vader/qemu-server/104.conf' does not exist


Checked in /etc/pve/lxc and see the 104.conf file
root@Vader:/etc/pve/lxc# ls -al
total 2
drwxr-xr-x 2 root www-data 0 Apr 4 2021 .
drwxr-xr-x 2 root www-data 0 Apr 4 2021 ..
-rw-r----- 1 root www-data 229 Jan 4 19:19 101.conf
-rw-r----- 1 root www-data 530 Jan 4 19:19 102.conf
-rw-r----- 1 root www-data 568 Jan 4 18:32 104.conf
-rw-r----- 1 root www-data 222 Dec 19 19:50 105.conf


Checked in /etc/pve/qemu-server and the 104.conf file is missing
root@Vader:/etc/pve/qemu-server# ls -al
total 3
drwxr-xr-x 2 root www-data 0 Apr 4 2021 .
drwxr-xr-x 2 root www-data 0 Apr 4 2021 ..
-rw-r----- 1 root www-data 1184 Jan 4 19:19 100.conf
-rw-r----- 1 root www-data 475 Dec 26 22:22 103.conf
-rw-r----- 1 root www-data 423 Jan 4 18:32 106.conf
-rw-r----- 1 root www-data 357 Dec 26 22:09 107.conf
-rw-r----- 1 root www-data 369 Dec 26 22:19 108.conf



checked in the /var/lib/vz/dump/ and the vzdump-lxc for 104 is not there.


Any suggestions would help!

Thanks
 

Attachments

  • PVE.JPG
    PVE.JPG
    46 KB · Views: 2
  • vzdump backup snapshot.JPG
    vzdump backup snapshot.JPG
    36.7 KB · Views: 2
The backup log for 104
INFO: Starting Backup of VM 104 (lxc)
INFO: Backup started at 2022-01-04 18:06:44
INFO: status = running
INFO: CT Name: SMB
INFO: including mount point rootfs ('/') in backup
INFO: found old vzdump snapshot (force removal)
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: create storage snapshot 'vzdump'
INFO: creating vzdump archive '/var/lib/vz/dump/vzdump-lxc-104-2022_01_04-18_06_44.tar.zst'
INFO: cleanup temporary 'vzdump' snapshot
zfs error: cannot destroy snapshot NAS-Local/subvol-104-disk-0@vzdump: dataset is busy
ERROR: Backup of VM 104 failed - command 'set -o pipefail && lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- tar cpf - --totals --one-file-system -p --sparse --numeric-owner --acls --xattrs '--xattrs-include=user.*' '--xattrs-include=security.capability' '--warning=no-file-ignored' '--warning=no-xattr-write' --one-file-system '--warning=no-file-ignored' '--directory=/var/tmp/vzdumptmp28838_104' ./etc/vzdump/pct.conf ./etc/vzdump/pct.fw '--directory=/mnt/vzsnap0' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' ./ | zstd --rsyncable '--threads=1' >/var/lib/vz/dump/vzdump-lxc-104-2022_01_04-18_06_44.tar.dat' failed: interrupted by signal
INFO: Failed at 2022-01-04 18:32:21
 
The good news after some digging I have found all of my data located in /NAS-Local/subvol-104-disk-0/ dir. Just looking for info on how to restore the LXC so it can boot.

Thanks in advance,
-n00b