Configurar NIM como maquina maestra:
Pasos que seguí para configurar una LPAR AIX como NIM master:
Instalar AIX BOS como siempre (instalación estándar de AIX)
Tener en cuenta que será para NIM por lo que decidimos instalar la versión de AIX más alta posible (más alta que los clientes NIM que se configuraran posteriormente)
Configurar el volume group "vgmin" para uso de NIM con una estructura como la siguiente:
# lsvg -l vgnim
vgnim:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
lvlpp_source jfs2 157 157 1 open/syncd /export/lpp_source
lvspot jfs2 157 157 1 open/syncd /export/spot
lvrespaldos jfs2 157 157 1 open/syncd /export/respaldos
lvrestores jfs2 157 157 1 open/syncd /export/restores
loglv00 jfs2log 1 1 1 open/syncd N/A
Instale el paquete bos.sysmgt.nim.master desde el recurso lpp_AIX71Base el cual es requerimiento de instalación.
+-----------------------------------------------------------------------------+
Summaries:
+-----------------------------------------------------------------------------+
Installation Summary
--------------------
Name Level Part Event Result
-------------------------------------------------------------------------------
bos.sysmgt.nim.master 7.1.0.0 USR APPLY SUCCESS
Cambie permisos de los directorio creados previamente:
(root@nimsuma) /export/nim/scripts> chmod -R 660 /export/
(root@nimsuma) /export/nim/scripts> ls -l /export
total 0
drw-rw---- 3 root system 256 Jul 25 11:09 lpp_source
drwxrwxr-x 3 root system 256 Aug 29 2010 nim
drw-rw---- 3 root system 256 Jul 25 11:10 respaldos
drw-rw---- 3 root system 256 Jul 25 11:11 restores
drw-rw---- 3 root system 256 Jul 25 11:10 spot
(root@nimsuma) /export/nim/scripts>
Instale el fileset bos.sysmgt.nim.spot puesto que en algún momento vamos a generar spot.
+-----------------------------------------------------------------------------+
Summaries:
+-----------------------------------------------------------------------------+
Installation Summary
--------------------
Name Level Part Event Result
-------------------------------------------------------------------------------
bos.sysmgt.nim.spot 7.1.0.0 USR APPLY SUCCESS
Comencé la configuración de NIM mediante la opción # smitty nimconfig.
Opción comando:
# nimconfig -a netname=net_10_1_1 -a pif_name=en0 -a netboot_kernel=mp -a cable_type=tp -a client_reg=no
COMMAND STATUS
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear below.
0513-071 The nimesis Subsystem has been added.
0513-071 The nimd Subsystem has been added.
0513-059 The nimesis Subsystem has been started. Subsystem PID is 9109598.
Chequeos
(root@nimsuma) /> lsnim
master machines master
boot resources boot
nim_script resources nim_script
net_10_1_1 networks ent
(root@nimsuma) />
(root@nimsuma) /> lsnim -l boot
boot:
class = resources
type = boot
comments = represents the network boot resource
Rstate = ready for use
location = /tftpboot
alloc_count = 0
server = master
reserved = yes
(root@nimsuma) />
(root@nimsuma) /> lsnim -l nim_script
nim_script:
class = resources
type = nim_script
comments = directory containing customization scripts created by NIM
Rstate = ready for use
location = /export/nim/scripts
alloc_count = 0
server = master
reserved = yes
(root@nimsuma) />
(root@nimsuma) /> cat /etc/niminfo
# nimconfig
export NIM_NAME=master
export NIM_CONFIGURATION=master
export NIM_MASTER_PORT=1058
export NIM_REGISTRATION_PORT=1059
export NIM_MASTER_HOSTNAME=nimsuma
(root@nimsuma) />
Se agrega la línea siguiente para resolución de nombres
(root@nimsuma) /> vi /etc/netsvc.conf
hosts = local, bind4
Se chequen estado de subsistemas necesarios para las funciones de NIM
(root@nimsuma) /> lssrc -ls inetd
Subsystem Group PID Status
inetd tcpip 5570736 active
Debug Inactive
Signal Purpose
SIGALRM Establishes socket connections for failed services
SIGHUP Rereads configuration database and reconfigures services
SIGCHLD Restarts service in case the service dies abnormally
Service Command Arguments Status
caa_cfg /usr/sbin/clusterconf clusterconf active
xmquery /usr/bin/xmtopas xmtopas -p3 active
time internal active
daytime internal active
time internal active
daytime internal active
ntalk /usr/sbin/talkd talkd active
exec /usr/sbin/rexecd rexecd active
login /usr/sbin/rlogind rlogind active
shell /usr/sbin/rshd rshd active
telnet /usr/sbin/telnetd telnetd -a active
ftp /usr/sbin/ftpd ftpd active
Se configura según lo solicitado:
(root@nimsuma) /> vi /etc/inetd.conf
tftp /usr/sbin/tftpd tftpd -n active
bootps /usr/sbin/bootpd bootpd /etc/bootptab active
Observación: Notar que el protocolos que se habilitan puede llegar a ser indispensable cuando se configure el DHCP.
(root@nimsuma) /> refresh -s inetd
0513-095 The request for subsystem refresh was completed successfully.
(root@nimsuma) />
Estado del tftp:
(root@nimsuma) /> echo "status"|tftp 0
tftp> Connected to 0.
Mode: netascii Verbose: off Tracing: off
Max-timeout: 25 seconds
tftp> (root@nimsuma) />
Nota: La fuente de los pasos fue el redbook NIM AtoZ y no encontré necesario configurar alguna cosa más.
Configurar alguna máquina para ver que ande todo ok:
Se intenta agregar un servidor como cliente de nimsuma, pero que ya era cliente de otro NIM.
Command: failed stdout: yes stderr: no
Before command completion, additional instructions may appear below.
0042-041 niminit: /etc/niminfo already exists
Solución:
Elimine el cliente sapnodo2d desde nimserver
# smitty nim
Perform NIM Administration Tasks
Manage Machines
Remove a Machine
Select Machine
Removí el archivo /etc/niminfo de sapnodo2d
# rm /etc/niminfo
Nuevo mensaje:
0042-291 NIMkid: The NIM master is not currently allowing registration of NIM clients. Please seek assistance from your network install administrator.
Modifique la propiedad Allow Machines to Register Themselves as Clients en nimsuma (nuestro NIM server)
#smitty nim
Configure NIM Environment Options
Manage Client Registration
Agregue sapnodo2d como cliente nimsuma, intente acceder a un lpp_source (lpp_openssh) creado previamente y funciono sin problemas.