NIS + Solaris 10, Configuração do Servidor Principal

1

esta é a minha primeira vez com o NIS + Naming Service.

Eu quero configurar meu host para ser um servidor-raiz mestre usando este script

/usr/lib/nis/nisserver -r -d doc.com.

E eu recebi este erro:

> ********        ********    WARNING    ********        ******** NIS+ might not be supported in a future release. Tools to aid the migration
> from NIS+ to LDAP are available in the Solaris 9 operating
> environment. For more information, visit
> http://www.sun.com/directory/nisplus/transition.html
> ********        ********    *******    ********        ********
> 
> This script sets up this machine "master" as an NIS+ root master
> server for domain doc.com..
> 
> Domain name             : doc.com. NIS+ group              :
> admin.doc.com. NIS (YP) compatibility  : OFF Security level          :
> 2=DES
> 
> Is this information correct? (type 'y' to accept, 'n' to change) y
> 
> This script will set up your machine as a root master server for
> domain doc.com. without NIS compatibility at security level 2.
> 
> WARNING: this script removes directories and files related to NIS+
> under /var/nis directory with the exception of the client_info
> NIS_COLD_START file which will be renamed to <file>.no_nisplus.  If
> you want to save these files, you should abort from this script now to
> save these files first.
> 
> WARNING: once this script is executed, you will not be able to restore
> the existing NIS+ server environment.  However, you can restore your
> NIS+ client environment using "nisclient -r" with the proper domain
> name and server information.
> 
> Do you want to continue? (type 'y' to continue, 'n' to exit this
> script) y
> 
> setting up domain information "doc.com." ...
> 
> setting up switch information ... switch configuration file already
> set to use NIS+.
> 
> killing NIS and NIS+ processes ... stopping nscd ...
> 
> setup NIS_GROUP environment variable ...
> 
> rm /var/nis files ...
> 
> running nisinit ... This machine is in the "doc.com." NIS+ domain.
> Setting up root server ... All done.
> 
> starting root server at security level 0 to create credentials...
> 
> running nissetup to create standard directories and tables ...
> doc.com.: NIS+ servers unreachable. couldn't create org_dir.doc.com.
> **ERROR: it failed to create the tables.

Eu procurei por esse erro e não encontrei nenhuma solução.

    
por MUE 06.02.2013 / 22:32

1 resposta

1

Verifique isso no site do oracle: Mensagens de erro comuns do NIS +

Ele contém os erros conhecidos e você dá dicas sobre onde procurar o erro.

Para este em particular:

Description: The NIS+ command nissetup failed to create the directories and tables. Check your system console for system error messages:

If there is a system error message, fix the problem described in the error message and rerun nisserver.

If there aren't any system error messages, check to see whether the rpc.nisd process is running. If it is not running, restart it and rerun nisserver.

Blockquote

Então, basicamente, verifique / var / adm / messages se há erros e verifique se o daemon rpc está sendo executado:

ps -ef|grep rpc.nisd

Se a taxa de transferência estiver vazia, inicie o processo.

Execute o comando novamente e, em outra sessão ou terminal, faça o seguinte:

tail -f /var/adm/messages

Espero que você possa ver o erro gerado e tomar as medidas adequadas para corrigir o problema.

    
por 07.02.2013 / 09:04

Tags