Informix no crea el dbspace rootdbs

Hola, es la primera vez que me toda pelear con esto. Resulta que estoy tratando de iniciar la instancia por primera vez y llego hasta acá, alguna idea?



# oninit -iv

This action will initialize IBM Informix Dynamic Server;
any existing IBM Informix Dynamic Server databases will NOT be accessible -
Do you wish to continue (y/n)? y
17:31:31  IBM Informix Dynamic Server Started.
17:31:31  Warning: The IBM IDS Developer Edition license restriction limits
17:31:31  the total shared memory size for this server to 1048576 KB.
17:31:31  The maximum allowable shared memory was reset to this size to start the database server.

Tue Mar  3 17:31:33 2015

17:31:33  Event alarms enabled.  ALARMPROG = '/opt/IBM/informix/etc/no_log.sh'
17:31:33  Dynamically allocated new virtual shared memory segment (size 8824KB)
17:31:33  Memory sizes:resident:20272 KB, virtual:17016 KB, SHMTOTAL:1048576 KB
17:31:33  Dynamically allocated new virtual shared memory segment (size 8192KB)
17:31:33  Memory sizes:resident:20272 KB, virtual:25208 KB, SHMTOTAL:1048576 KB
17:31:33  Dynamically allocated new virtual shared memory segment (size 8192KB)
17:31:33  Memory sizes:resident:20272 KB, virtual:33400 KB, SHMTOTAL:1048576 KB
17:31:33  Dynamically allocated new virtual shared memory segment (size 8192KB)
17:31:33  Memory sizes:resident:20272 KB, virtual:41592 KB, SHMTOTAL:1048576 KB
17:31:33  Booting Language <c> from module <>
17:31:33  Loading Module <CNULL>
17:31:33  Booting Language <builtin> from module <>
17:31:33  Loading Module <BUILTINNULL>

Hola

En el log que mandaste, no llego a ver si la instancia de Informix finalmente levanta o no. Podrias ejecutar un onstat -a y adjuntar la salida ?

Al parecer tenes un problema con el tamaño de los segmentos de shared memory. Luego de hacer el oninit -i tenes que crear los dbspaces de datos y temporales. Y estaria bueno si me pasas el archivo onconfig asi le damos una revisada a los parametros
Si aun necesitas ayuda para completar la configuracion de la instancia Informix avisame por aca y lo seguimos

saludos

Hola, la instancia no levanta. Solo llega hasta el “Loading Module ”

este es el onconfig.ol_enfermeria


ROOTNAME rootdbs
ROOTPATH $INFORMIXDIR/dbspaces/rootdbs_dat.000
ROOTSIZE 2000000
DBSPACETEMP temporal
DBSERVERNAME ol_enfermeria
DUMPDIR $INFORMIXDIR/tmp
SHMVIRTSIZE = 50000
NETTYPE soctcp, 5, 50, NET
LOCKS 120000
TAPEDEV /dev/null
LTAPEDEV $INFORMIXDIR/ifxbkp/ifxbkp.bak
LTAPESIZE 400264

y esta la salida de onstat -a


shared memory not initialized for INFORMIXSERVER 'ol_enfermeria'

Message Log File: 

Configuration File: /opt/IBM/informix/etc/onconfig.ol_enfermeria
ROOTNAME rootdbs
ROOTPATH $INFORMIXDIR/dbspaces/rootdbs_dat.000
ROOTSIZE 2000000
DBSPACETEMP temporal
DBSERVERNAME ol_enfermeria
DUMPDIR $INFORMIXDIR/tmp
SHMVIRTSIZE = 50000
NETTYPE soctcp, 5, 50, NET
LOCKS 120000
TAPEDEV /dev/null
LTAPEDEV $INFORMIXDIR/ifxbkp/ifxbkp.bak
LTAPESIZE 400264

Hola Betina,

Si podes mandame el onconfig.ol_enfermeria

Mientras tanto proba de bajar los parametros del onconfig, que parece que estan un poco altos y exceden el limite de shared memory de la edicion Gratuita que estas usando. Por eso no levanta el informix

proba con:
BUFFERS 2000
LOCKS 8000
SHMVIRTSIZE 20000
SHMADD 8000

Luego ejecuta el oninit -iv

como no se que version de Informix tenes, quizas estos parametros no te aparezcan, busca algo similar

Hola Ignacio, buen dia, el informix es 11.7

este es el contenido de onconfig.ol_enfermeria


ROOTNAME rootdbs
ROOTPATH $INFORMIXDIR/dbspaces/rootdbs_dat.000
ROOTSIZE 2000000
DBSPACETEMP temporal
DBSERVERNAME ol_enfermeria
DUMPDIR $INFORMIXDIR/tmp
SHMVIRTSIZE 50000
NETTYPE soctcp, 5, 50, NET
LOCKS 120000
TAPEDEV /dev/null
LTAPEDEV $INFORMIXDIR/ifxbkp/ifxbkp.bak
LTAPESIZE 400264

luego de hacer los cambios sugeridos el oninit -iv tira esto


This action will initialize IBM Informix Dynamic Server;
any existing IBM Informix Dynamic Server databases will NOT be accessible -
Do you wish to continue (y/n)? y
14:10:06  IBM Informix Dynamic Server Started.
14:10:06  Warning: The IBM IDS Developer Edition license restriction limits
14:10:06  the total shared memory size for this server to 1048576 KB.
14:10:06  The maximum allowable shared memory was reset to this size
to start the database server.
 
Thu Mar  5 14:10:07 2015
 
14:10:07  Event alarms enabled.  ALARMPROG = '/opt/IBM/informix/etc/no_log.sh'
14:10:07  Dynamically allocated new virtual shared memory segment (size 8000KB)
14:10:07  Memory sizes:resident:7552 KB, virtual:28000 KB, SHMTOTAL:1048576 KB
14:10:07  Dynamically allocated new virtual shared memory segment (size 8000KB)
14:10:07  Memory sizes:resident:7552 KB, virtual:36000 KB, SHMTOTAL:1048576 KB
14:10:07  Booting Language <c> from module <>
14:10:07  Loading Module <CNULL>
14:10:07  Booting Language <builtin> from module <>
14:10:07  Loading Module <BUILTINNULL>

y este es el contenido de startup.ol_enfermeria


<PGI> 1811
Reading configuration file
'/opt/IBM/informix/etc/onconfig.ol_enfermeria'...succeeded
Creating /INFORMIXTMP/.infxdirs...succeeded
Checking config parameters...succeeded
Allocating and attaching to shared memory...succeeded
Creating resident pool 3000 kbytes...succeeded
Allocating 4016 kbytes for buffer pool of 2K page size...succeeded
Creating infos file "/opt/IBM/informix/etc/.infos.ol_enfermeria"...succeeded
Linking conf file "/opt/IBM/informix/etc/.conf.ol_enfermeria"...succeeded
Initializing rhead structure...succeeded
Writing to infos file...succeeded
Initialization of Encryption...succeeded
Initializing ASF...succeeded
Initializing Dictionary Cache and SPL Routine Cache...succeeded
Bringing up ADM VP...succeeded
Creating VP classes...succeeded
Forking main_loop thread...succeeded
Initializing DR structures...succeeded
Forking 1 'soctcp' listener threads...succeeded
Starting tracing...succeeded
Initializing 1 flushers...succeeded
FAILED
<RET>175

Saludos

El próximo paso es inicializar los Logical Logs. Pareciera que aca esta el problema

Que valores tenes en:

LOGFILES
LOGSIZE
LOGMAX

Aunque esta version de informix que tienen creo los logical logs se van creando a medida que se necesitan y no se si estan estos parámetros para configurar en el archivo onconfig.

Los valores que tengo son los siguientes:

LOGFILES 6
LOGSIZE 10000
LOGMAX No está disponible

Hola Betina

Es un equipo de prueba?
Podrias adjuntarme en el foro los siguientes archivos
1- onconfig.ol_enfermeria
2- online.log
3- con el usuario que ejecutes el oninit -iv ejecuta el comando"env > env.txt" y adjunta el archivo env.txt
4- con el usuario que ejecutes el oninit -iv ejecuta el comando"onstat -a > onstat_a.txt" y adjunta el archivo onstat_a.txt

saludos
Ignacio

saludos
Ignacio

Ignacio el servidor lo estamos configurando para que funcione como server de producción

1- onconfig.ol_enfermeria

BUFFERS 2000
LOCKS 8000
SHMVIRTSIZE 20000
SHMADD 8000
ROOTNAME rootdbs
ROOTPATH $INFORMIXDIR/dbspaces/rootdbs_dat.000
ROOTSIZE 2000000
DBSPACETEMP temporal
DBSERVERNAME ol_enfermeria
DUMPDIR $INFORMIXDIR/tmp
NETTYPE soctcp, 5, 50, NET
TAPEDEV /dev/null
LTAPEDEV $INFORMIXDIR/ifxbkp/ifxbkp.bak
LTAPESIZE 400264

2- online.log

está completamente vacío

3- con el usuario que ejecutes el oninit -iv ejecuta el comando"env > env.txt" y adjunta el archivo env.txt

LC_PAPER=es_AR.UTF-8
LC_ADDRESS=es_AR.UTF-8
HOSTNAME=guarani.escenf.unam.edu.ar
LC_MONETARY=es_AR.UTF-8
SELINUX_ROLE_REQUESTED=
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
INFORMIXDIR=/opt/IBM/informix
DBSERVERNAME=ol_enfermeria
SELINUX_USE_CURRENT_RANGE=
LC_NUMERIC=es_AR.UTF-8
SSH_TTY=/dev/pts/0
USER=root
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arj=01;31:.taz=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.zip=01;31:.z=01;31:.Z=01;31:.dz=01;31:.gz=01;31:.lz=01;31:.xz=01;31:.bz2=01;31:.tbz=01;31:.tbz2=01;31:.bz=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.rar=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.jpg=01;35:.jpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.axv=01;35:.anx=01;35:.ogv=01;35:.ogx=01;35:.aac=01;36:.au=01;36:.flac=01;36:.mid=01;36:.midi=01;36:.mka=01;36:.mp3=01;36:.mpc=01;36:.ogg=01;36:.ra=01;36:.wav=01;36:.axa=01;36:.oga=01;36:.spx=01;36:.xspf=01;36:
LC_TELEPHONE=es_AR.UTF-8
ONCONFIG=onconfig.ol_enfermeria
MAIL=/var/spool/mail/root
PATH=/opt/IBM/informix/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
LC_IDENTIFICATION=es_AR.UTF-8
PWD=/opt/IBM/informix/tmp
LANG=es_AR.UTF-8
LC_MEASUREMENT=es_AR.UTF-8
SELINUX_LEVEL_REQUESTED=
HISTCONTROL=ignoredups
INFORMIXSERVER=ol_enfermeria
SHLVL=1
HOME=/root
LOGNAME=root
SSH_CONNECTION=192.168.0.1 38065 192.168.0.10 22
LESSOPEN=||/usr/bin/lesspipe.sh %s
LC_TIME=es_AR.UTF-8
G_BROKEN_FILENAMES=1
LC_NAME=es_AR.UTF-8
_=/bin/env
OLDPWD=/opt/IBM/informix/logs

4- con el usuario que ejecutes el oninit -iv ejecuta el comando"onstat -a > onstat_a.txt" y adjunta el archivo onstat_a.txt

shared memory not initialized for INFORMIXSERVER ‘ol_enfermeria’

Message Log File:

Configuration File: /opt/IBM/informix/etc/onconfig.ol_enfermeria
BUFFERS 2000
LOCKS 8000
SHMVIRTSIZE 20000
SHMADD 8000
ROOTNAME rootdbs
ROOTPATH $INFORMIXDIR/dbspaces/rootdbs_dat.000
ROOTSIZE 2000000
DBSPACETEMP temporal
DBSERVERNAME ol_enfermeria
DUMPDIR $INFORMIXDIR/tmp
NETTYPE soctcp, 5, 50, NET
TAPEDEV /dev/null
LTAPEDEV $INFORMIXDIR/ifxbkp/ifxbkp.bak
LTAPESIZE 400264

Betina:

Ya en varios mensajes que te piden el archivo de configuración (onconfig.nombredela instancia) mencionas que tu onconfig es:

1- onconfig.ol_enfermeria

BUFFERS 2000
LOCKS 8000
SHMVIRTSIZE 20000
SHMADD 8000
ROOTNAME rootdbs
ROOTPATH $INFORMIXDIR/dbspaces/rootdbs_dat.000
ROOTSIZE 2000000
DBSPACETEMP temporal
DBSERVERNAME ol_enfermeria
DUMPDIR $INFORMIXDIR/tmp
NETTYPE soctcp, 5, 50, NET
TAPEDEV /dev/null
LTAPEDEV $INFORMIXDIR/ifxbkp/ifxbkp.bak
LTAPESIZE 400264

Pues bien, eso no es un archivo de configuración típico de Informix, me parece que te estás confundiendo. Salvo que lo hayan editado y le hayan metido una tijera fenomenal, eliminando comentarios y un montón de cosas y dejando solo algunos de los valores que deben estar, con lo cual hay un riesgo alto que el motor nunca arranque.

Te adjunto un par de ejemplos de archivos de configuración para que veas que es lo que se te está requiriendo, y te copio las primeras 100 lineas de uno para que veas la enorme diferencia que hay, que desconozco el motivo.

#**************************************************************************

INFORMIX SOFTWARE, INC.

Title: onconfig.std

Description: Informix Dynamic Server Configuration Parameters

#**************************************************************************

Root Dbspace Configuration

ROOTNAME rootdbs # Root dbspace name
ROOTPATH C:\IFMXDATA\ol_siuserv2\rootdbs_dat.000
# Path for device containing root dbspace
ROOTOFFSET 0 # Offset of root dbspace into device (Kbytes)
ROOTSIZE 400000 # Size of root dbspace (Kbytes)

Disk Mirroring Configuration Parameters

MIRROR 0 # Mirroring flag (Yes = 1, No = 0)
MIRRORPATH # Path for device containing mirrored root
MIRROROFFSET 0 # Offset into mirrored device (Kbytes)

Physical Log Configuration

PHYSDBS dbs_logs # Location (dbspace) of physical log
PHYSFILE 50000 # Physical log file size (Kbytes)

Logical Log Configuration

LOGFILES 40 # Number of logical log files
LOGSIZE 5000 # Logical log size (Kbytes)
LOG_BACKUP_MODE MANUAL # Logical log backup mode (MANUAL, CONT)

Diagnostics

MSGPATH C:\informix\ol_siuserv2.log # System message log file path
CONSOLE C:\informix\conol_siuserv2.log # System console message path
ALARMPROGRAM C:\informix\etc\log_full.bat # Alarm program path
TBLSPACE_STATS 1 # Maintain tblspace statistics

System Diagnostic Script.

SYSALARMPROGRAM - Full path of the system diagnostic script (e.g.

c:\informix\etc\evidence.bat.) Set this parameter

if you want a different Diagnostic Script than

{INFORMIXDIR}\etc\evidence.bat, which is default.

System Archive Tape Device

#TAPEDEV \.\TAPE0 # Tape device path
#TAPEDEV NUL # Tape device path
TAPEDEV C:\IFMXBKUP\backup.bak # Tape device path
TAPEBLK 16 # Tape block size (Kbytes)
TAPESIZE 1024000 # Maximum amount of data to put on tape (Kbytes)

Log Archive Tape Device

#LTAPEDEV \.\TAPE1 # Log tape device path
LTAPEDEV C:\IFMXBKUP\sallog.bak # Log tape device path
#LTAPEDEV NUL # Log tape device path
LTAPEBLK 16 # Log tape block size (Kbytes)
LTAPESIZE 1024000 # Max amount of data to put on log tape (Kbytes)

Optical

STAGEBLOB # Informix Dynamic Server/Optical staging area
OPTICAL_LIB_PATH # Location of Optical Subsystem driver DLL

System Configuration

SERVERNUM 0 # Unique id corresponding to a server instance
DBSERVERNAME ol_siuserv2 # Name of default Dynamic Server
DBSERVERALIASES # List of alternate dbservernames
NETTYPE soctcp,1,NET # Override sqlhosts nettype parameters
DEADLOCK_TIMEOUT 60 # Max time to wait of lock in distributed env.
RESIDENT 0 # Forced residency flag (Yes = 1, No = 0)

MULTIPROCESSOR 0 # 0 for single-processor, 1 for multi-processor
NUMCPUVPS 1 # Number of user (cpu) vps
SINGLE_CPU_VP 0 # If non-zero, limit number of cpu vps to one

NOAGE 0 # Process aging
AFF_SPROC 0 # Affinity start processor
AFF_NPROCS 0 # Affinity number of processors

Shared Memory Parameters

LOCKS 50000 # Maximum number of locks
BUFFERS 3000 # Maximum number of shared buffers
NUMAIOVPS 1 # Number of IO vps
PHYSBUFF 32 # Physical log buffer size (Kbytes)
LOGBUFF 32 # Logical log buffer size (Kbytes)
LOGSMAX 60 # Maximum number of logical log files
CLEANERS 1 # Number of buffer cleaner processes
SHMBASE 0xc000000 # Shared memory base address
SHMVIRTSIZE 16384 # initial virtual shared memory segment size
SHMADD 8192 # Size of new shared memory segments (Kbytes)
SHMTOTAL 0 # Total shared memory (Kbytes). 0=>unlimited
CKPTINTVL 300 # Check point interval (in sec)
LRUS 8 # Number of LRU queues
LRU_MAX_DIRTY 60 # LRU percent dirty begin cleaning limit
LRU_MIN_DIRTY 50 # LRU percent dirty end cleaning limit
LTXHWM 50 # Long transaction high water mark percentage
LTXEHWM 60 # Long transaction high water mark (exclusive)
TXTIMEOUT 0x12c # Transaction timeout (in sec)
STACKSIZE 64 # Stack size (Kbytes)

Saludos

Gustavo


onconfig.rar (8.46 KB)

Betina:

Los 2 anteriores eran ONCONFIG de motores 9.21 en Windows. Aqui te adjunto uno de un motor 12.10 sobre Linux.

Saludos

Gustavo


onconfig.rar (17.9 KB)

Gracias por la aclaración Gustavo, estábamos siguiendo una “receta” que nos pasaron desde otra unidad académica.

ahora sí adjunto el onconfig._enfermeria


onconfig._enfermeria.zip (16.1 KB)

Daniel / Betina:

Faltaría ver el log del motor, archivo online.log, paraver que está pasando.

Pero en el onconfig veo que tienen declarado un dbspace temporal, que no existe porque ni siquiera levanta el motor. Yo eliminaría la declaración del dbspace temporal hasta que el motor levante y puedan generar el dbspace respectivo.

Por otra parte, el tamaño del root dbspace es de 2 GB, en consecuencia la inicialización del motor va a demorar bastante hasta que genere ese dbspace. Si pueden monitorear en otra ventana cuando se está inicializando el motor verán que el tamaño del archivo asignado al rootdbspace va creciendo a medida que el motor lo va inicializando para luego generar las tablas propias del motor.

Por otra parte, para inicializar el motor lo tienen que hacer con el usuario Informix y parece que lo están haciendo con el usuario root.

Traten de ejecutar el comando oninit -i -v (el parametro -i es para inicializar el motor, el parámetro -v es para que lo haga en modo verbose, que les irá diciendo que es lo que está haciendo en cada momento), luego de modificar el onconfig sacando el dbspace temporal y veamos que mensajes da por la pantalla y veamos también el contenido del archivo online.log (log del motor) para vert que sucede y cual es el problema.

Saludos

Gustavo