Avamar : MCS ne démarre pas après la perte du fichier mcserver.xml

Summary: Le serveur MCS (Management Console Server) s’affiche après la perte du fichier mcserver.xml dans le cadre d’une restauration.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

Après une restauration, le serveur MCS (Management Console Server) était en cours de restauration.

Dans le cadre standard du processus, le /usr/local/avamar/var/mc/server_data Le répertoire a été supprimé.

En raison de l’utilisation par avtar du chiffrement SSL par défaut, la restauration MCS échoue, supprimant le fichier mcserver.xml (ce qui empêche MCS de démarrer).

Preuve de restauration dans les logs gsan :

mapall --noerror 'grep -hi "rolled back" /data01/cur/gsan.log*' | sort | tail -1
2019/05/17-11:41:14.65109 {P0.0} [gsan]  <1287> gsan::run gsan rolled back to cp.xxxxxxxxxxxx 
 

Résultat du dpnctl.log :

less dpnctl.log
2019/05/17-11:47:48 --restore will modify your Administrator Server database and preferences.
2019/05/17-11:47:48 Do you want to proceed with the restore Y/N? [Y]: sed: can't read /usr/local/avamar/var/mc/
server_data/prefs/mcserver.xml: No such file or directory
2019/05/17-11:47:48 sed: can't read /usr/local/avamar/var/mc/server_data/prefs/mcserver.xml: No such file or directory
2019/05/17-11:47:48 Decrypting all registered passwords...
2019/05/17-11:47:48 see MCCipher log for details: /usr/local/avamar/var/mc/server_log/mccipher.log.0
2019/05/17-11:47:48 Database server stopped.
2019/05/17-11:47:48 removing data dir /usr/local/avamar/var/mc/server_data
2019/05/17-11:47:48 INFO: /usr/local/avamar/var/mc already exists
2019/05/17-11:47:48 INFO: creating /usr/local/avamar/var/mc/server_data/postgres/data with permissions 0755
.
2019/05/17-11:47:48 Please wait....
2019/05/17-11:47:48 avtar Error <18838>: SSL certificate/key not found or invalid key. '/usr/local/avamar/etc/x.x.x.x/cert.pem' '/usr/local/avamar/etc/x.x.x.x/key.pem'
.
.
2019/05/17-11:47:48 rm -f /tmp/dpnctl-mcs-restore-status-6696 /tmp/dpnctl-mcs-restore-output-6696
2019/05/17-11:47:48 dpnctl: ERROR: MCS restore did not succeed, so not restarting MCS
 

La création manuelle d’une liste des MC_BACKUPS à l’aide d’avtar entraîne une erreur :

avtar --backups --path=/MC_BACKUPS |more 
avtar Info <5552>: Connecting to Avamar Server (xxxx)
avtar Info <5554>: Connecting to one node in each datacenter
avtar Error <18838>: SSL certificate/key not found or invalid key. '/usr/local/avamar/etc/x.x.x.x/cert.pem' '/usr/local/avamar/etc/x.x.x.x/key.pem'
avtar Info <5557>: No connections available
avtar FATAL <8604>: Fatal server connection problem, aborting initialization. Verify correct server address and login credentials.
avtar FATAL <5308>: Failed to initiate session with server
avtar Info <6149>: Error summary: 8 errors: 5308, 8604, 18838(6)
avtar Info <5314>: Command failed (8 errors, exit code 10008: cannot establish connection with server (possible network or DNS failure))

Cause

La restauration de MCS à l’aide du chiffrement SSL par défaut échoue, car le certificat SSL et la clé ne correspondent pas.

Resolution

Solution de contournement :

1. Connectez-vous à Avamar Utility Node en tant qu’administrateur.

2. Accédez au répertoire /home/admin :

cd /home/admin 
 

3. Créez un nouveau répertoire temporaire :

mkdir mc_restore
 

4. Accédez au répertoire nouvellement créé :

cd /home/admin/mc_restore
 

5. Répertoriez les MC_BACKUPS en ajoutant le "--encrypt=proprietary", qui utilise un chiffrement en texte clair. (donc pas de cryptage du tout) :

avtar --archives --path=/MC_BACKUPS --count=1 --encrypt=proprietary
avtar Info <19849>: Selecting 1 backups
avtar Info <7377>: Backups for /MC_BACKUPS as of 2019-05-23 11:39:43 BST
    Date      Time    Seq       Label           Size     Plugin    Working directory         Targets
 ---------- -------- ----- ----------------- ---------- -------- --------------------- -------------------
 2019-05-15 08:45:32 10196                      526254K Linux    /usr/local/avamar     var/mc/server_data
avtar Info <5314>: Command completed (exit code 0: success)
 

6. Restaurez le /usr/local/avamar/var/mc/server_data répertoire à l’aide de after à l’étape 3 de la procédure de restauration d’Avamar : Le vidage MCS échoue ou MCS ne démarre pas en raison de problèmes avec le fichier mcserver.xml :

Par exemple :

avtar -x --path=/MC_BACKUPS --labelnum=10196 --target=.
avtar Info <5259>: Restoring backup to directory "."
avtar Info <5262>: Restore completed
avtar Info <7925>: Restored 510.0 MB from selection(s) with 513.9 MB in 35 files, 17 directories
avtar Info <6090>: Restored 510.0 MB in 1.06 minutes: 28.26 GB/hour (1,986 files/hour)

Le répertoire est restauré vers /home/admin/mc_restore/var/mc/server_data/.

7. Copiez le contenu de /home/admin/mc_restore/var/mc/server_data/ au vide /usr/local/avamar/var/mc/server_data .

8. Restaurez MCS à l’aide du numéro de libellé restauré :

mcserver.sh --restore --labelnum=10196
 

9. Démarrez MCS :

 mcserver.sh --start 
 

Exemple de résultat :

Starting Administrator Server at: Thu May 23 12:09:15 BST 2019
Starting Administrator Server...
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Administrator Server started.
 

10. Une fois lancé, effectuez un vidage MCS (également appelé sauvegarde) :

mcserver.sh --flush
=== BEGIN === check.mcs (preflush)
check.mcs                        passed
=== PASS === check.mcs PASSED OVERALL (preflush)
Flushing Administrator Server...
Administrator Server flushed.
 
 

11. Régénérez les certificats SSL conformément à la section de résolution d’Avamar : Avtar ne parvient pas à se connecter au service GSAN d’Avamar, « Fatal server connection problem, aborting initialization » :

12. Répertoriez les MC_BACKUPS pour vérifier qu’il n’y a pas d’erreurs de certificat SSL :

avtar --archives --path=/MC_BACKUPS --count=10 
 

Exemple de résultat :

avtar Info <19849>: Selecting 1 backups
avtar Info <7377>: Backups for /MC_BACKUPS as of 2019-05-23 11:39:43 BST
    Date      Time    Seq       Label           Size     Plugin    Working directory         Targets
 ---------- -------- ----- ----------------- ---------- -------- --------------------- -------------------
 2019-05-15 08:00:05   419                          73K Linux    /usr/local/avamar     var/em/server_data
 2019-05-14 08:00:04   418                          73K Linux    /usr/local/avamar     var/em/server_data
 2019-05-13 08:00:04   417                          73K Linux    /usr/local/avamar     var/em/server_data
avtar Info <5314>: Command completed (exit code 0: success)

Additional Information

Il existe une autre option pour surmonter temporairement l’erreur SSL dans la liste des MC_BACKUPS consiste à utiliser la commande --encrypt=tls drapeau: 

avtar --backups --path=/MC_BACKUPS --encrypt=tls | head -30 

Affected Products

Avamar

Products

Avamar
Article Properties
Article Number: 000056230
Article Type: Solution
Last Modified: 22 Oct 2025
Version:  6
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.