1. Por que configurar IPMP?
El proposito es mantener el Server siempre con conectividad y
reducir el punto de fallo en caso de que alguna de las tarjetas de red
fallen. El failover es transparente al momento del fallo para el
usuario el acceso al Server se mantiene con la misma IP. Las
caracteristicas de IPMP son:
Failure
Detection
Repair
Detection
Outbound Load Spreading
2. Que necesito para IPMP?
- Como buena practica tener 2 network card en el Server ambas
NICs conectadas en diferentes puertos del switch.
- Conocimiento de los terminos manejados
TIP: IPMP, es necesario tener acceso
remoto via consola en caso de perder la comunicacion con el Server.
IP Network Multipathing Components
En la siguiente tabla muestra y describe los componente que
componen el IP network multipathing.
Table IP Network Multipathing Components
Component
|
Description
|
IP Link
|
A communication facility or medium over which nodes can
communicate at the link layer. The link layer is the layer immediately
following
IPv4 or IPv6. Examples include Ethernets, simple or bridged, or ATM
networks.
One or more IPv4 subnet numbers or prefixes are assigned to an IP link.
A
subnet number or prefix cannot be assigned to more than one IP link. In
ATM
LANE, an IP link is a single emulated LAN. When using ARP, the scope of
the
ARP protocol is a single IP link.
|
Network Interface Card (NIC)
|
Network adapter that is either internal
or a separate card that serves as an interface to a link.
|
Physical interface
|
A node's attachment to a link. This
attachment is often implemented as a device driver plus a network
adapter.
Some network adapters can have multiple points of attachment, for
example,
qfe. The usage of Network adapter in this document refers
to a "Single Point of Attachment."
|
Physical interface group
|
The set of physical interfaces on a
system that is connected to the same link. The set is identified by
assigning
the same (non-null) character string name to all the physical
interfaces in
the group.
|
Physical interface group name
|
A name that is assigned
to a physical interface that identifies the group. The name is local to
a
system. Multiple physical interfaces, sharing the same group name, form
a
physical interface group.
|
Failure detection
|
The process of detecting when a NIC
or the path from the NIC to a layer 3 device no longer works.
|
Repair detection
|
The process of detecting when a NIC
or the path from the NIC to some layer 3 device starts operating
correctly
after a failure.
|
Failover
|
The process of switching network access from
a failed interface to a good physical interface. Network access
includes IPv4
unicast, multicast, and broadcast traffic, as well as IPv6 unicast and
multicast
traffic.
|
Failback
|
The process of switching back network access
to an interface that is detected to have been repaired.
|
Standby Interface
|
A physical interface that is not used
to carry data traffic unless some other physical interface in the group
has
failed.
|
3. Configurando IPMP
En el PROM level, verifica si la
variable local-mac-address? esta seteada
a true, setearla como:
ok > setenv local-mac-address? true
Si el sistema operativo se encuentra en run level 3, usa el
eeprom command:
host # eeprom local-mac-address?=true
Si elegiste hacer el cambio con el comando eeprom en el OS level
3, debes reinicar el Server para continuar.
4. Si no cuentas con el binario de in.mpathd Multipathing daemon,
instalar el SUNWcsr (Core Solaris) pkg file. Este demonio detecta
fallosy repara anomalia, envia un ioctl que hace el failover o
failback. El Internet Protocol que implementa el ioctl hace que la
conectividad, failover sea transparente y automatico.
5. Verifica el parametro de FAILURE_DETECTION_TIME en
el configuration file
/etc/default/mpathd que
tenga 10000 milliseconds
esto quiere decir que cada 10seg en caso de haber algun problema con la
conectividad el failover ocurrira.
6. Configurando un Multipathing Interface Group con 2
Interfases.
En el /etc/hosts file, anexar la
informacion de "floating IP" (The one everyone
else will use to connect to your system) and the other two physical
IP's. Esto no es necesario documentar pero si recomendable en
caso de olvidar el uso de estas IPs.
Ex:
10.10.10.1 hostname-phys1
10.10.10.2 hostname-phys2
10.10.10.3 logical-virtual-1
10.10.10.4 logical-virtual-2
7. Modifica el /etc/hostname.* files incluyendo
la informacion correspondientepara cada NICs. Usa ifconfig
para dar de alta las interfases antes de configurar los files
/etc/hostname.interfase
Agregar como la siguiente linea en el file
/etc/hostname.hme0
hostname-phys1 group ipmpgroup
netmask + broadcast + up \
addif logical-virtual-1 deprecated
-failover netmask
+ broadcast + up
Similarmente en el file /etc/hostname.qfe0 con el mismo test group y
diferente test address
hostname-phys2 group ipmpgroup netmask + broadcast + up \
addif logical-virtual-2 deprecated
-failover netmask
+ broadcast + up
NOTE: En este ejemplo, se configuro el
/etc/hostname.qfe0 similar a /etc/hostname.hme0
(con la unica diferencia del "hostname-phys2" y "logical-virtual-2" ) las IPs son tomadas del
file /etc/hosts.
8. Agrega ambas interfases al Mulipathing
group (llamado ipmpgroup
en este caso - el nombre puede ser cualquiera).
Agrega a cada interfase fisica dentro de un multipathing
group
# ifconfig hme0 group ipmpgroup
# ifconfig qfe0 group ipmpgroup
Configurar test address para
las interfases fisicas.
# ifconfig hme0 addif
10.10.10.3 netmask +
broadcast + -failover deprecated up
# ifconfig hme0 addif
10.10.10.4 netmask +
broadcast + -failover deprecated up
9. Test: Ejecutar ping a tu "floating IP"
(10.10.10.3 en nuestro caso) y desconecta el cable fisico de alguna de
las NICs.
Con el comando if_mpadm de solaris 10 podemos ayudarnos
para el testing, si prefieres "virtualmente"
se puede realizar de la siguiente manera "if_mpadm -d
INTERFACE_NAME" esto deshabilita la interfase,esto es como
desconectar el cable fisicamente del Server. Ver if_mpadm
man page para mayor informacion de este comando.
Si estas interesado en conocer configuraciones avanzadas de IPMP,
puedes visitar Sun
Documentation Site y leer la seccion IP
Network
Multipathing Administration Guide o en Manual Solaris 10: Servicios IP:CapÃtulo 30 Introducción a IPMP
|