Shared Memory error when running tbinit -i for first time
Posted in 1998
I am installing Informix Online 5.07.UC1 for the first time as part of
one of our applications and I get the following error when "tbinit -iy"
is run from within a script for the first time.
Initializing database, please wait...
tbinit: fatal error in shared memory initialization
semop failed: Errno: 36, proc id 2125
Also, in the online.log file there is the following line:
<time> The chuck '/disk2/netreporter/dbs/armon_ch1' must have owner-ID
and
INFORMIXDIR-PnLine Stopped.
Below are the permissions and ownerships of the cooked armon_ch1 chuck:
-rw-rw---- informix informix 0 armon_ch1
Any ideas as to why "tbinit -iy" would fail with a semop error. I also
cleared
out all shared memory segments and semaphores before running tbinit. I
also
included the tbconfig file which tbinit is looking at below:
#**************************************************************************
#
# INFORMIX SOFTWARE, INC.
#
# Title: tbconfig
# Description: INFORMIX-OnLine Configuration Parameters
#
#**************************************************************************
# Root Dbspace Configuration
ROOTNAME rootdbs # Root dbspace nameROOTPATH /disk2/netreporter/dbs/armon_ch1 # Path for device containing
root dbspace
ROOTOFFSET 0 # Offset of root dbspace into device (Kbytes)
ROOTSIZE 100000 # Size of root dbspace (Kbytes)
# Disk Mirroring Configuration
MIRROR 0 # Mirroring flag (Yes = 1, No = 0)
MIRRORPATH # Path for device containing rootdbspace mirror
MIRROROFFSET 0 # Offset into mirror device (Kbytes)
# Physical Log Configuration
PHYSDBS rootdbs # Name of dbspace that contains physical
log
PHYSFILE 500 # Physical log file size (Kbytes)
# Logical Log Configuration
LOGFILES 3 # Number of logical log files
LOGSIZE 500 # Size of each logical log file (Kbytes)
# Message Files
MSGPATH /disk2/netreporter/online.log
# OnLine message log pathname
CONSOLE /disk2/netreporter/online.msg
# System console message pathname
# Archive Tape Device
TAPEDEV /dev/null # Archive tape device pathname
TAPEBLK 16 # Archive tape block size (Kbytes)
TAPESIZE 10240 # Max amount of data to put on tape
(Kbytes)
# Logical Log Backup Tape Device
LTAPEDEV /dev/null # Logical log tape device pathname
LTAPEBLK 16 # Logical log tape block size (Kbytes)
LTAPESIZE 10240 # Max amount of data to put on log tape
(Kbytes)
# Identification Parameters
SERVERNUM 57 # Unique id associated with this OnLine instance
DBSERVERNAME netreporter # Unique name of this OnLine instance
# Shared Memory Parameters
RESIDENT 0 # Forced residency flag (Yes = 1, No =
0)USERS 20 # Maximum number of concurrent user
processes
TRANSACTIONS 20 # Maximum number of concurrent
transactions
LOCKS 2000 # Maximum number of locks
BUFFERS 5000 # Maximum number of shared memory buffersTBLSPACES 500 # Maximum number of active tblspaces
CHUNKS 40 # Maximum number of chunks
DBSPACES 8 # Maximum number of dbspaces and
blobspaces
PHYSBUFF 32 # Size of physical log buffers (Kbytes)
LOGBUFF 32 # Size of logical log buffers (Kbytes)LOGSMAX 20 # Maximum number of logical log files
CLEANERS 1 # Number of page-cleaner processes
SHMBASE 0x10000000L # Shared memory base address
CKPTINTVL 300 # Checkpoint interval (in seconds)
LRUS 8 # Number of LRU queues
LRU_MAX_DIRTY 60 # LRU modified begin-cleaning limit
(percent)
LRU_MIN_DIRTY 50 # LRU modified end-cleaning limit
(percent)
LTXHWM 50 # Long TX high-water mark (percent)
LTXEHWM 60 # Long TX exclusive high-water mark
(percent)
# Machine- and Product-Specific Parameters
DYNSHMSZ 0 # Dynamic shared memory size (Kbytes)
GTRID_CMP_SZ 32 # Number of bytes to use in GTRID
comparision
DEADLOCK_TIMEOUT 60 # Max time to wait for lock indistributed env.
TXTIMEOUT 300 # Transaction timeout for I-STAR (in
seconds)SPINCNT 0 # No. of times process tries for latch
STAGEBLOB # Reserved for INFORMIX-OnLine/Optical
# System Page Size
BUFFSIZE 2048 # Page size (do not change!)
--
Bruce Bergeron
Optivity Unix Support - GSE
Baynetworks, Inc.
978-916-8383