Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
slapos slapos
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 122
    • Merge requests 122
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • slaposslapos
  • Merge requests
  • !1545

Merged
Created Mar 12, 2024 by Łukasz Nowak@lukeMaintainer5 of 6 tasks completed5/6 tasks

Feature/kvm incremental backup

  • Overview 49
  • Commits 3
  • Changes 14

Blocker:

  • capability to have SlapOS Master capable to directly deploy this branch on nodes to being able to test them gradually in real environments
  • pick up qmpbackup >= 0.32 and adapt the system, as new important features came in
    • https://github.com/abbbi/qmpbackup/issues/17

Tasks:

  • do tests like in theia, !1545 (comment 203808)

Tools:

  • qmpbackup

Research notes (to fill):

  • install:
    • python3 -m venv qmpb
    • source qmpb/bin/activate
    • pip install https://github.com/abbbi/qmpbackup/releases/download/v0.29/qmpbackup-0.29.tar.gz
    • pip install qemu.qmp (this is a hack, maybe upstream 🐛 bugfix)
  • backup
    • qmpbackup --socket ~/var/qmp_socket backup --compress --level auto --target ~/srv/qmpbackup/ --include virtio0
    • but:
      • qmpbackup --socket ~/var/qmp_socket backup --level auto --target ~/srv/qmpbackup-another/ --include virtio0
      • results with ERROR Bitmap exists, but target directory does not contain full backup.
      • so it is required to do qmpbackup --socket ~/var/qmp_socket backup --compress --level full --target ~/srv/qmpbackup-another/ --include virtio0, then with --level auto will work
        • maybe to report to upstream 🐛 with --force option or auto-full backup style, to backoff automatically to full mode if inc fails
  • restore
    • restore=qmprestore-$(date '+%Y%m%d%H%M%S')
    • cp -a ~/srv/qmpbackup/ ~/srv/$restore
    • qmprebase rebase --dir ~/srv/$restore/virtio0
    • ls ~/srv/$restore/virtio0
      • will result with something like FULL-NNN-virtual.qcow2

Preparation:

  • prove in the test that restoration with resiliency setup really works
    • will take-over work with slapproxy? --> yes it does

Implementation:

  • use qmpbackup to do backups and support restoration on import restoration moment
Edited Nov 21, 2024 by Łukasz Nowak
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: feature/kvm-incremental-backup
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7