-
Notifications
You must be signed in to change notification settings - Fork 54
Wrong FS type #14
Comments
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/, ayufan@ayufan.eu
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. |
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. |
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. |
Do you have a fix ? |
I don't think that this is bug of |
My bad. I think I found the problem, I sheduled a backup for this night. I'll be back to you tomorrow. |
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 |
Hi,
Not sure why but my 1st backup after applying the patch failed.
The text was updated successfully, but these errors were encountered: