NetWorker: nmc_config falha com "/opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb failed!"
Resumo: O script de configuração do NetWorker NMC nmc_config falha com "/opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb failed!"
Este artigo aplica-se a
Este artigo não se aplica a
Este artigo não está vinculado a nenhum produto específico.
Nem todas as versões do produto estão identificadas neste artigo.
Sintomas
O seguinte caracteriza o problema:
Saída completa:
- Você está instalando o software de servidor NMC em um servidor Linux
- A pós-instalação /opt/lgtonmc/bin/nmc_config apresenta falha com ERROR: O comando /opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb falhou!
Saída completa:
# /opt/lgtonmc/bin/nmc_config
NetWorker services on this host are not running. Do you want to start them now [y]?
For optimum security, the NMC server must run the embedded PostgreSQL database server as a non root user. Specify a local user name that will start the database server.
If you specify a user that does not exist, the configuration process will provide you with
the option to create the user account.
Specify the user for the database server [postgres]:
Specify the directory to use for the LGTOnmc database [/nsr/nmc/nmcdb]:
Do you want to migrate the NMC server data from a previous LGTOnmc 8.x.x release [n]?
Specify the host name of the NetWorker Authentication Service host [nw_server_hostname]:
Start the NMC server daemons at end of the configuration [y]?
Creating the installation log in /opt/lgtonmc/logs/install.log.
Performing initialization. Please wait...
ERROR: Command /opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb failed!
Causa
Esse problema pode aparecer ao instalar o software do servidor NMC em um sistema sem banco de dados NMC existente ( /nsr/nmc/nmcdb). O usuário postgres criado durante o script nmc_config falha ao inicializar o banco de dados NMC devido a permissões incorretas definidas no diretório os /tmp. Esse diretório deve ter permissões completas de leitura, gravação e execução para todos os usuários. O usuário postgres cria um arquivo.lock em /tmp. Se ele não conseguir fazer isso, o nmcdb não será inicializado.
Resolução
1. Faça log-in no servidor do NetWorker como root
2,a. Confirme se /tmp tem acesso completo de leitura, gravação e execução para todos os usuários:
2,b. Se as permissões estiverem incorretas, corrija-as executando:
Exemplo:
4. Execute novamente nmc_config:
2,a. Confirme se /tmp tem acesso completo de leitura, gravação e execução para todos os usuários:
ls -la / | grep /tmp
Exemplo:
# ls -la / | grep tmp
drwxrwxrwt. 51 root root 8192 14 de novembro 09:41 tmp
drwxrwxrwt. 51 root root 8192 14 de novembro 09:41 tmp
NOTA: o valor destacado acima indica permissões completas de leitura, gravação e execução para todos os usuários. Se você tiver outras configurações de permissões, isso precisará ser alterado.
2,b. Se as permissões estiverem incorretas, corrija-as executando:
chmod 777 /tmp
Exemplo:
[root@nmcserver linux_x86_64]# ls -la / | grep tmp
drwx------. 51 root root 8192 Nov 16 09:18 tmp
[root@nmcserver linux_x86_64]# chmod 777 /tmp
[root@nmcserver linux_x86_64]# ls -la / | grep tmp
drwxrwxrwx. 51 root root 8192 Nov 16 09:18 tmp
3. Renomeie o /nsr/nmc/nmcdb existente:
mv /nsr/nmc/nmcdb /nsr/nmc/nmcdb.bak
Nota: Se o nmcdb for renomeado, você não poderá extrair relatórios do NMC antes da renomeação. As configurações da função NMC para autenticação externa também serão removidas. Para recuperar o nmcdb, consulte NetWorker: Como recuperar o banco de dados do NMC? Isso pode ser feito assim que o processo neste artigo da KB for concluído.
4. Execute novamente nmc_config:
[root@nmcserver linux_x86_64]# /opt/lgtonmc/bin/nmc_config NOTE ==== Install has detected the configuration file of a previous lgtonmc package. Install will attempt to read the configuration parameters in this file and present them as default values where appropriate. Please modify any value that is incorrect or needs to be changed. For optimum security, the NMC server must run the embedded PostgreSQL database server as a non root user. Specify a local user name that will start the database server. If you specify a user that does not exist, the configuration process will provide you with the option to create the user account. Specify the user for the database server [postgres]: Specify the directory to use for the LGTOnmc database [/nsr/nmc/nmcdb]: Do you want to migrate the NMC server data from a previous LGTOnmc 8.x.x release [n]? Specify the host name of the NetWorker Authentication Service host [nmcserver.lab.emc.com]: Start the NMC server daemons at end of the configuration [y]? Creating the installation log in /opt/lgtonmc/logs/install.log. Performing initialization. Please wait... done. The installation completed successfully.
5. Confirme se o serviço GST foi iniciado:
systemctl status gst
6. Se o serviço NMC não estiver em execução, inicie-o com:
systemctl start gst
6. Monitore o /opt/lgtonmc/logs/gstd.raw para inicialização:
Mais informações
Produtos afetados
NetWorkerProdutos
NetWorker, NetWorker Management ConsolePropriedades do artigo
Número do artigo: 000049077
Tipo de artigo: Solution
Último modificado: 24 jun. 2025
Versão: 4
Encontre as respostas de outros usuários da Dell para suas perguntas.
Serviços de suporte
Verifique se o dispositivo está coberto pelos serviços de suporte.