Source:Troubleshooting KVM QEMU

From SEPsesam
Revision as of 13:39, 30 March 2022 by Unknown (talk | contribs) (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Other languages:

Template:Copyright SEP AG en

Docs latest icon.png Welcome to the latest SEP sesam documentation version 4.4.3 Beefalo/5.0.0 Jaglion. For previous documentation version(s), check 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