Problemet er af den følgende karakter:
- Du installerer NMC-serversoftwaren på en Linux-server
- Postinstallationen /opt/lgtonmc/bin/nmc_config mislykkes medFEJL: Kommandoen /opt/lgtonmc/bin/gstdbinit -U postgres -n 5432 /nsr/nmc/nmcdb mislykkedes!
Fuldt output:
# /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!
Dette problem kan opstå, når du installerer NMC-serversoftwaren på et system uden nogen eksisterende NMC-database (/nsr/nmc/nmcdb). Den postgres-bruger, der blev oprettet under nmc_config scriptet, kan ikke initialisere NMC-databasen pga. forkerte tilladelser, der er angivet i OS /tmp-mappen. Denne mappe skal have fuld læse-, skrive-, udførelsestilladelser for alle brugere. Postgres-brugeren opretter en .lock-fil under /tmp. Hvis den ikke gør dette, kan nmcdb ikke initialiseres.
1. Log ind på NetWorker-serveren som
root
2,a. Bekræft, at /tmp har fuld læse-, skrive- og eksekver adgang for alle brugere:
ls -la / | grep/tmp
Eksempel:
# ls -la / | grep tmp
drwxrwxrwt. 51 rodrod 8192 nov 14 09:41 tmp
BEMÆRK: Ovenstående fremhævede værdi angiver fuld læsning, skrivning, udførelse af tilladelser for alle brugere. Hvis du har andre indstillinger for tilladelser, skal dette ændres.
2,b. Hvis tilladelserne er forkerte, skal du rette dem ved at køre:
chmod 777 /tmp
Eksempel:
[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. Omdøb den eksisterende /nsr/nmc/nmcdb:
mv /nsr/nmc/nmcdb /nsr/nmc/nmcdb.bak
4. Kør nmc_config igen:
[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. Bekræft, at GST-tjenesten er startet:
systemctl-status gst
6. Hvis NMC-tjenesten ikke kører, skal du starte den med:
systemctl start gst
6. Overvåg /opt/lgtonmc/logs/gstd.raw for opstart: