Après la mise à jour de NetWorker NMC de la version 9.2.X vers la version 19.X, la base de données Postgres ne parvient pas à migrer vers la version 11.

Summary: Après la mise à jour de NetWorker NMC de la version 9.2.X vers la version 19.X, la base de données Postgres ne parvient pas à migrer vers la version 11. L’objectif est d’obtenir NMC version 19.X + Postgres 11. ...

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



La mise à niveau de NMC rencontre un problème lors de la migration de Postgres de la version 9.2 vers la version 11 au point suivant dans les journaux.

Extrait de « pg_upgrade_server.log ».
command: "/opt/lgtonmc/postgres/9.2/bin/pg_ctl" -w -l "pg_upgrade_server.log" -D "/nsr/nmc/nmcdb/pgdata" -o "-p 5432 -c autovacuum=off -c autovacuum_freeze_max_age=2000000000  -c listen_addresses='' -c unix_socket_permissions=0700" start >> "pg_upgrade_server.log" 2>&1
        pg_ctl: another server might be running; trying to start server anyway
        waiting for server to start....FATAL:  could not open lock file "/tmp/.s.PGSQL.5432.lock": Permission denied
         stopped waiting
        pg_ctl: could not start server
        Examine the log output.

From "install.log".
Performing Consistency Checks on Old Live Server
        ------------------------------------------------
        Checking cluster versions                                   ok
        could not open file "/nsr/nmc/nmcdb/pgdata/postmaster.pid": No such file or directory
        Failure, exiting
        107558:gstdbinit: The binary '/opt/lgtonmc/postgres_latest/bin/pg_upgrade' did not launch or complete successfully
        186994:gstdbinit: pg_upgrade --check failed 
        Upgrade to Postgres 11 Failed. Failover to 9.2 binaries so that db can start

Cause

Il s’agit d’un cas critique rare où un processus a un verrou sur le fichier « /tmp/.s.PGSQL.5432.lock ».

Resolution

Pour contourner ce problème, nous devons arrêter les services NMC et exécuter à nouveau le script « nmc_config » pour migrer Postgres manuellement : /opt/lgtonmc/bin/nmc_config

Voici la sortie pertinente de ce script une fois l’exécution réussie. (Un redémarrage peut être nécessaire avant d’exécuter à nouveau ce script si le même problème est rencontré).
 
Postgres 9.2 database detected. It will be migrated to Postgres 11
It may take a while to upgrade.....
Migration to Postgres 11 Successful.
The installation completed successfully.

 

Additional Information

Ce contenu est traduit en 15 langues : 
https://downloads.dell.com/TranslatedPDF/CS_KB540106.pdf
https://downloads.dell.com/TranslatedPDF/DA_KB540106.pdf
https://downloads.dell.com/TranslatedPDF/DE_KB540106.pdf
https://downloads.dell.com/TranslatedPDF/ES-XL_KB540106.pdf
https://downloads.dell.com/TranslatedPDF/FI_KB540106.pdf
https://downloads.dell.com/TranslatedPDF/FR_KB540106.pdf
https://downloads.dell.com/TranslatedPDF/IT_KB540106.pdf
https://downloads.dell.com/TranslatedPDF/JA_KB540106.pdf
https://downloads.dell.com/TranslatedPDF/KO_KB540106.pdf
https://downloads.dell.com/TranslatedPDF/NL_KB540106.pdf
https://downloads.dell.com/TranslatedPDF/NO-NO_KB540106.pdf
https://downloads.dell.com/TranslatedPDF/PL_KB540106.pdf
https://downloads.dell.com/TranslatedPDF/PT-BR_KB540106.pdf
https://downloads.dell.com/TranslatedPDF/RU_KB540106.pdf
https://downloads.dell.com/TranslatedPDF/SV_KB540106.pdf
https://downloads.dell.com/TranslatedPDF/TR_KB540106.pdf
https://downloads.dell.com/TranslatedPDF/ZH-CN_KB540106.pdf

Affected Products

NetWorker Management Console

Products

NetWorker, NetWorker Series, NetWorker Management Console
Article Properties
Article Number: 000170938
Article Type: Solution
Last Modified: 23 Sept 2024
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.