Giter Site home page Giter Site logo

Wrong FS type about pve-patches HOT 7 CLOSED

ayufan avatar ayufan commented on August 28, 2024
Wrong FS type

from pve-patches.

Comments (7)

kevin39 avatar kevin39 commented on August 28, 2024 1

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.

ayufan avatar ayufan commented on August 28, 2024

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.

ayufan avatar ayufan commented on August 28, 2024

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.

kevin39 avatar kevin39 commented on August 28, 2024

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.

kevin39 avatar kevin39 commented on August 28, 2024

Do you have a fix ?

from pve-patches.

ayufan avatar ayufan commented on August 28, 2024

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.

kevin39 avatar kevin39 commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.