quinta-feira, 4 de outubro de 2012

Technote de Archecker ::: CRITICAL ERROR: Unable to initialize resources

Depois de algum tempo alocado no cliente, finalmente consegui terminar e pedir aprovação e publicação deste Technote. Ainda faltam 8...rs!

Escrevi o artigo baseado no atendimento a um cliente, em Agosto passado (2012).
Depois de muito pesquisar nas bases de conhecimento IBM, cheguei à conclusão de que ainda estamos bem carentes de material do Archecker. Neste caso o cliente não conseguia restaurar e então validar uma imagem de backup.

Não sei se o link já está disponivel na internet, então ae vai o conteúdo:
http://www-01.ibm.com/support/docview.wss?uid=swg21609172

Technote (troubleshooting)


Problem(Abstract)

When using Archecker to validate an IBM® Informix® archive backup image, the following error message: "Unable to initialize resources" is raised. This article describes the common causes and solutions for this error.

Symptom

Starting the archive backup validation process leads to the following output:
$ archecker -tvs
IBM Informix Dynamic Server Version 11.50.FC9
Program Name:   archecker
Version:        8.0
Released:       2011-07-25 22:02:01
CSDK:           IBM Informix CSDK Version 3.50
ESQL:           IBM Informix-ESQL Version 3.50.FC4
Compiled:       07/25/11 22:02  on Linux 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:56:28 EST 2006

AC_STORAGE               /arc_ifmx
AC_MSGPATH               /tmp/ac_msg.log
AC_VERBOSE               on
AC_TAPEDEV               /informix/bkpdata/
AC_TAPEBLOCK             32 KB
AC_LTAPEDEV              /informix/bkplogs/
AC_LTAPEBLOCK            32 KB
AC_TIMEOUT               300
AC_SESSION
CRITICAL ERROR: Unable to initialize resources.

Cause

The path /arc_ifmx set in the AC_STORAGE ac_config file has no proper permissions set so user Informix can read/write Archecker temporary files.

Diagnosing the problem

The ac_msg.log file provides more details about the cause of the problem. Most of the times the following error can be found:

ERROR: Error(2) Unable to create directory /arc_ifmx/SAVE

ERROR: Unable to initialize the save page section.
CRITICAL ERROR: Unable to initialize resources.


STATUS: archecker completed Setup pid = 17911 exit code: 3

Depending on the kind of syntax error, the following message may also be found in the ac_msg.log:

ERROR: Error(13) Invalid filename /tmp/SAVE/TP.0_1

ERROR: Failed to save page(0_1) in /tmp/SAVE/TP.0_1
ERROR: Unable to init for restart feature.
ERROR: Unable to initialize the restartable restore
ERROR: Device type not set properly
ERROR: No device driver selected.
STATUS: Scan FAILED
ERROR: Archive Physical Validation Failed.

The AC_STORAGE ac_config variable path do not have proper permissions:

drwxr-xr-x   2 root     root      4096 Aug 24 08:18 arc_ifmx

Or even, when trying to use archecker '-d' flag to clean old temporary directories CHUNK_BM, INFO and SAVE with wrong permissions:

dr--r----- 2 root     informix    4096 Aug 17 14:44 CHUNK_BM
dr--r----- 2 root     informix    4096 Aug 24 08:11 INFO
dr--r----- 2 root     informix   20480 Aug 24 08:11 SAVE

Resolving the problem

Fix the AC_STORAGE path permissions properly.

STEPS

1. Add Read/Write/Execution permissions to others in the AC_STORAGE destination path directory:

$ chmod o+rwx arc_ifmx

or

$ chmod 777 arc_ifmx

2. Permissions should look like this:

$ ls -ltr
drw-rw-rwx   5 root     root      4096 Sep 26 08:03 arc_ifmx

Críticas são bem-vindas.
Abraços pessoal.
FFO

3 comentários:

Este comentário foi removido pelo autor.

Quem mexe com informix realmente esta carente de muitas coisas, o forum internacional do informix http://www.iiug.org é feio (vamos falar sério) e quem é novato em informix se perder facil nele, eu fiquei um bom tempo para entender como funcionava o login nele, o forum brasileiro http://www.briug.org/ nunca tem ninguém online e as atualização de dicas para informix (para a língua portuguesa) estão bem devagar, somente uma pessoa cria material novo lá. Vejo foruns de jogos (RPG) que tem mais tutoriais e gente participando que essas duas comunidades.

Um cara que acompanho e fico impressionado como ele curte o Informix é o http://informix-technology.blogspot.com.br/ - este cara é impressionante;

Oi Queen.
Não entendi bem seu comentário, mas respeito sua opinião.
Infelizmente não tenho tanto tempo como o Fernando Nunes (blog que vc informou), visto que trabalho no suporte Informix da IBM, e a volumetria de chamados é bem agressiva.

Se houver algo que eu possa lhe ajudar, me avise!
Abraços.
FFO

Postar um comentário