Comments (7)
Sorry, it was my fault. I've a corrupted image and by mistake I used this one to try the diff-backup. I tried on another LXC container and it works fine :)
Thank you
from pve-patches.
This is strange.
I added this selftest command to ensure that this does work properly. This is what I receive:
./pve-5.3-9-diff-backup-addon selftest-lxc
Proxmox VE 5.3-9 - differential backup support, v3
Kamil Trzcinski, http://ayufan.eu/, [email protected]
This is destructive command that requires:
- the CT501 present
- and CT511 empty
Press enter to continue, Ctrl-C to abort
Testing type=lxc vmid=501:511 ext= flags=...
$ rm -rf /var/lib/vz/dump/vzdump-lxc-501-2019_02_23-22_07_26.log /var/lib/vz/dump/vzdump-lxc-501-2019_02_23-22_07_26.tar.lzo /var/lib/vz/dump/vzdump-lxc-501-2019_02_23-22_07_26.tar.lzo--differential-2019_02_23-22_07_29.log /var/lib/vz/dump/vzdump-lxc-501-2019_02_23-22_07_26.tar.lzo--differential-2019_02_23-22_07_29.vcdiff
$ pct status 501
status: stopped
$ vzdump --fullbackup=0 501
INFO: starting new backup job: vzdump 501 --fullbackup 0
INFO: Starting Backup of VM 501 (lxc)
INFO: status = stopped
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: CT Name: lxc-diff-backup
INFO: creating archive '/var/lib/vz/dump/vzdump-lxc-501-2019_02_25-17_23_54.tar'
INFO: Total bytes written: 568750080 (543MiB, 139MiB/s)
INFO: archive file size: 542MB
INFO: Finished Backup of VM 501 (00:00:05)
INFO: Backup job finished successfully
$ vzdump --fullbackup=5 501
INFO: starting new backup job: vzdump 501 --fullbackup 5
INFO: doing differential backup against '/var/lib/vz/dump/vzdump-lxc-501-2019_02_25-17_23_54.tar'
INFO: Starting Backup of VM 501 (lxc)
INFO: status = stopped
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: CT Name: lxc-diff-backup
INFO: creating archive '/var/lib/vz/dump/vzdump-lxc-501-2019_02_25-17_23_54.tar--differential-2019_02_25-17_23_59.vcdiff'
INFO: Total bytes written: 568750080 (543MiB, 88MiB/s)
INFO: archive file size: 783KB
INFO: Finished Backup of VM 501 (00:00:06)
INFO: Backup job finished successfully
$ pct restore 511 /var/lib/vz/dump/vzdump-lxc-501-2019_02_25-17_23_54.tar --force=true
Formatting '/var/lib/vz/images/511/vm-511-disk-0.raw', fmt=raw size=1073741824
mke2fs 1.43.4 (31-Jan-2017)
Discarding device blocks: done
Creating filesystem with 262144 4k blocks and 65536 inodes
Filesystem UUID: 90b1d2cf-3254-43ac-acb7-4c0012d2326e
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Multiple mount protection is enabled with update interval 5 seconds.
Writing superblocks and filesystem accounting information: done
extracting archive '/var/lib/vz/dump/vzdump-lxc-501-2019_02_25-17_23_54.tar'
Total bytes read: 568750080 (543MiB, 294MiB/s)
Detected container architecture: amd64
$ pct restore 511 /var/lib/vz/dump/vzdump-lxc-501-2019_02_25-17_23_54.tar--differential-2019_02_25-17_23_59.vcdiff --force=true
Formatting '/var/lib/vz/images/511/vm-511-disk-1.raw', fmt=raw size=1073741824
mke2fs 1.43.4 (31-Jan-2017)
Discarding device blocks: done
Creating filesystem with 262144 4k blocks and 65536 inodes
Filesystem UUID: 774d8ee3-03b2-49e9-b6ea-367c5f5bff95
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Multiple mount protection is enabled with update interval 5 seconds.
Writing superblocks and filesystem accounting information: done
extracting from differential archive, using full backup '/var/lib/vz/dump/vzdump-lxc-501-2019_02_25-17_23_54.tar'
extracting archive '/var/lib/vz/dump/vzdump-lxc-501-2019_02_25-17_23_54.tar--differential-2019_02_25-17_23_59.vcdiff'
Total bytes read: 568750080 (543MiB, 228MiB/s)
Detected container architecture: amd64
Testing type=lxc vmid=501:511 ext= flags=--compress=lzo...
$ rm -rf /var/lib/vz/dump/vzdump-lxc-501-2019_02_25-17_23_54.log /var/lib/vz/dump/vzdump-lxc-501-2019_02_25-17_23_54.tar /var/lib/vz/dump/vzdump-lxc-501-2019_02_25-17_23_54.tar--differential-2019_02_25-17_23_59.log /var/lib/vz/dump/vzdump-lxc-501-2019_02_25-17_23_54.tar--differential-2019_02_25-17_23_59.vcdiff
$ pct status 501
status: stopped
$ vzdump --fullbackup=0 --compress=lzo 501
INFO: starting new backup job: vzdump 501 --fullbackup 0 --compress lzo
INFO: Starting Backup of VM 501 (lxc)
INFO: status = stopped
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: CT Name: lxc-diff-backup
INFO: creating archive '/var/lib/vz/dump/vzdump-lxc-501-2019_02_25-17_24_13.tar.lzo'
INFO: Total bytes written: 568750080 (543MiB, 112MiB/s)
INFO: archive file size: 265MB
INFO: Finished Backup of VM 501 (00:00:05)
INFO: Backup job finished successfully
$ vzdump --fullbackup=5 --compress=lzo 501
INFO: starting new backup job: vzdump 501 --fullbackup 5 --compress lzo
INFO: doing differential backup against '/var/lib/vz/dump/vzdump-lxc-501-2019_02_25-17_24_13.tar.lzo'
INFO: Starting Backup of VM 501 (lxc)
INFO: status = stopped
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: CT Name: lxc-diff-backup
INFO: creating archive '/var/lib/vz/dump/vzdump-lxc-501-2019_02_25-17_24_13.tar.lzo--differential-2019_02_25-17_24_19.vcdiff'
INFO: Total bytes written: 568750080 (543MiB, 85MiB/s)
INFO: archive file size: 469KB
INFO: Finished Backup of VM 501 (00:00:06)
INFO: Backup job finished successfully
$ pct restore 511 /var/lib/vz/dump/vzdump-lxc-501-2019_02_25-17_24_13.tar.lzo --force=true
Formatting '/var/lib/vz/images/511/vm-511-disk-0.raw', fmt=raw size=1073741824
mke2fs 1.43.4 (31-Jan-2017)
Discarding device blocks: done
Creating filesystem with 262144 4k blocks and 65536 inodes
Filesystem UUID: 85ca2657-4bb6-4050-9968-e19a6d366dd2
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Multiple mount protection is enabled with update interval 5 seconds.
Writing superblocks and filesystem accounting information: done
extracting archive '/var/lib/vz/dump/vzdump-lxc-501-2019_02_25-17_24_13.tar.lzo'
Total bytes read: 568750080 (543MiB, 171MiB/s)
Detected container architecture: amd64
$ pct restore 511 /var/lib/vz/dump/vzdump-lxc-501-2019_02_25-17_24_13.tar.lzo--differential-2019_02_25-17_24_19.vcdiff --force=true
Formatting '/var/lib/vz/images/511/vm-511-disk-1.raw', fmt=raw size=1073741824
mke2fs 1.43.4 (31-Jan-2017)
Discarding device blocks: done
Creating filesystem with 262144 4k blocks and 65536 inodes
Filesystem UUID: 56cf1526-cc0c-4b3f-9360-1a5660bb510e
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Multiple mount protection is enabled with update interval 5 seconds.
Writing superblocks and filesystem accounting information: done
extracting from differential archive, using full backup '/var/lib/vz/dump/vzdump-lxc-501-2019_02_25-17_24_13.tar.lzo'
extracting archive '/var/lib/vz/dump/vzdump-lxc-501-2019_02_25-17_24_13.tar.lzo--differential-2019_02_25-17_24_19.vcdiff'
Total bytes read: 568750080 (543MiB, 160MiB/s)
Detected container architecture: amd64
It seems to succeed.
from pve-patches.
Are you sure that this works before applying patches, as it seems to me that the layout of disks slightly different, thus why it fails.
from pve-patches.
No. Sorry maybe it wasn't clear.
It's the first time I'm using your patch. My server are still runing 4.4 (the patch has been applied without any error). When the backup occurs yesterday, it shown my this error.
from pve-patches.
Do you have a fix ?
from pve-patches.
I don't think that this is bug of pve-diff-backup
. Did you try if you can backup and restore without patches applied?
from pve-patches.
My bad. I think I found the problem, I sheduled a backup for this night. I'll be back to you tomorrow.
from pve-patches.
Related Issues (20)
- Installed On PVE But Not Showing "Full Backup Every" HOT 2
- 6.1-8 patch fails to apply HOT 4
- No changes in GUI pve 6.1-3 HOT 1
- Patch script for 6.1-8 does not work on 6.1-8 HOT 1
- no changes to the webgui HOT 1
- issue day out of range? HOT 1
- Extreme long time issue? HOT 3
- fullbackup property not defined HOT 2
- Full backup every X don't work HOT 4
- No access web GUI since apply patch 6.1-8 (to) 6.1-11 HOT 6
- Not working anymore? HOT 8
- Exclude disk from VM backup HOT 1
- Zstd differential backup on 6.2-4 HOT 1
- Error pve-6.2-4-diff-backup-addon HOT 1
- Installation error for Proxmox 6.2 on Debian Core HOT 1
- Proxmox upgrade without revert/uninstall patch HOT 1
- Proxmox 6.2-9 - patch set does not apply anymore HOT 5
- New Backup Features do not show up HOT 1
- Version 6.2.4 dosn`t work on 6.2.11. What can i do with it ? HOT 4
- version 6.3 compatible? HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pve-patches.