Buscador

martes, 11 de enero de 2011

Actualizacion de VIO's server AIX

A la hora de actualizar un VIO's o AIX con el NIM tenemos que tener en cuenta que
tenemos que generar dos objetos: el spot y las fuentes. Las fuentes no es más que
la copia de los rpm, el spot es la instalacion de los paquetes.

Para ello tendremos que:

-lsnim (vemos todos)

**installios_lpp_source     resources       lpp_source
**installios_spot           resources       spot

VIOServer1_CPD2           machines        standalone
VIOServer1_CPD1           machines        standalone


-lsnim -l (los vemos en detalle)

VIOServer1_CPD1:
   class          = machines
   type           = standalone
   connect        = shell
   platform       = chrp
   netboot_kernel = 64
   if1            = ent-Network1 VIOServer1_CPD1 0
   cable_type1    = bnc
   Cstate         = preparado para una operación NIM
   prev_state     = se está realizando la operación alt_disk_mig
   Mstate         = en ejecución actualmente
   **lpp_source     = installios_lpp_source
   **spot           = installios_spot

   cpuid          = 00C5F35D4C00
   control        = master
   Cstate_result  = reset

-lsnim -l installios_lpp_source (del recurso en si)
installios_lpp_source:
   class       = resources
   type        = lpp_source
   arch        = power
   Rstate      = disponible para su uso
   prev_state  = no disponible para su uso
   ***location    = /export/installios/lpp_source/installios_lpp_source
   simages     = yes
   alloc_count = 2
   server      = master


  • -Si se queda la instalacion pillada:

nim -o reset -a force=yes VIOServer1_CPD2


  • -Por otro lado tendremos que habilitar el rsh, ....

Hacemos lo mismo para los servidores AIX, salvo con la diferencia que tenemos que
poner el:

- cat /etc/security/user
 
  root:
#       login = false
#       rlogin = false
        su = false
        admin = true
        SYSTEM = "compat"
        registry = files
        loginretries = 0
        account_locked = false

- cat /etc/inetd.conf
ftp     stream  tcp6    nowait  root    /usr/sbin/ftpd  ftpd
telnet  stream  tcp6    nowait  root    /usr/sbin/telnetd       telnetd -a
shell   stream  tcp6    nowait  root    /usr/sbin/rshd  rshd
kshell  stream  tcp     nowait  root    /usr/sbin/krshd krshd
login   stream  tcp6    nowait  root    /usr/sbin/rlogind       rlogind
klogin  stream  tcp     nowait  root    /usr/sbin/krlogind      krlogind

stopsrc -s inetd
startsrc -s inetd


# cd /
# cat .rhosts

aixpruebas

# cat /etc/hosts
# @(#)47        1.1  src/bos/usr/sbin/netstart/hosts, cmdnet, bos530 7/24/91 10:00:46
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# bos530 src/bos/usr/sbin/netstart/hosts 1.1
#
# Licensed Materials - Property of IBM
#
# (C) COPYRIGHT International Business Machines Corp. 1985,1989
# All Rights Reserved
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
# IBM_PROLOG_END_TAG
#
# COMPONENT_NAME: TCPIP hosts
#
# FUNCTIONS: loopback
#
# ORIGINS: 26  27
#
# (C) COPYRIGHT International Business Machines Corp. 1985, 1989
# All Rights Reserved
# Licensed Materials - Property of IBM
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
#  /etc/hosts
#
# This file contains the hostnames and their address for hosts in the
# network.  This file is used to resolve a hostname into an Internet
# address.
#
# At minimum, this file must contain the name and address for each
# device defined for TCP in your /etc/net file.  It may also contain
# entries for well-known (reserved) names such as timeserver
# and printserver as well as any other host name and address.
#
# The format of this file is:
# Internet Address      Hostname        # Comments
# Items are separated by any number of blanks and/or tabs.  A '#'
# indicates the beginning of a comment; characters up to the end of the
# line are not interpreted by routines which search this file.  Blank
# lines are allowed.
# Internet Address      Hostname        # Comments
# 192.9.200.1           net0sample      # ethernet name/address
# 128.100.0.1           token0sample    # token ring name/address
# 10.2.0.2              x25sample       # x.25 name/address
127.0.0.1               loopback localhost      # loopback (lo0) name/address
10.0.1.17       VIOServer1_CPD1 VIOSERVER1_PD
10.0.1.18       VIOSERVER2_PD
128.1.8.241     nim
128.1.0.81      aixpruebas

  • -Luego hacemos lo mismo que en los servidores AIX's.

  • Con el comando lsmap -all vemos las maquinas afectadas. Conectandonos a las maquinas y haciendo un
  • lspath vemos los caminos.

  • Ahora tendremos que reinciar el vio, luego actualizar de 2.1.0 a 2.1.3, p.e.
Para ello montamos el disco por nfs en /mnt.
updateios -commit
updateios -dev /mnt -install -accept

No hay comentarios:

Publicar un comentario