Tâche #31683
Scénario #31591: Sauvegarde/restauration des Images et VM Hapy 2.8.0+
Créer le script de restauration
0%
Associated revisions
Adding restoration script
ref #31683
How it works :
The restoration script will restore any virtual machine by ID with the
option "-m". If you want to restore multiple virtual machines you can
pass a list coma separated like "-m 23,26,89".
First the script will poweroff the VirtualMachine, then recover files
from BACKUP_DIR/one into the write place in /var/lib/one according to
the BACKUP_DIR/one tree.
Then it will resume the virtual machine and move to the next.
Be aware the script will not restore unused images of non persistent
images, to do so for now you will have to do it manualy, finding the
write file name with oneimage show command and searchinf for it in the
BACKUP_DIR.
If you have totaly lost the /var/lib/one/datastores, you can simply copy
BACKUP_DIR/one/datastores/* into the /var/lib/one/datastores directory.
if you database backup is write, everything should start again.
History
#1 Updated by Philippe Caseiro over 2 years ago
- Status changed from Nouveau to En cours
#2 Updated by Philippe Caseiro over 2 years ago
- Status changed from En cours to Résolu
#3 Updated by Daniel Dehennin over 2 years ago
- Status changed from Résolu to En cours
J’ai une erreur sur grichka
root@grichka:~# time onerst Restoring vm 8 from /mnt/sauvegardes/one/datastores/100/8 ERROR on /mnt/sauvegardes/one/datastores/101/ce93f817cbbacfb33901156a39ea2fbd recovery from VM 8 Restoring vm 9 from /mnt/sauvegardes/one/datastores/100/9 real 29m12,782s user 6m56,977s sys 4m31,546s
C’est possible d’avoir un peu plus de log ?
#4 Updated by Daniel Dehennin over 2 years ago
Ma machine Amon est cassée :
- J’ai dû faire des
fsck
à la main - Une fois tous les systèmes de fichiers réparés, j’ai des fichiers de bibliothèque corrompu ce qui, par exemple, empêche le réseau de démarrer
/lib/netplan/generate: error while loading shared libraries: /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0: invalid ELF header
#5 Updated by Philippe Caseiro over 2 years ago
- Status changed from En cours to Résolu
#6 Updated by Gilles Grandgérard about 2 years ago
- Status changed from Résolu to Fermé
- Remaining (hours) set to 0.0