Server : IBM P520 64 bits, AIX 5.3.0.0
IDS V10 version 10.00.FC6
Problem :
1) We do a complete backup level0 with
ontape -s -L 0 > backup_L0
At this time, database is OK , oninit -v shows all correct
2) onmode -ky
3) cat backup_L0 | ontape -p
4) onmode -ky
5) oninit -v results on :
================ result of oninit -v
Checking group membership to determine server run mode...succeeded
Reading configuration file '/u/informix/etc/onconfig.std'...succeeded
Creating /INFORMIXTMP/.infxdirs...succeeded
Creating infos file "/u/informix/etc/.infos.agaps_ids"...succeeded
Linking conf file "/u/informix/etc/.conf.agaps_ids"...succeeded
Writing to infos file...succeeded
Checking config parameters...succeeded
Allocating and attaching to shared memory...succeeded
Creating resident pool 2480 kbytes...succeeded
Allocating 20016 kbytes for buffer pool of 4K page size...succeeded
Initializing rhead structure...succeeded
Initializing ASF...succeeded
Initializing Dictionary Cache and SPL Routine Cache...succeeded
Bringing up ADM VP...succeeded
Creating VP classes...succeeded
Onlining 0 additional cpu vps...succeeded
Onlining 2 IO vps...succeeded
Initialization of Encryption...succeeded
Forking main_loop thread...succeeded
Initializing DR structures...succeeded
Forking 1 'ipcshm' listener threads...succeeded
Forking 1 'soctcp' listener threads...succeeded
Starting tracing...succeeded
Initializing 1 flushers...succeeded
Initializing log/checkpoint information...succeeded
Opening primary chunks...succeeded
Opening mirror chunks...succeeded
Initializing dbspaces...succeeded
Validating chunks...succeeded
Initialize Async Log Flusher...succeeded
Forking btree cleaner...succeeded
Initializing DBSPACETEMP list...succeeded
Checking database partition index...FAILED
oninit : Fatal error in shared memory initialization
================================================
And we can no longer use the database !
We try the same restore many times, with different files Backup_level0 ,
on a dataspace just cleared with oninit -i
and have always the same problem.
If we reload the database with DBIMPORT , all is OK
the problem is with ontape.
DOc here attached :
onconfig
online.log
oncheck -pr before restore
onstat -D before
ps -ef
env
lsconf systeme P520
========================================= ps -ef ============================================================================
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 30 oct - 0:00 /etc/init
root 82096 1 0 30 oct - 0:20 /usr/sbin/syncd 60
root 94286 1 0 30 oct - 0:00 /usr/dt/bin/dtlogin -daemon
root 98388 180362 0 30 oct - 0:00 /usr/sbin/rsct/bin/rmcd -a IBM.LPCommands -r
root 102596 122960 0 30 oct - 0:01 /usr/dt/bin/dtsession
root 106670 94286 0 30 oct - 0:07 /usr/lpp/X11/bin/X -D /usr/lib/X11//rgb -T -force :0 -auth /var/dt/A:0-Z-3eUa
root 110732 1 0 30 oct - 0:00 /usr/lib/errdemon
root 122960 94286 0 30 oct - 0:00 dtlogin <:0> -daemon
root 127056 180362 0 30 oct - 0:00 /usr/sbin/rsct/bin/IBM.AuditRMd
root 131256 180362 0 30 oct - 0:00 /usr/sbin/inetd
root 135304 1 0 30 oct - 0:00 /usr/dt/bin/ttsession -s
root 168018 1 0 30 oct - 0:00 /usr/ccs/bin/shlap64
root 180362 1 0 30 oct - 0:00 /usr/sbin/srcmstr
root 188606 180362 0 30 oct - 0:00 /usr/sbin/rpc.lockd -d 0
root 192660 180362 0 30 oct - 0:00 /usr/sbin/portmap
root 196710 180362 0 30 oct - 0:00 /usr/sbin/hostmibd
root 200810 180362 0 30 oct - 0:00 /usr/sbin/snmpd
root 204904 180362 0 30 oct - 0:00 /usr/sbin/snmpmibd
root 209002 180362 0 30 oct - 0:00 /usr/sbin/aixmibd
root 213104 1 0 30 oct - 0:00 /usr/sbin/cron
daemon 217202 180362 0 30 oct - 0:00 /usr/sbin/rpc.statd -d 0 -t 50
root 221292 180362 0 30 oct - 0:00 /usr/sbin/syslogd
root 225390 180362 0 30 oct - 0:00 sendmail: connexions acceptées
root 229524 180362 0 30 oct - 0:00 /usr/sbin/writesrv
root 233604 180362 0 30 oct - 0:00 /usr/sbin/biod 6
root 241868 180362 0 30 oct - 0:00 /usr/sbin/qdaemon
root 245920 180362 0 30 oct - 0:00 /usr/sbin/muxatmd
root 254088 1 0 30 oct - 0:28 /usr/bin/xmwlm -L
root 258226 180362 0 30 oct - 0:00 /usr/sbin/rsct/bin/IBM.ERrmd
root 262362 1 0 30 oct - 0:00 /usr/sbin/uprintfd
root 266416 1 0 30 oct lft0 0:00 /usr/sbin/getty /dev/console
root 270570 102596 0 30 oct - 0:00 dtfile
root 274594 131256 0 30 oct - 0:00 rpc.ttdbserver 100083 1
root 278688 282782 0 30 oct - 0:00 /usr/dt/bin/dtexec -open 0 -ttprocid 2.179rxl 01 135304 1342177279 1 1 0 192.168.4.44 4_102_1 /usr/dt/bin/dtterm
root 282782 102596 0 30 oct - 0:08 dtwm
root 286874 278688 0 30 oct - 0:07 /usr/dt/bin/dtterm
root 290968 180362 0 30 oct - 0:00 /usr/sbin/rsct/bin/IBM.ServiceRMd
root 295100 180362 0 30 oct - 0:01 /usr/sbin/rsct/bin/IBM.CSMAgentRMd
root 299172 270570 0 30 oct - 0:00 dtfile
informix 303330 376850 0 30 oct pts/0 0:00 -ksh
root 307204 360522 0 19:16:38 pts/2 0:00 -ksh
root 311470 450628 0 16:52:20 - 0:00 /usr/dt/bin/dtscreen
root 323820 270570 0 30 oct - 0:00 /usr/dt/bin/dtexec -open 0 -ttprocid 3.179rxl 01 135304 1342177279 1 1 0 192.168.4.44 4_102_1 /usr/dt/bin/dtterm
root 327918 446618 0 19:54:43 pts/5 0:00 -ksh
informix 331962 364748 0 30 oct pts/3 0:00 -ksh
root 336046 368824 0 30 oct pts/4 0:00 /usr/bin/ksh
root 360522 131256 0 19:16:38 - 0:00 telnetd -a
root 364748 385254 0 30 oct pts/3 0:00 /usr/bin/ksh
root 368824 393446 0 30 oct - 0:00 /usr/dt/bin/dtterm
root 376850 286874 0 30 oct pts/0 0:00 /usr/bin/ksh
root 385254 323820 0 30 oct - 0:00 /usr/dt/bin/dtterm
root 389336 413732 0 31 oct - 0:00 dtpad
root 393446 270570 0 30 oct - 0:00 /usr/dt/bin/dtexec -open 0 -ttprocid 3.179rxl 01 135304 1342177279 1 1 0 192.168.4.44 4_110_1 /usr/dt/bin/dtterm
root 413732 135304 0 31 oct - 0:00 /bin/bsh /bin/bsh /bin/bsh
root 446618 131256 0 19:54:43 - 0:00 telnetd -a
root 450628 102596 0 16:52:20 - 0:00 /usr/dt/bin/dtexec -open 0 -ttprocid 1.179rxl 01 135304 1342177279 1 1 0 192.168.4.44 4_996_1 /usr/dt/bin/dtscreen -mode blank
root 454894 327918 0 16:53:13 pts/5 0:00 ps -ef
=================================== env ==================================================================================
_=/usr/bin/env
LANG=fr_FR
LOGIN=root
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/usr/java14/bin
LC__FASTMSG=true
EDITOR=vi
HISTFILE=/tmp/hist5
LOGNAME=root
MAIL=/usr/spool/mail/root
LOCPATH=/usr/lib/nls/loc
PS1=agaps02-root:$PWD #
USER=root
AUTHSTATE=compat
SHELL=/usr/bin/ksh
ODMDIR=/etc/objrepos
HOME=/
TERM=vt220
MAILMSG=[YOU HAVE NEW MAIL]
PWD=/tmp
TZ=NFT-1DFT
A__z=! LOGNAME
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
==============================================lsconf of server ==========================================================
System Model: IBM,9131-52A
Machine Serial Number: 659387G
Processor Type: PowerPC_POWER5
Number Of Processors: 1
Processor Clock Speed: 2097 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 1 65-9387G
Memory Size: 3920 MB
Good Memory Size: 3920 MB
Platform Firmware level: Not Available
Firmware Version: IBM,SF240_320
Console Login: enable
Auto Restart: true
Full Core: false
Network Information
Host Name: agaps02
IP Address: 192.168.4.44
Sub Netmask: 255.255.255.0
Gateway:
Name Server:
Domain Name:
Paging Space Information
Total Paging Space: 10240MB
Percent Used: 1%
Volume Groups Information
==============================================================================
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 active 546 318 109..66..00..34..109
==============================================================================
uservg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk1 active 546 345 110..00..17..109..109
==============================================================================
INSTALLED RESOURCE LIST
The following resources are installed on the machine.
± = Added or deleted from Resource List.
* = Diagnostic support not available.
Model Architecture: chrp
Model Implementation: Multiple Processor, PCI bus
+ sys0 System Object
+ sysplanar0 System Planar
* vio0 Virtual I/O Bus
* vsa1 U787F.001.DPM3583-P1-T2 LPAR Virtual Serial Adapter
* vty1 U787F.001.DPM3583-P1-T2-L0 Asynchronous Terminal
* vsa0 U787F.001.DPM3583-P1-T1 LPAR Virtual Serial Adapter
* vty0 U787F.001.DPM3583-P1-T1-L0 Asynchronous Terminal
* pci2 U787F.001.DPM3583-P1 PCI Bus
* pci10 U787F.001.DPM3583-P1 PCI Bus
* pci11 U787F.001.DPM3583-P1 PCI Bus
* pci12 U787F.001.DPM3583-P1-C2 PCI Bus
+ lai0 U787F.001.DPM3583-P1-C2-T1 GXT135P Graphics Adapter
* pci8 U787F.001.DPM3583-P1 PCI Bus
+ usbhc0 U787F.001.DPM3583-P1 USB Host Controller (33103500)
+ usbhc1 U787F.001.DPM3583-P1 USB Host Controller (33103500)
* pci9 U787F.001.DPM3583-P1 PCI Bus
+ ent0 U787F.001.DPM3583-P1-T5 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
+ ent1 U787F.001.DPM3583-P1-T6 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
* pci1 U787F.001.DPM3583-P1 PCI Bus
* pci7 U787F.001.DPM3583-P1 PCI Bus
* pci5 U787F.001.DPM3583-P1 PCI Bus
* pci3 U787F.001.DPM3583-P1 PCI Bus
* ide0 U787F.001.DPM3583-P1-T12 ATA/IDE Controller Device
+ cd0 U787F.001.DPM3583-P4-D2 IDE DVD-ROM Drive
* pci4 U787F.001.DPM3583-P1 PCI Bus
+ sisscsia1 U787F.001.DPM3583-P1 PCI-X Dual Channel Ultra320 SCSI Adapter
+ scsi2 U787F.001.DPM3583-P1-T10 PCI-X Dual Channel Ultra320 SCSI Adapter bus
+ rmt0 U787F.001.DPM3583-P1-T10-L0-L0 LVD SCSI 4mm Tape Drive (36000 MB)
+ hdisk0 U787F.001.DPM3583-P1-T10-L3-L0 16 Bit LVD SCSI Disk Drive (73400 MB)
+ hdisk1 U787F.001.DPM3583-P1-T10-L4-L0 16 Bit LVD SCSI Disk Drive (73400 MB)
+ ses0 U787F.001.DPM3583-P1-T10-L15-L0 SCSI Enclosure Services Device
+ scsi3 U787F.001.DPM3583-P1-T11 PCI-X Dual Channel Ultra320 SCSI Adapter bus
* pci6 U787F.001.DPM3583-P1 PCI Bus
* pci0 U787F.001.DPM3583-P1 PCI Bus
+ sisscsia0 U787F.001.DPM3583-P1-C4 PCI-X Dual Channel Ultra320 SCSI Adapter
+ scsi0 U787F.001.DPM3583-P1-C4-T1 PCI-X Dual Channel Ultra320 SCSI Adapter bus
+ scsi1 U787F.001.DPM3583-P1-C4-T2 PCI-X Dual Channel Ultra320 SCSI Adapter bus
+ L2cache0 L2 Cache
+ mem0 Memory
+ proc0 Processor
* kbd0 U787F.001.DPM3583-P1-T7-L1-L1 USB keyboard
* mouse0 U787F.001.DPM3583-P1-T8-L1 USB mouse
======================================== oncheck -pr =================================================================
Validating IBM Informix Dynamic Server reserved pages
Validating PAGE_PZERO...
Identity IBM Informix Dynamic Ser
ver Copyright(C) 1986-20
04 IBM Informix Softwar
Database system state 0
Database system flags 0x3
Page Size 4096 (b)
Date/Time created 11/01/2007 16:56:36
Version number of creator 14
Last modified time stamp 0
Validating PAGE_CONFIG...
ROOTNAME rootdbs
ROOTPATH /u1/my_db
ROOTOFFSET 0 (k)
ROOTSIZE 3000000 (k)
MIRROR 0
MIRRORPATH
MIRROROFFSET 0 (k)
DB_LIBRARY_PATH
JVPHOME /usr/informix/extend/krakatoa
JVPJAVAHOME /usr/informix/extend/krakatoa/jre
JVPJAVAVM hpi:jvm:java:net:zip:jpeg
JVPLOGFILE /usr/informix/extend/krakatoa/jvp.log
JVPPROPFILE /usr/informix/extend/krakatoa/.jvpprops
JVPJAVALIB /bin
JDKVERSION 1.3
JVMTHREAD green
JVPCLASSPATH /usr/informix/extend/krakatoa/krakatoa.jar:/usr/informix/extend/krakatoa/jdbc.jar
JVPDEBUG 0
PHYSDBS rootdbs
PHYSFILE 20000 (k)
LOGFILES 6
LOGSIZE 40000 (k)
MSGPATH /u/informix/log/online.log
CONSOLE /dev/console
TAPEDEV STDIO
TAPEBLK 32 (k)
TAPESIZE 10240 (k)
LTAPEDEV /dev/null
LTAPEBLK 32 (k)
LTAPESIZE 10240 (k)
DBSERVERNAME agaps_ids
SERVERNUM 1
DEADLOCK_TIMEOUT 60 (s)
RESIDENT 0
LOCKS 4000
BUFFERPOOL
size=4K,buffers=5000,lrus=8,lru_min_dirty=50.000000,lru_max_dirty=60.000000
PHYSBUFF 32 (k)
LOGBUFF 32 (k)
CLEANERS 1
BUFFSIZE 4096 (b)
SHMBASE 0x10000000
CKPTINTVL 300 (s)
NOFUZZYCKPT 0
SPINCNT 0
STAGEBLOB
LTXHWM 70 (%)
LTXEHWM 80 (%)
TXTIMEOUT 300 (s)
DRNODE 0
DRNAME
DRINTERVAL 30 (s)
DRTIMEOUT 30 (s)
DRIDXAUTO 0
DRAUTO 0
DRLOSTFOUND /usr/informix/etc/dr.lostfound
DUMPSHMEM 1
DUMPGCORE 0
DUMPCORE 0
DUMPCNT 1
DUMPDIR /u/informix/tmp
NUMCPUVPS 1
NUMAIOVPS 2
SHMVIRTSIZE 8192 (k)
NOAGE 0
AFF_SPROC 0
AFF_NPROC 0
RA_PAGES 4 (p)
RA_THRESHOLD 2 (p)
STACKSIZE 64 (k)
OFF_RECVRY_THREADS 10
ON_RECVRY_THREADS 1
SHMADD 8192 (k)
EXTSHMADD 8192 (k)
SHMTOTAL 0 (k)
SINGLE_CPU_VP 0
ALRM_ALL_EVENTS 0
ALARMPROGRAM /usr/informix/etc/alarmprogram.sh
ONLIDX_MAXMEM 5120 (k)
DS_MAX_QUERIES 2
DS_TOTAL_MEMORY 256 (k)
DS_MAX_SCANS 1048576
MAX_PDQPRIORITY 100
DBSPACETEMP
DATASKIP off
ONDBSPACEDOWN 2
OPCACHEMAX 0 (k)
BAR_ACT_LOG /usr/informix/bar_act.log
BAR_DEBUG_LOG /usr/informix/bar_dbug.log
BAR_MAX_BACKUP 0
BAR_RETRY 1
BAR_DEBUG 0
BAR_BSALIB_PATH
RESTARTABLE_RESTORE 1
BAR_NB_XPORT_COUNT 20
BAR_XFER_BUF_SIZE 31 (p)
BAR_PROGRESS_FREQ 0
BAR_HISTORY 0
CDR_EVALTHREADS 1
CDR_DSLOCKWAIT 5 (s)
CDR_QUEUEMEM 4096 (k)
CDR_NIFCOMPRESS 0
CDR_NUMCONNECT 0
DIRECTIVES 1
SBSPACENAME
OPT_GOAL -1
ISM_DATA_POOL ISMData
ISM_LOG_POOL ISMLogs
LOG_BACKUP_MODE MANUAL
JVPARGS
XA_CONN_LEVEL_SETTING 1
IFX_EXTEND_ROLE 1
Validating PAGE_1CKPT & PAGE_2CKPT...
Using check point page PAGE_1CKPT.
Time stamp of checkpoint 0x245616
Time of checkpoint 11/01/2007 17:03:06
Physical log begin address 1:263
Physical log size 5000 (p)
Physical log position at Ckpt 4595
Logical log unique identifier 1
Logical log position at Ckpt 0xaea018 (Page 2794, byte 24)
DBspace descriptor page 1:5
Chunk descriptor page 1:6
Mirror chunk descriptor page 1:8
Log file number 1
Unique identifier 1
Log contains last checkpoint: Page 2794, byte 24
Log file flags 0x3 Log file in use
& Current log file
Physical location 1:5263
Log size 10000 (p)
Number pages used 2795
Date/Time file filled -
Time stamp -
Log file number 2
Unique identifier -
Log file flags 0x8 Newly added log
Physical location 1:15263
Log size 10000 (p)
Number pages used 0
Date/Time file filled -
Time stamp -
Log file number 3
Unique identifier -
Log file flags 0x8 Newly added log
Physical location 1:25263
Log size 10000 (p)
Number pages used 0
Date/Time file filled -
Time stamp -
Log file number 4
Unique identifier -
Log file flags 0x8 Newly added log
Physical location 1:35263
Log size 10000 (p)
Number pages used 0
Date/Time file filled -
Time stamp -
Log file number 5
Unique identifier -
Log file flags 0x8 Newly added log
Physical location 1:45263
Log size 10000 (p)
Number pages used 0
Date/Time file filled -
Time stamp -
Log file number 6
Unique identifier -
Log file flags 0x8 Newly added log
Physical location 1:55263
Log size 10000 (p)
Number pages used 0
Date/Time file filled -
Time stamp -
Fast recovery starting point: Log ID 1, Position 0xaea018
Validating PAGE_1DBSP & PAGE_2DBSP...
Using DBspace page PAGE_2DBSP.
DBspace number 1
DBspace name rootdbs
Flags 0x40001 No mirror chunks
Number of chunks 1
First chunk 1
Date/Time created 11/01/2007 16:56:36
Partition table page number 14
Pagesize (k) 4
Logical Log Unique Id 0
Logical Log Position 0x0
Oldest Logical Log Unique Id 1
Last Logical Log Unique Id 0
DBspace archive status No archives have occurred.
Validating PAGE_1PCHUNK & PAGE_2PCHUNK...
Using primary chunk page PAGE_1PCHUNK.
Chunk number 1
Flags 0x30040 Chunk is online
Chunk path /u1/my_db
Chunk offset 0 (p)
Chunk size 750000 (p)
Number of free pages 578841
DBspace number 1
Validating PAGE_1ARCH & PAGE_2ARCH...
Using archive page PAGE_2ARCH.
Archive Level 0
Real Time Archive Began 11/01/2007 17:03:06
Time Stamp Archive Began 0x245616
Logical Log Unique Id 1
Logical Log Position 0xaea018
DR has not been initialized.
================================================= ONCONFIG =========================================================
#**************************************************************************
#
# Licensed Material - Property Of IBM
#
# "Restricted Materials of IBM"
#
# IBM Informix Dynamic Server
# (c) Copyright IBM Corporation 1996, 2006 All rights reserved.
#
# Title: onconfig.std
# Description: IBM Informix Dynamic Server Configuration Parameters
#
#**************************************************************************
# Root Dbspace Configuration
ROOTNAME rootdbs # Root dbspace name
ROOTPATH /u1/my_db # Path for device containing root dbspace
ROOTOFFSET 0 # Offset of root dbspace into device (Kbytes)
ROOTSIZE 3000000 ## AGAPS 3GO # 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 rootdbs # Location (dbspace) of physical log
PHYSFILE 20000 #AGAPS Physical log file size (Kbytes)
# Logical Log Configuration
LOGFILES 6 # Number of logical log files
LOGSIZE 40000 #AGAPS Logical log size (Kbytes)
# Tablespace Tablespace Configuration in Root Dbspace
TBLTBLFIRST 0 # First extent size (Kbytes) (0 = default)
TBLTBLNEXT 0 # Next extent size (Kbytes) (0 = default)
# Security
# DBCREATE_PERMISSION:
# By default any user can create a database. Uncomment DBCREATE_PERMISSON to
# limit database creation to a specific user. Add a new DBCREATE_PERMISSION
# line for each permitted user.
#DBCREATE_PERMISSION informix
# DB_LIBRARY_PATH:
# When loading a (C or C++) shared object (for a UDR or UDT), IDS checks that
# the user-specified path starts with one of the directory prefixes listed in
# the comma-separated list of prefixes in DB_LIBRARY_PATH. The string
# "$INFORMIXDIR/extend" must be included in DB_LIBRARY_PATH in order for
# extensibility and IBM supplied blades to work correctly.
# DB_LIBRARY_PATH $INFORMIXDIR/extend
# IFX_EXTEND_ROLE:
# 0 (or off) => Disable use of EXTEND role to control who can register
# external routines.
# 1 (or on) => Enable use of EXTEND role to control who can register
# external routines. This is the default behaviour.
#
IFX_EXTEND_ROLE 1 # To control the usage of EXTEND role.
# Diagnostics
##MSGPATH /usr/informix/online.log # System message log file path
MSGPATH /u/informix/log/online.log # AGAPS System message log file path
CONSOLE /dev/console # System console message path
# To automatically backup logical logs, edit alarmprogram.sh and set
# BACKUPLOGS=Y
ALARMPROGRAM /usr/informix/etc/alarmprogram.sh # Alarm program path
ALRM_ALL_EVENTS 0 # Triggers ALARMPROGRAM for any event occur
TBLSPACE_STATS 1 # Maintain tblspace statistics
# System Archive Tape Device
TAPEDEV STDIO # AGAPS Tape device path
TAPEBLK 32 # Tape block size (Kbytes)
TAPESIZE 10240 # Maximum amount of data to put on tape (Kbytes)
# Log Archive Tape Device
LTAPEDEV /dev/null ##AGAPS # Log tape device path
LTAPEBLK 32 # Log tape block size (Kbytes)
LTAPESIZE 10240 # Max amount of data to put on log tape (Kbytes)
# Optical
STAGEBLOB # Informix Dynamic Server staging area
# System Configuration
SERVERNUM 1 # AGAPS Unique id corresponding to a OnLine instance
DBSERVERNAME agaps_ids ## AGAPS default database server
NETTYPE ipcshm,,100,CPU ## AGAPS read(s) for nettype
DBSERVERALIASES agaps_res ## AGAPS name of alternate dbservernames
NETTYPE soctcp,,20,NET ## AGAPS read(s) for nettype
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 4000 # AGAPS 2000=>4000 Maximum number of locks
NUMAIOVPS # Number of IO vps
PHYSBUFF 32 # Physical log buffer size (Kbytes)
LOGBUFF 32 # Logical log buffer size (Kbytes)
CLEANERS 1 # Number of buffer cleaner processes
##SHMBASE 0x700000000000000L # Shared memory base address
SHMBASE 0x700000010000000 # Shared memory base address
SHMVIRTSIZE 8192 # initial virtual shared memory segment size
SHMADD 8192 # Size of new shared memory segments (Kbytes)
EXTSHMADD 8192 # Size of new extension shared memory segments (Kbytes)
SHMTOTAL 0 # Total shared memory (Kbytes). 0=>unlimited
SHMVIRT_ALLOCSEG 0 # Values between 0 and .99 are %, values > 1 are
# KB - when this much virtual memory is used we
# try to get a new segment. 0 means "off". 2nd
# parameter is alarm level
CKPTINTVL 300 # Check point interval (in sec)
TXTIMEOUT 300 # Transaction timeout (in sec)
STACKSIZE 64 # Stack size (Kbytes)
# Dynamic Logging
# DYNAMIC_LOGS:
# 2 : server automatically add a new logical log when necessary. (ON)
# 1 : notify DBA to add new logical logs when necessary. (ON)
# 0 : cannot add logical log on the fly. (OFF)
#
# When dynamic logging is on, we can have higher values for LTXHWM/LTXEHWM,
# because the server can add new logical logs during long transaction rollback.
# However, to limit the number of new logical logs being added, LTXHWM/LTXEHWM
# can be set to smaller values.
#
# If dynamic logging is off, LTXHWM/LTXEHWM need to be set to smaller values
# to avoid long transaction rollback hanging the server due to lack of logical
# log space, i.e. 50/60 or lower.
#
# In case of system configured with CDR, the difference between LTXHWM and
# LTXEHWM should be atleast 30% so that we could minimize log overrun issue.
DYNAMIC_LOGS 2
LTXHWM 70
LTXEHWM 80
# System Page Size
# BUFFSIZE - OnLine no longer supports this configuration parameter.
# To determine the page size used by OnLine on your platform
# see the last line of output from the command, 'onstat -b'.
# Recovery Variables
# OFF_RECVRY_THREADS:
# Number of parallel worker threads during fast recovery or an offline restore.
# ON_RECVRY_THREADS:
# Number of parallel worker threads during an online restore.
OFF_RECVRY_THREADS 10 # Default number of offline worker threads
ON_RECVRY_THREADS 1 # Default number of online worker threads
# Data Replication Variables
# DRAUTO: 0 manual, 1 retain type, 2 reverse type
DRAUTO 0 # DR automatic switchover
DRINTERVAL 30 # DR max time between DR buffer flushes (in sec)
DRTIMEOUT 30 # DR network timeout (in sec)
DRLOSTFOUND /usr/informix/etc/dr.lostfound # DR lost+found file path
DRIDXAUTO 0 # DR automatic index repair. 0=off, 1=on
# CDR Variables
CDR_EVALTHREADS 1,2 # evaluator threads (per-cpu-vp,additional)
CDR_DSLOCKWAIT 5 # DS lockwait timeout (seconds)
CDR_QUEUEMEM 4096 # Maximum amount of memory for any CDR queue (Kbytes)
CDR_NIFCOMPRESS 0 # Link level compression (-1 never, 0 none, 9 max)
CDR_SERIAL 0 # Serial Column Sequence
CDR_DBSPACE # dbspace for syscdr database
CDR_QHDR_DBSPACE # CDR queue dbspace (default same as catalog)
CDR_QDATA_SBSPACE # List of CDR queue smart blob spaces
# CDR_MAX_DYNAMIC_LOGS
# -1 => unlimited
# 0 => disable dynamic log addition
# >0 => limit the no. of dynamic log additions with the specified value.
# Max dynamic log requests that CDR can make within one server session.
CDR_MAX_DYNAMIC_LOGS 0 # Dynamic log addition disabled by default
# Backup/Restore variables
BAR_ACT_LOG /usr/informix/bar_act.log # ON-Bar Log file - not in /tmp please
BAR_DEBUG_LOG /usr/informix/bar_dbug.log # ON-Bar Debug Log - not in /tmp please
BAR_MAX_BACKUP 0
BAR_RETRY 1
BAR_NB_XPORT_COUNT 20
BAR_XFER_BUF_SIZE 31
RESTARTABLE_RESTORE ON
BAR_PROGRESS_FREQ 0
# Informix Storage Manager variables
ISM_DATA_POOL ISMData
ISM_LOG_POOL ISMLogs
# Read Ahead Variables
RA_PAGES # Number of pages to attempt to read ahead
RA_THRESHOLD # Number of pages left before next group
# DBSPACETEMP:
# OnLine equivalent of DBTEMP for SE. This is the list of dbspaces
# that the OnLine SQL Engine will use to create temp tables etc.
# If specified it must be a colon separated list of dbspaces that exist
# when the OnLine system is brought online. If not specified, or if
# all dbspaces specified are invalid, various ad hoc queries will create
# temporary files in /tmp instead.
DBSPACETEMP # Default temp dbspaces
# DUMP*:
# The following parameters control the type of diagnostics information which
# is preserved when an unanticipated error condition (assertion failure) occurs
# during OnLine operations.
# For DUMPSHMEM, DUMPGCORE and DUMPCORE 1 means Yes, 0 means No.
DUMPDIR /u/informix/tmp # AGAPS Preserve diagnostics in this directory
DUMPSHMEM 1 # Dump a copy of shared memory
DUMPGCORE 0 # Dump a core image using 'gcore'
DUMPCORE 0 # Dump a core image (Warning:this aborts OnLine)
DUMPCNT 1 # Number of shared memory or gcore dumps for
# a single user's session
FILLFACTOR 90 # Fill factor for building indexes
# method for OnLine to use when determining current time
USEOSTIME 0 # 0: use internal time(fast), 1: get time from OS(slow)
# Parallel Database Queries (pdq)
MAX_PDQPRIORITY 100 # Maximum allowed pdqpriority
DS_MAX_QUERIES # Maximum number of decision support queries
DS_TOTAL_MEMORY # Decision support memory (Kbytes)
DS_MAX_SCANS 1048576 # Maximum number of decision support scans
DS_NONPDQ_QUERY_MEM 128 # Non PDQ query memory (Kbytes)
DATASKIP # List of dbspaces to skip
# OPTCOMPIND
# 0 => Nested loop joins will be preferred (where
# possible) over sortmerge joins and hash joins.
# 1 => If the transaction isolation mode is not
# "repeatable read", optimizer behaves as in (2)
# below. Otherwise it behaves as in (0) above.
# 2 => Use costs regardless of the transaction isolation
# mode. Nested loop joins are not necessarily
# preferred. Optimizer bases its decision purely
# on costs.
OPTCOMPIND 2 # To hint the optimizer
DIRECTIVES 1 # Optimizer DIRECTIVES ON (1/Default) or OFF (0)
ONDBSPACEDOWN 2 # Dbspace down option: 0 = CONTINUE, 1 = ABORT, 2 = WAIT
OPCACHEMAX 0 # Maximum optical cache size (Kbytes)
# HETERO_COMMIT (Gateway participation in distributed transactions)
# 1 => Heterogeneous Commit is enabled
# 0 (or any other value) => Heterogeneous Commit is disabled
HETERO_COMMIT 0
SBSPACENAME # Default smartblob space name - this is where blobs
# go if no sbspace is specified when the smartblob is
# created. It is also used by some datablades as
# the location to put their smartblobs.
SYSSBSPACENAME # Default smartblob space for use by the Informix
# Server. This is used primarily for Informix Server
# system statistics collection.
BLOCKTIMEOUT 3600 # Default timeout for system block
SYSALARMPROGRAM /usr/informix/etc/evidence.sh # System Alarm program path
# Optimization goal: -1 = ALL_ROWS(Default), 0 = FIRST_ROWS
OPT_GOAL -1
ALLOW_NEWLINE 0 # embedded newlines(Yes = 1, No = 0 or anything but 1)
#Create Index Online Shared Memory usage limitation
ONLIDX_MAXMEM 5120 # Per pool per index (Kbytes)
#Timeout for client connection request
LISTEN_TIMEOUT 10 # Timeout (in Seconds)
#Following are the deprecated configuration parameters, instead of these
#use BUFFERPOOL configuration parameter
#BUFFERS, LRUS, LRU_MIN_DIRTY, LRU_MAX_DIRTY
IFX_FOLDVIEW 0 # fold multiple tables or union all view with ansi joins
#
# The following are default settings for enabling Java in the database.
# Replace all occurrences of /usr/informix with the value of $INFORMIXDIR.
#VPCLASS jvp,num=1 # Number of JVPs to start with
JVPJAVAHOME /usr/informix/extend/krakatoa/jre # JRE installation root directory
JVPHOME /usr/informix/extend/krakatoa # Krakatoa installation directory
JVPPROPFILE /usr/informix/extend/krakatoa/.jvpprops # JVP property file
JVPLOGFILE /usr/informix/jvp.log # JVP log file.
JDKVERSION 1.3 # JDK version supported by this server
# The path to the JRE libraries relative to JVPJAVAHOME
JVPJAVALIB /bin
# The JRE libraries to use for the Java VM
JVPJAVAVM hpi:jvm:java:net:zip:jpeg
# use JVPARGS to change Java VM configuration
#To display jni call
#JVPARGS -verbose:jni
# Classpath to use upon Java VM start-up (use _g version for debugging)
#JVPCLASSPATH /usr/informix/extend/krakatoa/krakatoa_g.jar:/usr/informix/extend/krakatoa/jdbc_g.jar
JVPCLASSPATH /usr/informix/extend/krakatoa/krakatoa.jar:/usr/informix/extend/krakatoa/jdbc.jar
# The following parameters are related to the buffer pool
BUFFERPOOL default,buffers=1000,lrus=8,lru_min_dirty=50,lru_max_dirty=60
BUFFERPOOL size=4k,buffers=5000,lrus=8,lru_min_dirty=50,lru_max_dirty=60
================================================= online.log ========================================================
#### oninit -v
16:24:44 IBM Informix Dynamic Server Started.
Thu Nov 1 16:24:44 2007
16:24:44 Event alarms enabled. ALARMPROG = '/usr/informix/etc/alarmprogram.sh'
16:24:44 Requested shared memory segment size rounded from 8316KB to 8320KB
16:24:44 Dynamically allocated new virtual shared memory segment (size 8320KB)
16:24:44 Memory sizes:resident:22944 KB, virtual:16512 KB, no SHMTOTAL limit
16:24:44 Booting Language <c> from module <>
16:24:44 Loading Module <CNULL>
16:24:44 Booting Language <builtin> from module <>
16:24:44 Loading Module <BUILTINNULL>
16:24:49 DR: DRAUTO is 0 (Off)
16:24:49 AIX MP latch code enabled
16:24:49 Dynamically allocated new message shared memory segment (size 1072KB)
16:24:49 Memory sizes:resident:22944 KB, virtual:17584 KB, no SHMTOTAL limit
16:24:49 IBM Informix Dynamic Server Version 10.00.FC6 Software Serial Number AAA#B000000
16:24:50 IBM Informix Dynamic Server Initialized -- Shared Memory Initialized.
16:24:50 Dynamically allocated new virtual shared memory segment (size 8192KB)
16:24:50 Memory sizes:resident:22944 KB, virtual:25776 KB, no SHMTOTAL limit
16:24:50 Physical Recovery Started at Page (1:838).
16:24:50 Physical Recovery Complete: 0 Pages Examined, 0 Pages Restored.
16:24:50 Logical Recovery Started.
16:24:50 10 recovery worker threads will be started.
16:24:53 Logical Recovery has reached the transaction cleanup phase.
16:24:53 Logical Recovery Complete.
0 Committed, 0 Rolled Back, 0 Open, 0 Bad Locks
16:24:54 Dataskip is now OFF for all dbspaces
16:24:54 Checkpoint Completed: duration was 0 seconds.
16:24:54 Checkpoint loguniq 1, logpos 0xb53018, timestamp: 0x244f18
16:24:54 Maximum server connections 0
16:24:54 On-Line Mode
============== result of oninit -v
Checking group membership to determine server run mode...succeeded
Reading configuration file '/u/informix/etc/onconfig.std'...succeeded
Creating /INFORMIXTMP/.infxdirs...succeeded
Creating infos file "/u/informix/etc/.infos.agaps_ids"...succeeded
Linking conf file "/u/informix/etc/.conf.agaps_ids"...succeeded
Writing to infos file...succeeded
Checking config parameters...succeeded
Allocating and attaching to shared memory...succeeded
Creating resident pool 2480 kbytes...succeeded
Allocating 20016 kbytes for buffer pool of 4K page size...succeeded
Initializing rhead structure...succeeded
Initializing ASF...succeeded
Initializing Dictionary Cache and SPL Routine Cache...succeeded
Bringing up ADM VP...succeeded
Creating VP classes...succeeded
Onlining 0 additional cpu vps...succeeded
Onlining 2 IO vps...succeeded
Initialization of Encryption...succeeded
Forking main_loop thread...succeeded
Initializing DR structures...succeeded
Forking 1 'ipcshm' listener threads...succeeded
Forking 1 'soctcp' listener threads...succeeded
Starting tracing...succeeded
Initializing 1 flushers...succeeded
Initializing log/checkpoint information...succeeded
Opening primary chunks...succeeded
Opening mirror chunks...succeeded
Initializing dbspaces...succeeded
Validating chunks...succeeded
Initialize Async Log Flusher...succeeded
Forking btree cleaner...succeeded
Initializing DBSPACETEMP list...succeeded
Checking database partition index...succeeded
Checking location of physical log...succeeded
Initializing dataskip structure...succeeded
Checking for temporary tables to drop...succeeded
Forking onmode_mon thread...succeeded
Verbose output complete: mode = 5
=================================================================
#### ontape -s -L 0 > backup_level0
16:30:00 Booting Language <spl> from module <>
16:30:00 Loading Module <SPLNULL>
16:30:01 Level 0 Archive started on rootdbs
16:30:23 Archive on rootdbs Completed.
16:30:23 Process exited with return code 127: /bin/sh /bin/sh -c /usr/informix/etc/alarmprogram.sh 2 16 "Archive completed: 'rootdbs'." "Archive on rootdbs Completed."
#### onmode -ky
16:31:30 Checkpoint Completed: duration was 0 seconds.
16:31:30 Checkpoint loguniq 1, logpos 0xb55620, timestamp: 0x244f8a
16:31:30 Maximum server connections 1
16:31:32 IBM Informix Dynamic Server Stopped.
####### cat backup_level0 | ontape -p
16:33:05 IBM Informix Dynamic Server Started.
Thu Nov 1 16:33:05 2007
16:33:05 Event alarms enabled. ALARMPROG = '/usr/informix/etc/alarmprogram.sh'
16:33:05 Requested shared memory segment size rounded from 8316KB to 8320KB
16:33:05 Dynamically allocated new virtual shared memory segment (size 8320KB)
16:33:05 Memory sizes:resident:22944 KB, virtual:16512 KB, no SHMTOTAL limit
16:33:05 Booting Language <c> from module <>
16:33:05 Loading Module <CNULL>
16:33:05 Booting Language <builtin> from module <>
16:33:05 Loading Module <BUILTINNULL>
16:33:10 DR: DRAUTO is 0 (Off)
16:33:10 AIX MP latch code enabled
16:33:10 Dynamically allocated new message shared memory segment (size 1072KB)
16:33:10 Memory sizes:resident:22944 KB, virtual:17584 KB, no SHMTOTAL limit
16:33:10 IBM Informix Dynamic Server Version 10.00.FC6 Software Serial Number AAA#B000000
16:33:11 IBM Informix Dynamic Server Initialized -- Shared Memory Initialized.
16:33:11 Dynamically allocated new virtual shared memory segment (size 8192KB)
16:33:11 Memory sizes:resident:22944 KB, virtual:25776 KB, no SHMTOTAL limit
16:33:11 Data replication type and state information reset. To start DR, use
the 'onmode -d' command and wait for the pair to be operational,
before shutting down the database server
16:33:11 Dataskip is now OFF for all dbspaces
16:33:11 Restartable Restore has been ENABLED
16:33:11 Recovery Mode
16:33:15 Physical Restore of rootdbs started.
16:34:40 Checkpoint Completed: duration was 0 seconds.
16:34:40 Checkpoint loguniq 1, logpos 0xb54018, timestamp: 0x244f37
16:34:40 Maximum server connections 0
16:34:40 Physical Restore of rootdbs Completed.
16:34:40 Checkpoint Completed: duration was 0 seconds.
16:34:40 Checkpoint loguniq 1, logpos 0xb54018, timestamp: 0x244f3b
16:34:40 Maximum server connections 0
#### onmode -ky
16:35:46 IBM Informix Dynamic Server Stopped.
#### ipcs after onmode -ky
IPC status from /dev/mem as of Thu Nov 1 16:35:58 DFT 2007
T ID KEY MODE OWNER GROUP
Message Queues:
q 0 0x4107001c -Rrw-rw---- root printq
Shared Memory:
m 0 0x580081f0 --rw-rw-rw- root system
m 1048577 0x0d0101e1 --rw-rw---- root system
m 1048578 0xffffffff --rw-rw---- root system
m 1048579 0x7800003f --rw-rw-rw- root system
Semaphores:
s 2097152 0x580081f0 --ra-ra-ra- root system
s 1 0x440081f0 --ra-ra-ra- root system
s 1048578 0x0101008e --ra------- root system
s 3 0x620102b3 --ra-r--r-- root system
###### Restart database oninit -v
16:37:15 IBM Informix Dynamic Server Started.
Thu Nov 1 16:37:15 2007
16:37:15 Event alarms enabled. ALARMPROG = '/usr/informix/etc/alarmprogram.sh'
16:37:15 Requested shared memory segment size rounded from 8316KB to 8320KB
16:37:15 Dynamically allocated new virtual shared memory segment (size 8320KB)
16:37:15 Memory sizes:resident:22944 KB, virtual:16512 KB, no SHMTOTAL limit
16:37:15 Booting Language <c> from module <>
16:37:15 Loading Module <CNULL>
16:37:15 Booting Language <builtin> from module <>
16:37:15 Loading Module <BUILTINNULL>
16:37:20 DR: DRAUTO is 0 (Off)
16:37:20 AIX MP latch code enabled
16:37:20 Dynamically allocated new message shared memory segment (size 1072KB)
16:37:20 Memory sizes:resident:22944 KB, virtual:17584 KB, no SHMTOTAL limit
16:37:21 IBM Informix Dynamic Server Version 10.00.FC6 Software Serial Number AAA#B000000
16:37:21 IBM Informix Dynamic Server Initialized -- Shared Memory Initialized.
16:37:21 Dynamically allocated new virtual shared memory segment (size 8192KB)
16:37:21 Memory sizes:resident:22944 KB, virtual:25776 KB, no SHMTOTAL limit
16:37:21 Physical Recovery Started at Page (1:838).
16:37:21 Physical Recovery Complete: 3 Pages Examined, 3 Pages Restored.
16:37:21 Logical Recovery Started.
16:37:21 10 recovery worker threads will be started.
16:37:24 Logical Recovery has reached the transaction cleanup phase.
16:37:24 Logical Recovery Complete.
4 Committed, 0 Rolled Back, 0 Open, 0 Bad Locks
16:37:25 IBM Informix Dynamic Server Stopped.
16:37:25 mt_shm_remove: WARNING: may not have removed all/correct segments
================ result of oninit -v
Checking group membership to determine server run mode...succeeded
Reading configuration file '/u/informix/etc/onconfig.std'...succeeded
Creating /INFORMIXTMP/.infxdirs...succeeded
Creating infos file "/u/informix/etc/.infos.agaps_ids"...succeeded
Linking conf file "/u/informix/etc/.conf.agaps_ids"...succeeded
Writing to infos file...succeeded
Checking config parameters...succeeded
Allocating and attaching to shared memory...succeeded
Creating resident pool 2480 kbytes...succeeded
Allocating 20016 kbytes for buffer pool of 4K page size...succeeded
Initializing rhead structure...succeeded
Initializing ASF...succeeded
Initializing Dictionary Cache and SPL Routine Cache...succeeded
Bringing up ADM VP...succeeded
Creating VP classes...succeeded
Onlining 0 additional cpu vps...succeeded
Onlining 2 IO vps...succeeded
Initialization of Encryption...succeeded
Forking main_loop thread...succeeded
Initializing DR structures...succeeded
Forking 1 'ipcshm' listener threads...succeeded
Forking 1 'soctcp' listener threads...succeeded
Starting tracing...succeeded
Initializing 1 flushers...succeeded
Initializing log/checkpoint information...succeeded
Opening primary chunks...succeeded
Opening mirror chunks...succeeded
Initializing dbspaces...succeeded
Validating chunks...succeeded
Initialize Async Log Flusher...succeeded
Forking btree cleaner...succeeded
Initializing DBSPACETEMP list...succeeded
Checking database partition index...FAILED
oninit : Fatal error in shared memory initialization
===================================================== onstat -D ========================================================
IBM Informix Dynamic Server Version 10.00.FC6 -- On-Line -- Up 00:01:08 -- 48720 Kbytes
Dbspaces
address number flags fchunk nchunks pgsize flags owner name
7000000201b0e78 1 0x40001 1 1 4096 N B informix rootdbs
1 active, 2047 maximum
Chunks
address chunk/dbs offset page Rd page Wr pathname
7000000201b1028 1 1 0 34 7 /u1/my_db
1 active, 32766 maximum
NOTE: The values in the "page Rd" and "page Wr" columns for DBspace chunks
are displayed in terms of system base page size.
Expanded chunk capacity mode: always