LXC mp0 data loss after Backup/Restore

ShaMAD

New Member
Feb 24, 2025
3
0
1
I have an LXC container to which an mp0 ZFS volume with information is mounted, but it is excluded from the backup because it's very big.

After creating a full backup of LXC and restoring from it, the data on the CT volume (subvol-103-disk-2) began to be deleted and was completely deleted :eek:

I'm shocked, is it possible to reverse this process?
2025-02-26_16-10-12.png


Backup Log Feb 26 14:17:15:
Code:
INFO: starting new backup job: vzdump 103 --notification-mode auto --node NB6-S1 --compress zstd --notes-template '{{guestname}}' --storage hdd_pool_backup --remove 0 --mode stop
INFO: filesystem type on dumpdir is 'zfs' -using /var/tmp/vzdumptmp46919_103 for temporary files
INFO: Starting Backup of VM 103 (lxc)
INFO: Backup started at 2025-02-26 14:17:15
INFO: status = running
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: CT Name: NB6-Docker
INFO: including mount point rootfs ('/') in backup
INFO: excluding volume mount point mp0 ('/media/zfs') from backup (disabled)
INFO: excluding bind mount point mp1 ('/media/HIK/') from backup (not a volume)
INFO: stopping virtual guest
INFO: creating vzdump archive '/mnt/hdd_pool_backups/dump/vzdump-lxc-103-2025_02_26-14_17_15.tar.zst'
INFO: Total bytes written: 2228807680 (2.1GiB, 140MiB/s)
INFO: archive file size: 816MB
INFO: adding notes to backup
INFO: restarting vm
INFO: guest is online again after 29 seconds
INFO: Finished Backup of VM 103 (00:00:29)
INFO: Backup finished at 2025-02-26 14:17:44
INFO: Backup job finished successfully
TASK OK

Restore Log Feb 26 14:29:38:
Code:
recovering backed-up configuration from 'hdd_pool_backup:backup/vzdump-lxc-103-2025_02_26-14_17_15.tar.zst'
restoring 'hdd_pool_backup:backup/vzdump-lxc-103-2025_02_26-14_17_15.tar.zst' now..
extracting archive '/mnt/hdd_pool_backups/dump/vzdump-lxc-103-2025_02_26-14_17_15.tar.zst'
Total bytes read: 2228807680 (2.1GiB, 123MiB/s)
merging backed-up and given configuration..
TASK OK

2025-02-26_16-44-32.png
2025-02-26_16-44-40.png
 
Last edited:
Hi @ShaMAD , welcome to the forum.

Unfourtunately, you are not the first one to be in this situation:
https://bugzilla.proxmox.com/show_bug.cgi?id=3783


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
:eek:
I agree, it's not terrible to lose movies, but I've lost more valuable information, and it's terrible.
 
I found out late that to prevent this behavior during recovery, it was necessary to create a mounpoint for the ZFS Pool.
zfs set mountpoint=/media/zfs_R1/Media R1/Media
and link it as a directory...
{ echo 'mp1: /media/zfs_R1/Media,mp=/media/zfs' ; } | tee -a /etc/pve/lxc/103.conf
And the deletion would not have happened...
 
Last edited: