Backup KVM neue Version: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „=Vorrausetzungen= Mindestens libvirt-7.2.0 und QEMU-4.2 oder höher werden benötigt =Start der VM= *virsh start vm1 Domain 'vm1' started =Welche Platte wird…“)
 
Zeile 17: Zeile 17:
 
*virsh domjobinfo vm1
 
*virsh domjobinfo vm1
 
  Job type:        None
 
  Job type:        None
=Check the completed job status:
+
=Check ob der Backstatus komplett ist=
 
*virsh domjobinfo vm1 --completed
 
*virsh domjobinfo vm1 --completed
 
  Job type:        Completed
 
  Job type:        Completed
Zeile 25: Zeile 25:
 
  File remaining:  0.000 B
 
  File remaining:  0.000 B
 
  File total:      39.250 MiB
 
  File total:      39.250 MiB
 +
 
=Nun sehen wir eine Copy des Backups=
 
=Nun sehen wir eine Copy des Backups=
 
*ls -lash /var/lib/libvirt/images/vm1.qcow2*
 
*ls -lash /var/lib/libvirt/images/vm1.qcow2*

Version vom 23. Juni 2021, 21:07 Uhr

Vorrausetzungen

Mindestens libvirt-7.2.0 und QEMU-4.2 oder höher werden benötigt

Start der VM

  • virsh start vm1
Domain 'vm1' started

Welche Platte wird genutzt

  • virsh domblklist vm1
 Target   Source
--------------------------------------
 vda      /var/lib/libvirt/images/vm1.qcow2

Start des Backups

  • virsh backup-begin vm1
Backup started

Checken wie weit das Backup ist

  • virsh domjobinfo vm1
Job type:         None

Check ob der Backstatus komplett ist

  • virsh domjobinfo vm1 --completed
Job type:         Completed
Operation:        Backup
Time elapsed:     183          ms
File processed:   39.250 MiB
File remaining:   0.000 B
File total:       39.250 MiB

Nun sehen wir eine Copy des Backups

  • ls -lash /var/lib/libvirt/images/vm1.qcow2*
15M -rw-r--r--. 1 qemu qemu 15M May 10 12:22 vm1.qcow2
21M -rw-------. 1 root root 21M May 10 12:23 vm1.qcow2.1620642185

links

https://libvirt.org/kbase/live_full_disk_backup.html