lunes, 21 de marzo de 2016

Oracle Solaris 11: Como agregar el dominio al nombre del servidor en caso de omisión

Vamos por el principio. He iniciado el arranque de mi nuevo servidor Oracle Solaris de la serie T(x). Estos equipos, vienen con el sistema operativo precargado y en el primer encendido, automáticamente inicia el proceso de configuración del equipo.

Sin embargo, por alguna razón, he omitido en el proceso, definir el dominio del servidor y recibo entonces el siguiente mensaje en el arranque:

sendmail[911]: My unqualified host name ServProd-db2

Cómo puedo resolver esto?

Aquí la solución:

Proceso de arranque utilizando la ILO de administración, la cuál he configurado con una IP, que me permita conectarme con PUTTY al servidor.

->
ORACLESP-AK00341036 login: root
Password:
Detecting screen size; please wait...done

Oracle(R) Integrated Lights Out Manager

Version 3.2.5.6.a r102440

Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.

Warning: password is set to factory default.

Warning: HTTPS certificate is set to factory default.

Hostname: ORACLESP-AK00341036

-> start /SYS
Are you sure you want to start /SYS (y/n)? y
Starting /SYS

-> start /HOST/console
Are you sure you want to start /HOST/console (y/n)? y

Serial console started.  To stop, type #.
2016-01-22 14:55:35  0:0:0> NOTICE:  Usable strands: ffffffffffffffff
2016-01-22 14:55:35  0:0:0> NOTICE:  System memory capacity is 64GB
2016-01-22 14:55:38  0:0:0> NOTICE:  Clocks: CMP: 2848 MHz DRAM: 533 MHz (6.4 Gbps) CL: 1466 MHz (8.8 Gbps)
2016-01-22 14:55:38  0:0:0> NOTICE:  Initializing TSR Hoovers
2016-01-22 14:55:40  0:0:0> NOTICE:  Initializing FSR Hoovers
2016-01-22 14:55:42  0:0:0> NOTICE:  Initializing MCU 0 serdes
2016-01-22 14:55:42  0:0:0> NOTICE:  Initializing MCU 1 serdes
2016-01-22 14:55:42  0:0:0> NOTICE:  Updating Config Information for Guest Manager
2016-01-22 14:55:44  0:0:0> NOTICE:  Enabling caches
2016-01-22 14:55:44  0:0:0> NOTICE:  L3 Banks Enabled: ff
2016-01-22 14:55:47  0:0:0> NOTICE:  Initializing MCU 0
2016-01-22 14:55:47  0:0:0> NOTICE:  Initializing MCU 1
2016-01-22 14:55:55  0:0:0> NOTICE:  SMI Channel 0, SB Mapping 0 -- ERRCNT:
2016-01-22 14:55:55  0:0:0> NOTICE:  SMI Channel 0, SB Mapping 1 -- ERRCNT:
2016-01-22 14:55:55  0:0:0> NOTICE:  SMI Channel 1, SB Mapping 0 -- ERRCNT:
2016-01-22 14:55:55  0:0:0> NOTICE:  SMI Channel 1, SB Mapping 1 -- ERRCNT:
2016-01-22 14:56:26  0:0:0> NOTICE:  SMI Channel 0, SB Mapping 0 -- ERRCNT:
2016-01-22 14:56:26  0:0:0> NOTICE:  SMI Channel 0, SB Mapping 1 -- ERRCNT:
2016-01-22 14:56:26  0:0:0> NOTICE:  SMI Channel 1, SB Mapping 0 -- ERRCNT:
2016-01-22 14:56:26  0:0:0> NOTICE:  SMI Channel 1, SB Mapping 1 -- ERRCNT:
2016-01-22 14:56:59  0:0:0> NOTICE:  L3 Banks Enabled: ff
2016-01-22 14:56:59  0:0:0> NOTICE:  Starting available strands
2016-01-22 14:56:59  0:0:0> NOTICE:  Active strands:    ffffffffffffffff
0:0:0>
0:0:0>POST 4.38.1 2015/08/21 14:29
0:0:0>
0:0:0>Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
0:0:0>POST enabling CMP 0 threads: ffffffff.ffffffff
0:0:0>Diag mode      : 1 [Normal]
0:0:0>Diag level     : 1 [Max]
0:0:0>Diag verbosity : 2 [Normal]
0:0:0>Test Memory....Done
0:0:0>Setup POST Mailbox ....Done
0:0:0>Master CPU Tests Basic....Done
0:0:0>Init MMU.....
0:0:0>Setup POST Mailbox ....Done
0:0:0>Extended CPU Tests....Done
0:0:0>Scrub Memory....Done
0:0:0>Functional CPU Tests....Done
0:0:0>Extended Memory Tests....Done
0:0:0>SPU Crypto Tests...Done
0:0:0>IOS register tests....Done
0:0:0>Network Interface Unit Port 0 Tests ..Done
0:0:0>Network Interface Unit Port 1 Tests ..Done
2016-01-22 15:02:07.166 0:0:0>INFO:
2016-01-22 15:02:07.174 0:0:0>  POST Passed all devices.
2016-01-22 15:02:07.187 0:0:0>POST:     Return to Host Config.
2016-01-22 15:02:07  0:0:0> NOTICE:  Reconfiguring System
2016-01-22 15:02:08  0:0:0> NOTICE:  MCU0: Memory Capacity is 32GB
2016-01-22 15:02:08  0:0:0> NOTICE:  MCU1: Memory Capacity is 32GB
2016-01-22 15:02:11  0:0:0> NOTICE:  Usable strands: ffffffffffffffff
2016-01-22 15:02:11  0:0:0> NOTICE:  System memory capacity is 64GB
2016-01-22 15:02:11  0:0:0> NOTICE:  MBISI started with bypass = 0x0
2016-01-22 15:02:13  0:0:0> NOTICE:  MBISI done
2016-01-22 15:02:13  0:0:0> NOTICE:  Enabling caches
2016-01-22 15:02:13  0:0:0> NOTICE:  L3 Banks Enabled: ff
2016-01-22 15:02:15  0:0:0> NOTICE:  Initializing MCU 0
2016-01-22 15:02:15  0:0:0> NOTICE:  Initializing MCU 1
2016-01-22 15:02:23  0:0:0> NOTICE:  SMI Channel 0, SB Mapping 0 -- ERRCNT:
2016-01-22 15:02:23  0:0:0> NOTICE:  SMI Channel 0, SB Mapping 1 -- ERRCNT:
2016-01-22 15:02:23  0:0:0> NOTICE:  SMI Channel 1, SB Mapping 0 -- ERRCNT:
2016-01-22 15:02:23  0:0:0> NOTICE:  SMI Channel 1, SB Mapping 1 -- ERRCNT:
2016-01-22 15:02:54  0:0:0> NOTICE:  SMI Channel 0, SB Mapping 0 -- ERRCNT:
2016-01-22 15:02:54  0:0:0> NOTICE:  SMI Channel 0, SB Mapping 1 -- ERRCNT:
2016-01-22 15:02:54  0:0:0> NOTICE:  SMI Channel 1, SB Mapping 0 -- ERRCNT:
2016-01-22 15:02:54  0:0:0> NOTICE:  SMI Channel 1, SB Mapping 1 -- ERRCNT:
2016-01-22 15:03:27  0:0:0> NOTICE:  L3 Banks Enabled: ff
2016-01-22 15:03:32  0:0:0> NOTICE:  Copying code to memory
2016-01-22 15:03:34  0:0:0> NOTICE:  Copy to memory done
2016-01-22 15:03:34  0:0:0> NOTICE:  Running from memory
2016-01-22 15:03:34  0:0:0> NOTICE:  Starting available strands
2016-01-22 15:03:35  0:0:0> NOTICE:  Active strands:    ffffffffffffffff
2016-01-22 15:03:35  0:0:0> NOTICE:  Configuring MDs
2016-01-22 15:03:35  0:0:0> NOTICE:  Loading PRI template
2016-01-22 15:03:35  0:0:0> NOTICE:  Configuring PRI
2016-01-22 15:03:35  0:0:0> NOTICE:  Product serial number: AK00322324
2016-01-22 15:03:35  0:0:0> NOTICE:  Product part number: 33741658+1+1
2016-01-22 15:03:37  0:0:0> NOTICE:  Storing PRI to memory
2016-01-22 15:03:37  0:0:0> NOTICE:  Booting config = factory-default
2016-01-22 15:03:37  0:0:0> NOTICE:  Configuring Guest MD
2016-01-22 15:03:37  0:0:0> NOTICE:  Storing Guest MD to Memory
2016-01-22 15:03:37  0:0:0> NOTICE:  Configuring HV MD
2016-01-22 15:03:37  0:0:0> NOTICE:  Storing HV MD to Memory
2016-01-22 15:03:38  0:0:0> NOTICE:  Storing Machine Descriptors to data flash
2016-01-22 15:03:39  0:0:0> NOTICE:  Updating Config Information for Guest Manag
2016-01-22 15:03:39  0:0:0> NOTICE:  Jumping to hypervisor
[CPU 00:00:0] Hypervisor version: @(#)Hypervisor 1.15.1.a 2015/09/09 13:30
NOTICE: Entering OpenBoot.
NOTICE: Fetching Guest MD from HV.
NOTICE: Starting additional cpus.
NOTICE: Initializing LDC services.
NOTICE: Probing PCI devices.
NOTICE: Finished PCI probing.

SPARC T4-1, No Keyboard
Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.38.1, 63.5000 GB memory available, Serial #108443772.
Ethernet address 0:10:e0:76:b8:7c, Host ID: 8676b87c.



Boot device: disk  File and args:
SunOS Release 5.11 Version 11.2 64-bit
Copyright (c) 1983, 2015, Oracle and/or its affiliates. All rights reserved.
SC profile successfully generated as:
/etc/svc/profile/sysconfig/sysconfig-20160122-150543/sc_profile.xml

Exiting System Configuration Tool. Log is available at:
/system/volatile/sysconfig/sysconfig.log.258
Hostname: ServProd-db2
Jan 22 03:20:09 ServProd-db2 sendmail[911]: My unqualified host name ServProd-db2

Cuando el equipo termina de subir, obtenemos el mensaje en cuestión de este post.

Hagamos ingreso en el equipo y veamos la configuración de red del mismo.

ServProd-db2 console login: root
Password:
Jan 22 03:20:26 ServProd-db2 login: ROOT LOGIN /dev/console
Last login: Thu Dec 10 12:55:06 on console
Oracle Corporation      SunOS 5.11      11.2    August 2015
root@ServProd-db2:~# more /etc/hosts
#
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# Internet host table
#
::1             localhost
127.0.0.1       localhost loghost
10.4.1.16       ServProd-db2

Como puedes observar, efectivamente en el archivo de configuración de "Hosts", el nombre del servidor, no tiene definido el dominio al cuál pertenece. Por tal motivo, recibimos el siguiente mensaje de advertencia, posterior a ejecutar el comando para mostrar el contenido del archivo.

root@ServProd-db2:~# Jan 22 03:21:09 ServProd-db2 sendmail[911]: unable to qualify my own domain name (ServProd-db2) -- using short name
Jan 22 03:21:09 ServProd-db2 sendmail[911]: [ID 702911 mail.alert] unable to qualify my own domain name (ServProd-db2) -- using short name

Para efectuar el cambio que resuelva esta situación, necesitamos estar logeados con el usuario root en el sistema. Luego vamos a llamar a "SVCCFG". El "svcfg", permite importar, exportar y modificar configuración de servicios en el sistema operativo solaris.

Esta herramienta, manipula los datos del repositorio de servicios de manera interactiva, con subcomandos individuales, o por medio de archivo de comandos tipo batch.

Los cambios efectuados con esta herramienta, típicamente no tienen efecto, hasta que el servicio no sea reiniciado, sin embargo, algunos de ellos pueden refrescarse en caliente a través del subcomando "refresh".

En nuestro caso, necesitamos ajustar algunos valores relacionados con el valor de identidad del servidor.

Veamos como podemos resolver la omisión que cometimos y el resultado que obtendremos como producto de este cambio.

root@ServProd-db2:~# pwd
/root

root@ServProd-db2:~# svccfg <
> select /system/identity:node
> setprop config/nodename="ServProd-db2.localdomain.co.cr"
> setprop config/loopback="ServProd-db2.localdomain.co.cr"
> refresh
> EOM
root@ServProd-db2:~# Hostname: ServProd-db2.localdomain.co.cr
Jan 22 03:22:48 ServProd-db2 rpcbind: rpcbind terminating on signal.

root@ServProd-db2:~# hostname
ServProd-db2.localdomain.co.cr
root@ServProd-db2:~#

Si deseas mayor información sobre el comando "svccfg" pueden encontrarlo en el siguiente link de la documentación oficial:



No hay comentarios:

Publicar un comentario

Te agradezco tus comentarios. Te esperamos de vuelta.

Todos los Sábados a las 8:00PM

Optimismo para una vida Mejor

Optimismo para una vida Mejor
Noticias buenas que comentar