NetWorker: nmc_config "/opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb failed!" hatasıyla başarısız oluyor
Summary: NetWorker NMC yapılandırma komut dosyası nmc_config "/opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb failed!" hatasıyla başarısız oluyor!
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
Aşağıdakiler sorunu karakterize ediyor:
Tam çıkış:
- NMC sunucu yazılımını bir Linux sunucusuna yüklüsersiniz
- Yükleme sonrası /opt/lgtonmc/bin/nmc_config HATASıyla başarısız oluyor: Komut /opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb failed!
Tam çıkış:
# /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!
Cause
Bu sorun, NMC sunucu yazılımını mevcut NMC veritabanı (/nsr/nmc/nmcdb) olmadan bir sisteme yükleme sırasında görüntülenebilir. İşletim sistemi komut dosyası sırasında oluşturulan postgres nmc_config, OS /tmp dizininde ayarlanmış yanlış izinler nedeniyle NMC veritabanını başlatamaz. Bu dizinde tüm kullanıcılar için tam okuma, yazma ve yürütme izinleri olması gerekir. Postgres kullanıcısı /tmp altında bir .lock dosyası oluşturur. Bunu yapamazsa nmcdb başlatılamıyor.
Resolution
1. NetWorker sunucusuna kök
2,a olarak oturumaçın. /tmp'nin tüm kullanıcılar için tam okuma, yazma ve yürütme erişimine sahip olduğunu doğrulayın:
2, b. İzinler yanlışsa aşağıdaki adımları çalıştırarak düzeltin:
Example:
4. aşağıdaki nmc_config:
2,a olarak oturumaçın. /tmp'nin tüm kullanıcılar için tam okuma, yazma ve yürütme erişimine sahip olduğunu doğrulayın:
ls -la / | grep /tmp
Example:
# ls -la / | grep tmp
drwxrwxrwt. 51 kök kök 8192 14 Kasım 09:41 tmp
drwxrwxrwt. 51 kök kök 8192 14 Kasım 09:41 tmp
NOT: Yukarıdaki vurgulanan değer tüm kullanıcılar için tam okuma, yazma ve yürütme izinlerini gösterir. Başka izin ayarlarınız varsa bu ayarın değiştirilmesi gerekir.
2, b. İzinler yanlışsa aşağıdaki adımları çalıştırarak düzeltin:
chmod 777 /tmp
Example:
[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. Mevcut /nsr/nmc/nmcdb'yi yeniden adlandırarak:
mv /nsr/nmc/nmcdb /nsr/nmc/nmcdb.bak
NOT: nmcdb yeniden adlandırılmışsa yeniden adlandırmadan önce NMC raporlarını çekesiniz. Harici kimlik doğrulama için NMC Rol yapılandırmaları da kaldırılmış olacak. nmcdb'yi kurtarmak için bkz. NetWorker: NMC veritabanı nasıl kurtarılabilir? Bu, bu KB'deki işlem tamamlandıktan sonra yapılabilir.
4. aşağıdaki 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. GST hizmetinin başlatıldıktan sonra:
systemctl status gst
6. NMC hizmeti çalışmıyorsa şu şekilde başlatın:
systemctl start gst (systemctl gst'yi başlat)
6. Başlangıç için /opt/lgtonmc/logs/gstd.raw izleyin:
Additional Information
Affected Products
NetWorkerProducts
NetWorker, NetWorker Management ConsoleArticle Properties
Article Number: 000049077
Article Type: Solution
Last Modified: 24 Jun 2025
Version: 4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.