Panne disque dur

(EN below)

Bonjour,
Ça devait bien arriver un jour et voilà, le disque dur de mon PC/serveur Yunohost a rendu l’âme et juste avant noël !.
Oui, ok ca n’a rien à voir … mais j’avais autre chose à faire.
Bon d’un autre côte, a-t-on vraiment du temps pour s’occupe de pannes …

Je suis en train d’en faire une image du disque avec DDrescue-gui mais, il comporte de nombreux secteurs défectueux. Je sais déjà que je ne pourrais pas booter sur l’image, mais je ne suis même pas sûr que je pourrais récupérer les sauvegardes que j’avais mis en place avec archiviste.
Je faisais bien une copie du dossier de sauvegarde de temps en temps sur mon pc avec un script “rsync -avzh -e ssh …”, mais pas de manière automatique … On verra bien ce que je récupère.

J’avais peut-être aussi mis en place une sauvegarde avec Borg sur un autre serveur Yunohost, mais je ne suis pas sûr et je n’arrive pas à retrouver les infos sur l’autre serveur.

Du coup, je veux bien un coup de main et des conseils pour organiser la réinstallation et la restauration des données :sweat_smile: siouplai

Si je repars d’une nouvelle installation de yunohost, je peux restaurer :

La configuration de base de Yunohost et la messagerie avec
ynh_core_backup.tar.gz qui date du 22/12 ( hé! c’est pas si vieux ! )

Les applis et leurs données avec :
22/12 jirafeau_backup.tar.gz
22/12 nextcloud_backup.tar.gz
21/12 opensondage_backup.tar.gz
10/12 shaarli_backup.tar.gz
10/12 roundcube_backup.tar.gz
10/12 kanboard_backup.tar.gz
10/12 baikal_backup.tar.gz
10/12 agendav_backup.tar.gz
22/09 archivist_backup.tar.gz
22/09 borgserver_backup.tar.gz
24/05 shellinabox_backup.tar.gz
et une sauvegarde globale : 20201029-105839.tar.gz

Le reste des sauvegardes, ce sont des pre-upgrade ou des applis que je n’utilise plus.

Si je ne me trompe pas, je peux tenter la récup dans cet ordre :

Installation de YUNOHOST
Restauration du backup ynh_core
je serais bien tenté à ce moment par un reboot de Yunohost
Restauration des autres applis …

À moins de commencer par la restauration du backup global même s’il est ancien et ensuite restauration des backups plus récent …

Qu’en pensez-vous ?
Cyril


Hello,
It was bound to happen one day and voilà, the hard drive on my Yunohost PC/server gave up the ghost and just before Christmas!
Yes, ok it’s nothing to do … but I had something else to do.
On the other hand, do we really have time to deal with breakdowns…

I am in the process of making an image of the disk with DDrescue-gui but it has many bad sectors. I already know that I won’t be able to boot on the image, but I’m not even sure that I’ll be able to recover the backups I had set up with archivist.
I did make a copy of the backup folder from time to time on my pc with a script “rsync -avzh -e ssh …”, but not automatically … We’ll see what I recover.

I may also have set up a backup with Borg on another Yunohost server, but I’m not sure and I can’t find the information on the other server.

So I could use a hand and some advice on how to organise the reinstallation and restoration of the data :sweat_smile: Pleeaase

If I leave a new yunohost installation, I can restore :

Yunohost’s basic configuration and messaging with
ynh_core_backup.tar.gz dated 22/12 ( hey! it’s not that old ! )

The applications and their data with :
22/12 jirafeau_backup.tar.gz
22/12 nextcloud_backup.tar.gz
21/12 opensondage_backup.tar.gz
10/12 shaarli_backup.tar.gz
10/12 roundcube_backup.tar.gz
10/12 kanboard_backup.tar.gz
10/12 baikal_backup.tar.gz
10/12 agendaav_backup.tar.gz
22/09 archivist_backup.tar.gz
22/09 borgserver_backup.tar.gz
24/05 shellinabox_backup.tar.gz
and a global backup: 20201029-105839.tar.gz

The rest of the backups are pre-upgrades or applications that I don’t use anymore.

If I am not mistaken, I can try to recover them in this order:

Installing YUNOHOST
Restore backup ynh_core
I would be tempted at this time to do a Yunohost reboot.
Restoration of other applications …

Unless I start by restoring the global backup even if it is old and then restore the more recent backups …

What do you think about it?

Cyril

Moi ça me parraît bien oui :+1:

1 Like

Bonjour,
L’image de mon disque défectueux est terminée.
Ça a pris beaucoup de temps à cause des nombreux secteurs défectueux. Mais DDrescue a bien géré la récup des secteurs encore bon.
Je n’ai pas pu monter l’image directement pour accéder au système de fichier, mais testdisk a bien retrouvé mes partitions et j’ai pu extraire les sauvegardes. Coup de bol, il n’y a pas l’air d’y avoir de secteurs défectueux dans ces fichiers !

J’ai testé mes disques sata récupéré par-ci par-là et j’en ai trouvé un en forme ! Ça ma permis de faire le tri, certains sont mort.

Prochaine étape, réinstallation de Yunohost avec la même config réseau.


Hello,
The image of my faulty disc is finished.
It took a long time because of the many bad sectors. But DDrescue handled the recovery of still good sectors well.
I couldn’t mount the image directly to access the file system, but testdisk did find my partitions, and I was able to extract the backups. Luckily, there doesn’t seem to be any bad sectors in these files!

I tested my sata disks collected here and there and found one in good shape! That allowed me to sort them out, some of them are dead.
Next step, reinstallation of Yunohost with the same network configuration.

1 Like

Bonjour,
La restauration s’est bien passée !
J’ai configuré la même adresse IP, le même nom de domaine.
J’ai restauré ynh_core_backup et redémarré le serveur.
J’ai ensuite restauré les applications à partir de leur backup aussi.
Tout à l’air de bien fonctionner.

La restauration m’a bien créé les utilisateurs Yunohost, je peux les voir à partir de la console d’admin, mais je n’ai pas leurs dossiers dans /home/
Il n’y a pas, non plus, les dossiers nextcloud, opensondage, jirafeau dans home. Ces dossiers sont vides, j’ai vérifié dans ma récup.

Est-ce gênant ?
Devrais-je les extraire de ma récup et les recopier ?

Ps : Bonne année


Hello,
The restoration went well!
I configured the same IP address, the same domain name.
I restored ynh_core_backup and restarted the server.
I then restored the applications from their backup too.
Everything seems to be working fine.

The restore did create the Yunohost users for me, I can see them from the admin console, but I don’t have their folders in /home/.
There are no nextcloud, opensondage, jirafeau folders in home either. These folders are empty, I checked in my recuperation.

Is it disturbing?
Should I extract them from my recovery and copy them?

Ps : Happy New Year