Tâche #31683
Scénario #31591: Sauvegarde/restauration des Images et VM Hapy 2.8.0+
Créer le script de restauration
0%
Révisions associées
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.
Historique
#1 Mis à jour par Philippe Caseiro il y a environ 3 ans
- Statut changé de Nouveau à En cours
#2 Mis à jour par Philippe Caseiro il y a environ 3 ans
- Statut changé de En cours à Résolu
#3 Mis à jour par Daniel Dehennin il y a environ 3 ans
- Statut changé de Résolu à 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 Mis à jour par Daniel Dehennin il y a environ 3 ans
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 Mis à jour par Philippe Caseiro il y a presque 3 ans
- Statut changé de En cours à Résolu
#6 Mis à jour par Gilles Grandgérard il y a presque 3 ans
- Statut changé de Résolu à Fermé
- Restant à faire (heures) mis à 0.0