viernes, 17 de septiembre de 2010

Configurando SNMP en Solaris 10

En la maquina Bksrv01:

Editamos el archivo
#vi /etc/sma/snmp/snmpd.conf

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
# arguments: community [default|hostname|network/bits] [oid]

rocommunity G35T10N_DCO8 172.28.255.127
rocommunity G35T10N_D4T4C3NT3R 172.28.255.127
rocommunity G35T10N_DCO8 172.28.255.113
rocommunity G35T10N_D4T4C3NT3R 172.28.255.113
rocommunity public 127.0.0.1
#rocommunity public
rocommunity G3ST10N_D4T4C3NT3R 172.28.255.127

Verificamos el servicio:

root@masterserver # /etc/init.d/init.sma status
STATE STIME FMRI
online 10:03:20 svc:/application/management/sma:default

Bajamos el servicio:

root@masterserver # /etc/init.d/init.sma stop
STATE STIME FMRI
disable 10:03:20 svc:/application/management/sma:default

Subimos el servicio:
root@masterserver # /etc/init.d/init.sma start
STATE STIME FMRI
online 10:03:20 svc:/application/management/sma:default

Problemas Memory Oracle en Solaris x86

Displaying and Modifying Resource Control Settings on Solaris 10

On Solaris 10, use the following procedure to display the current value specified for resource controls, and to change them if necessary:

  1. To display the current values of the resource control, enter the following commands:

    $ id -p // to verify the project id uid=100(oracle) gid=100(dba) projid=1 (group.dba) $ prctl -n project.max-shm-memory -i project group.dba $ prctl -n project.max-sem-ids -i project group.dba 
  2. If you must change any of the current values, then:

    1. To modify the value of max-shm-memory to 6 GB:

      # prctl -n project.max-shm-memory -v 6gb -r -i project group.dba 
    2. To modify the value of max-sem-ids to 256:

      # prctl -n project.max-sem-ids -v 256 -r -i project group.dba 

martes, 14 de septiembre de 2010

Configurar IPMP Solaris 10

1) Configurar el archivo /etc/hosts en el nombre de las dos interfaces e1000g0 y e1000g1

172.28.1.49 sg-invmanu-ccol01vi //Esta es la ip virtual que pinponeara
172.28.1.50 sg-invmanu-ccol01-e1000g0 //ip para la interfaz e1000g0
172.28.1.51 sg-invmanu-ccol01-e1000g1 //ip para la interfaz e1000g1

2) Se deben configurar las ip's en las dos targetas de red que seran utilizadas para ipmp:

#ifconfig e1000g0 172.28.1.50 netmask 255.255.255.0 up
#ifconfig e1000g1 172.28.1.51 netmask 255.255.255.0 up

3) Incluir las dos interfaces de red en el grupo de ipmp que deseo:

# ifconfig e1000g0 group ipmp0
# ifconfig e1000g1 group ipmp0

4) Editar los siguientes archivos con la siguiente informacion:
#vi /etc/hostname.e1000g0
sg-invmanu-ccol01-e1000g0 deprecated -failover netmask + broadcast + group ipmp0 up \
addif sg-invmanu-ccol01vi netmask + broadcast + up

#vi /etc/hostname.e1000g1
sg-invmanu-ccol01-e1000g1 deprecated -failover netmask + broadcast + group ipmp0 up

5) Aplicar la configuracion encontrada en los archivos a las dos interfaces:
#ifconfig e1000g0 sg-invmanu-ccol01-e1000g0 deprecated -failover netmask + broadcast + group ipmp0 up addif sg-invmanu-ccol01vi netmask + broadcast + up

#ifconfig e1000g1 sg-invmanu-ccol01-e1000g1 deprecated -failover netmask + broadcast + group service0 up

6) Validar que las interfaces e1000g0 y e1000g1 se encuentren con la configuracion identificada en los archivos y que la interfaz virtual tambien se encuentre arriba:

e1000g0: flags=9040843 mtu 1500 index 3
inet 172.28.1.50 netmask ffffff00 broadcast 172.28.1.255
groupname ipmp0
ether 0:17:8:7d:67:9c
e1000g0:1: flags=1000843 mtu 1500 index 3
inet 172.28.1.49 netmask ffffff00 broadcast 172.28.1.255
e1000g1: flags=9040843 mtu 1500 index 4
inet 172.28.1.51 netmask ffffff00 broadcast 172.28.1.255
groupname ipmp0
ether 0:17:8:7d:67:9d