Will not initialize new instance.
Posted in 2000
Topics: High Availability & Replication, Backup & Restore, Storage & Space Management, Server Administration, Transactions, Locking & Isolation, Logging & Checkpoints, Networking & sqlhosts Configuration, Versions, Editions & End-of-Life
IDS 7.30.UC2X2
Dell Poweredge 4200 w/ 196meg
SCO Openserver 3.2.5.0.5
When initializing a new instance oninit -iv stops at:
Initializing rhead structure...
onstat - from another session show:
*** WARNING: Informix Dynamic Server is no longer running. ***
*** WARNING: Informix Dynamic Server is no longer running. ***
Informix Dynamic Server Version 7.30.UC2X2 -- Initialization -- Up 00:03:59
-- 69632 Kbytes
*** WARNING: Informix Dynamic Server is no longer running. ***
The last few lines of the log file show:
14:25:15 shmget: [EEXIST][17]: key 52564801: shared memory already exists
14:25:15 mt_shm_init: can't create resident segment
14:25:25 shmget: [EEXIST][17]: key 52564801: shared memory already exists
14:25:25 mt_shm_init: can't create resident segment
15:32:15 shmget: [EEXIST][17]: key 52564801: shared memory already exists
15:32:15 mt_shm_init: can't create resident segment
The disks seem OK, the hardware has been checked and we are using a
configuration that works fine at 85 other stores.
Any ideas? I am completely stumped.
----------------------
Robert K. Lofstrand 806.351.2300 x3650
Informix Database Specialist lofstrr@hastings-ent.com
Hastings Entertainment Inc. http://www.gohastings.com
onconfig follows:
# Root Dbspace Configuration
ROOTNAME root # Root dbspace name
ROOTPATH /u/inflinks/store/root_1 # Path for device containing root dbspace
ROOTOFFSET 0 # Offset of root dbspace into device
(Kbytes)
ROOTSIZE 2048000 # 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 root # Location (dbspace) of physical log
PHYSFILE 50000 # Physical log file size (Kbytes)
# Logical Log Configuration
LOGFILES 20 # Number of logical log files
LOGSIZE 10000 # Logical log size (Kbytes)
# Diagnostics
MSGPATH /usr/informix/local/logs/log.store
# System message log file path
CONSOLE /usr/informix/local/logs/log.store # System console message
path
ALARMPROGRAM /usr/informix/etc/log_full.sh # Alarm program path
SYSALARMPROGRAM /usr/informix/etc/evidence.sh # System Alarm program path
TBLSPACE_STATS 0
# System Archive Tape Device
#TAPEDEV /dev/null
#TAPEDEV /dev/rStp0
TAPEDEV /u/informix7/local/dbarc/dbmaster
TAPEBLK 16 # Tape block size (Kbytes)
TAPESIZE 4000000 # Maximum amount of data to put on tape
(Kbytes)
# Log Archive Tape Device
LTAPEDEV /dev/null # Log tape device path
LTAPEBLK 16 # Log tape block size (Kbytes)
LTAPESIZE 10240 # Max amount of data to put on log tape
(Kbytes)
# Optical
STAGEBLOB # Informix Dynamic Server/Optical staging
area
# System Configuration
SERVERNUM 0 # Unique id corresponding to a DynamicServer instance
DBSERVERNAME hst9999 # Name of default database server
DBSERVERALIASES hst9999_eth # List of alternate dbservernames
NETTYPE ipcshm,1,50,CPU # Configure poll thread(s) for nettype
NETTYPE tlitcp,1,50,NET # Configure poll thread(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 formulti-processor
NUMCPUVPS 1 # Number of user (cpu) vps
SINGLE_CPU_VP 1 # If non-zero, limit number of cpu vps toone
NOAGE 1 # Process aging
AFF_SPROC 0 # Affinity start processor
AFF_NPROCS 0 # Affinity number of processors
# Shared Memory Parameters
LOCKS 500000 # Maximum number of locks
BUFFERS 12000 # Maximum number of shared buffers
NUMAIOVPS 3 # Number of IO vps
PHYSBUFF 48 # Physical log buffer size (Kbytes)
LOGBUFF 48 # Logical log buffer size (Kbytes)LOGSMAX 40 # Maximum number of logical log files
CLEANERS 2 # Number of buffer cleaner processes
SHMBASE 0x0 # 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 900 # Check point interval (in sec)
LRUS 7 # Number of LRU queues
LRU_MAX_DIRTY 3 # LRU percent dirty begin cleaning limit
LRU_MIN_DIRTY 1 # LRU percent dirty end cleaning limit
LTXHWM 45 # Long transaction high water markpercentage
LTXEHWM 50 # Long transaction high water mark
(exclusive)
TXTIMEOUT 0x12c # Transaction timeout (in sec)
STACKSIZE 32 # Stack size (Kbytes)
# System Page Size
# BUFFSIZE - Dynamic Server no longer supports this configuration parameter.
# To determine the page size used by Dynamic Server 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 workerthreads
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
# CDR Variables
CDR_LOGBUFFERS 2048 # size of log reading buffer pool (Kbytes)
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)
# Backup/Restore variables
BAR_ACT_LOG /tmp/bar_act.log
BAR_MAX_BACKUP 0
BAR_RETRY 1
BAR_NB_XPORT_COUNT 10
BAR_XFER_BUF_SIZE 31
# Informix Storage Manager variables
ISM_DATA_POOL ISMData # If the data pool name is changed, be sure
to
# update $INFORMIXDIR/bin/onbar. Change to
Bob,
First you need to clear out any evidence of prior sessions. If you can reboot,
that's the
easiest way to do that. Otherwise you need to run ps -ef | grep oninit and kill
off any existing
oninits (assuming that there is only one on the machine). Then you need to run
ipcs to get all
of the shared memory segments. You then need to remove all old informix shared
memory
segments. Again - the easiest way would be to reboot.
The point that you are refering to would have occured during the attempt to
obtain shared memory
segments.
"Lofstrand, Bob" wrote:
> IDS 7.30.UC2X2
> Dell Poweredge 4200 w/ 196meg
> SCO Openserver 3.2.5.0.5
>
> When initializing a new instance oninit -iv stops at:
> Initializing rhead structure...
>
> onstat - from another session show:
> *** WARNING: Informix Dynamic Server is no longer running. ***
>
> *** WARNING: Informix Dynamic Server is no longer running. ***
>
> Informix Dynamic Server Version 7.30.UC2X2 -- Initialization -- Up 00:03:59
> -- 69632 Kbytes
>
> *** WARNING: Informix Dynamic Server is no longer running. ***
>
> The last few lines of the log file show:
> 14:25:15 shmget: [EEXIST][17]: key 52564801: shared memory already exists
> 14:25:15 mt_shm_init: can't create resident segment
>
> 14:25:25 shmget: [EEXIST][17]: key 52564801: shared memory already exists
> 14:25:25 mt_shm_init: can't create resident segment
>
> 15:32:15 shmget: [EEXIST][17]: key 52564801: shared memory already exists
> 15:32:15 mt_shm_init: can't create resident segment>
> The disks seem OK, the hardware has been checked and we are using a
> configuration that works fine at 85 other stores.
>
> Any ideas? I am completely stumped.
>
> ----------------------
> Robert K. Lofstrand 806.351.2300 x3650
> Informix Database Specialist lofstrr@hastings-ent.com
> Hastings Entertainment Inc. http://www.gohastings.com
>
> onconfig follows:
>
> # Root Dbspace Configuration
>
> ROOTNAME root # Root dbspace name
> ROOTPATH /u/inflinks/store/root_1> # Path for device containing root dbspace
> ROOTOFFSET 0 # Offset of root dbspace into device
> (Kbytes)
> ROOTSIZE 2048000 # 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 root # Location (dbspace) of physical log
> PHYSFILE 50000 # Physical log file size (Kbytes)>
> # Logical Log Configuration
>
> LOGFILES 20 # Number of logical log files
> LOGSIZE 10000 # Logical log size (Kbytes)>
> # Diagnostics
>
> MSGPATH /usr/informix/local/logs/log.store
> # System message log file path
> CONSOLE /usr/informix/local/logs/log.store # System console message
> path
> ALARMPROGRAM /usr/informix/etc/log_full.sh # Alarm program path
> SYSALARMPROGRAM /usr/informix/etc/evidence.sh # System Alarm program path
> TBLSPACE_STATS 0>
> # System Archive Tape Device
>
> #TAPEDEV /dev/null
> #TAPEDEV /dev/rStp0
> TAPEDEV /u/informix7/local/dbarc/dbmaster
> TAPEBLK 16 # Tape block size (Kbytes)
> TAPESIZE 4000000 # Maximum amount of data to put on tape
> (Kbytes)>
> # Log Archive Tape Device
>
> LTAPEDEV /dev/null # Log tape device path
> LTAPEBLK 16 # Log tape block size (Kbytes)
> LTAPESIZE 10240 # Max amount of data to put on log tape
> (Kbytes)>
> # Optical
>
> STAGEBLOB # Informix Dynamic Server/Optical staging
> area
>
> # System Configuration
>
> SERVERNUM 0 # Unique id corresponding to a Dynamic> Server instance
> DBSERVERNAME hst9999 # Name of default database server
> DBSERVERALIASES hst9999_eth # List of alternate dbservernames
> NETTYPE ipcshm,1,50,CPU # Configure poll thread(s) for nettype
> NETTYPE tlitcp,1,50,NET # Configure poll thread(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 1 # If non-zero, limit number of cpu vps to> one
>
> NOAGE 1 # Process aging
> AFF_SPROC 0 # Affinity start processor
> AFF_NPROCS 0 # Affinity number of processors>
> # Shared Memory Parameters
>
> LOCKS 500000 # Maximum number of locks
> BUFFERS 12000 # Maximum number of shared buffers
> NUMAIOVPS 3 # Number of IO vps
> PHYSBUFF 48 # Physical log buffer size (Kbytes)
> LOGBUFF 48 # Logical log buffer size (Kbytes)> LOGSMAX 40 # Maximum number of logical log files
> CLEANERS 2 # Number of buffer cleaner processes
> SHMBASE 0x0 # 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 900 # Check point interval (in sec)
> LRUS 7 # Number of LRU queues
> LRU_MAX_DIRTY 3 # LRU percent dirty begin cleaning limit
> LRU_MIN_DIRTY 1 # LRU percent dirty end cleaning limit
> LTXHWM 45 # Long transaction high water mark> percentage
> LTXEHWM 50 # Long transaction high water mark
> (exclusive)
> TXTIMEOUT 0x12c # Transaction timeout (in sec)
> STACKSIZE 32 # Stack size (Kbytes)>
> # System Page Size
> # BUFFSIZE - Dynamic Server no longer supports this configuration parameter.
> # To determine the page size used by Dynamic Server 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 #
I had this problem with my y2k machine - the only value I can add here is to
increase your resident shared memory segment or SHMVIRTSIZE (sorry can remember
which one it is) and ensure residency in set to 0 in the onconfig. I did that
the engine started up ok.......
To clear up the segments use ipcrm.sh.
HTH
Bridget Reitsma
"Lofstrand, Bob" wrote:
> IDS 7.30.UC2X2
> Dell Poweredge 4200 w/ 196meg
> SCO Openserver 3.2.5.0.5
>
> When initializing a new instance oninit -iv stops at:
> Initializing rhead structure...
>
> onstat - from another session show:
> *** WARNING: Informix Dynamic Server is no longer running. ***
>
> *** WARNING: Informix Dynamic Server is no longer running. ***
>
> Informix Dynamic Server Version 7.30.UC2X2 -- Initialization -- Up 00:03:59
> -- 69632 Kbytes
>
> *** WARNING: Informix Dynamic Server is no longer running. ***
>
> The last few lines of the log file show:
> 14:25:15 shmget: [EEXIST][17]: key 52564801: shared memory already exists
> 14:25:15 mt_shm_init: can't create resident segment
>
> 14:25:25 shmget: [EEXIST][17]: key 52564801: shared memory already exists
> 14:25:25 mt_shm_init: can't create resident segment
>
> 15:32:15 shmget: [EEXIST][17]: key 52564801: shared memory already exists
> 15:32:15 mt_shm_init: can't create resident segment>
> The disks seem OK, the hardware has been checked and we are using a
> configuration that works fine at 85 other stores.
>
> Any ideas? I am completely stumped.
>
> ----------------------
> Robert K. Lofstrand 806.351.2300 x3650
> Informix Database Specialist lofstrr@hastings-ent.com
> Hastings Entertainment Inc. http://www.gohastings.com
>
> onconfig follows:
>
> # Root Dbspace Configuration
>
> ROOTNAME root # Root dbspace name
> ROOTPATH /u/inflinks/store/root_1> # Path for device containing root dbspace
> ROOTOFFSET 0 # Offset of root dbspace into device
> (Kbytes)
> ROOTSIZE 2048000 # 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 root # Location (dbspace) of physical log
> PHYSFILE 50000 # Physical log file size (Kbytes)>
> # Logical Log Configuration
>
> LOGFILES 20 # Number of logical log files
> LOGSIZE 10000 # Logical log size (Kbytes)>
> # Diagnostics
>
> MSGPATH /usr/informix/local/logs/log.store
> # System message log file path
> CONSOLE /usr/informix/local/logs/log.store # System console message
> path
> ALARMPROGRAM /usr/informix/etc/log_full.sh # Alarm program path
> SYSALARMPROGRAM /usr/informix/etc/evidence.sh # System Alarm program path
> TBLSPACE_STATS 0>
> # System Archive Tape Device
>
> #TAPEDEV /dev/null
> #TAPEDEV /dev/rStp0
> TAPEDEV /u/informix7/local/dbarc/dbmaster
> TAPEBLK 16 # Tape block size (Kbytes)
> TAPESIZE 4000000 # Maximum amount of data to put on tape
> (Kbytes)>
> # Log Archive Tape Device
>
> LTAPEDEV /dev/null # Log tape device path
> LTAPEBLK 16 # Log tape block size (Kbytes)
> LTAPESIZE 10240 # Max amount of data to put on log tape
> (Kbytes)>
> # Optical
>
> STAGEBLOB # Informix Dynamic Server/Optical staging
> area
>
> # System Configuration
>
> SERVERNUM 0 # Unique id corresponding to a Dynamic> Server instance
> DBSERVERNAME hst9999 # Name of default database server
> DBSERVERALIASES hst9999_eth # List of alternate dbservernames
> NETTYPE ipcshm,1,50,CPU # Configure poll thread(s) for nettype
> NETTYPE tlitcp,1,50,NET # Configure poll thread(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 1 # If non-zero, limit number of cpu vps to> one
>
> NOAGE 1 # Process aging
> AFF_SPROC 0 # Affinity start processor
> AFF_NPROCS 0 # Affinity number of processors>
> # Shared Memory Parameters
>
> LOCKS 500000 # Maximum number of locks
> BUFFERS 12000 # Maximum number of shared buffers
> NUMAIOVPS 3 # Number of IO vps
> PHYSBUFF 48 # Physical log buffer size (Kbytes)
> LOGBUFF 48 # Logical log buffer size (Kbytes)> LOGSMAX 40 # Maximum number of logical log files
> CLEANERS 2 # Number of buffer cleaner processes
> SHMBASE 0x0 # 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 900 # Check point interval (in sec)
> LRUS 7 # Number of LRU queues
> LRU_MAX_DIRTY 3 # LRU percent dirty begin cleaning limit
> LRU_MIN_DIRTY 1 # LRU percent dirty end cleaning limit
> LTXHWM 45 # Long transaction high water mark> percentage
> LTXEHWM 50 # Long transaction high water mark
> (exclusive)
> TXTIMEOUT 0x12c # Transaction timeout (in sec)
> STACKSIZE 32 # Stack size (Kbytes)>
> # System Page Size
> # BUFFSIZE - Dynamic Server no longer supports this configuration parameter.
> # To determine the page size used by Dynamic Server 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
Related threads
- onbar -c -F in Windows Informix instance
- Anyone... SQLCODE=-668, ISAM error=-1
- Not using the 100% logical log page size alloacted to informix