Source: KVM QEMU Problembehebung

From SEPsesam
Revision as of 13:38, 30 March 2022 by Sta (talk | contribs) (Created page with "<noinclude><languages />{{Copyright SEP AG|de}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Other languages:

Copyright © SEP AG 1999-2024. Alle Rechte vorbehalten.

Jede Form der Reproduktion der Inhalte dieses Benutzerhandbuches, ganz oder in Teilen, ist nur mit der ausdrücklichen schriftlichen Erlaubnis der SEP AG gestattet. Bei der Erstellung dieses Benutzerhandbuches wurde mit größtmöglicher Sorgfalt gearbeitet, um korrekte und fehlerfreie Informationen bereit stellen zu können. Trotzdem kann die SEP AG keine Gewähr für die Richtigkeit der Inhalte dieses Benutzerhandbuches übernehmen.

Docs latest icon.png Willkommen in der aktuellsten Version der SEP sesam Dokumentation 4.4.3 Beefalo/5.0.0 Jaglion. Frühere Versionen der Dokumentation finden Sie hier: documentation archive.


KVM/QEMU

Merging and deleting leftover snapshots

Problem

  • The backup fails and the snapshot is left behind.

Solution

Use the graphical virt-manager tool to delete the snapshot or virsh, as shown in the example:

  1. List the available snapshots for the domain:
  2. user@hypervisor:~$ virsh snapshot-list <domain_name> Name Creation Time State ------------------------------------------------------------ Sesam_SF20173828282@XXXX 2017-07-06 08:15:11 +0200 disk-snapshot In this example, one leftover snapshot for this VM exists.
  3. List the virtual disks for the domain:
  4. user@hypervisor:~$ virsh domblklist <domain_name> Target Source ------------------------------------------------ sda /path/to//Sesam_SF20173828282@XXXX.snapshot
  5. For each device that refers to SEP sesam snapshot, start a block commit to merge the snapshot:
  6. user@hypervisor:~$ virsh blockcommit <domain_name> sda --active --verbose --pivot Block Commit: [100 %] Successfully pivoted
  7. Confirm that the device is now switched to the original disk device:
  8. user@hypervisor:~$ virsh domblklist <domain_name> Target Source ------------------------------------------------ sda /my/original/base.img
  9. Delete the snapshot metadata information:
  10. user@hypervisor:~$ virsh snapshot-delete <domain_name> --metadata --snapshotname Sesam_SF20173828282@XXXX Domain snapshot sesam_snapshot deleted
  11. Delete the snapshot file:
  12. user@hypervisor:~$ rm /path/to//Sesam_SF20173828282@XXXX.snapshot

See also

Analyzing SEP sesam Log FilesKVM/QEMU