still can't initialize the f*!@# raw devices
Posted in 1998
this seems to be a common problem for newbies but it has never been
answered in a satisfactorily manner:
Why can't I initialize the raw devices on our sun ultrasparc running
solaris 2.6?
It must be a really simple and stupid thing that I have done wrong.
Please don't tell me that the partitions have bad spots, this is
unlikely because the machine is new. Moreover, I have successfully
installed cooked devices on the same disks, in different partitions.
When I try to bring IDS /UD into quiescent or online mode, the server
writes something about assert failures into the online log.
Thanks for helping again,
Knut Behrends
Chemnitz, Germany
Here is some background information
entries in /dev
lrwxrwxrwx 1 root root 10 Jul 14 13:15 informix_raw1 ->
/dev/rsd0g
lrwxrwxrwx 1 root root 10 Jul 14 13:15 informix_raw2 ->
/dev/rsd5g
lrwxrwxrwx 1 root root 13 Jun 4 12:48 rsd0g ->
rdsk/c0t3d0s6
lrwxrwxrwx 1 root root 13 Jun 4 12:48 rsd5g ->
rdsk/c0t5d0s6
/dev/rdsk
lrwxrwxrwx 1 root root 55 Jun 4 12:48 c0t3d0s6 ->
../../devices/sbus@1f,0/SUNW,fas@e,8800000/sd@3,0:g,raw
lrwxrwxrwx 1 root root 55 Jun 4 12:48 c0t5d0s6 ->
../../devices/sbus@1f,0/SUNW,fas@e,8800000/sd@5,0:g,raw
/devices/sbus@1f,0/SUNW,fas@e,8800000
crw-rw---- 1 informix informix 32, 30 Jun 8 15:05 sd@3,0:g,raw
crw-rw---- 1 informix informix 32, 46 Jun 9 09:50 sd@5,0:g,raw
Here's the message in the online log:
Tue Jul 14 14:48:09 1998
14:48:09 Event alarms enabled. ALARMPROG =
'/home/dvs_fs6/informix/etc/log_full.sh'
14:48:09 Booting Language <c> from module <>
14:48:09 Loading Module <CNULL>
14:48:09 Booting Language <builtin> from module <>
14:48:09 Loading Module <BUILTINNULL>
14:48:20 DR: DRAUTO is 0 (Off)
14:48:20 INFORMIX-Universal Server Version 9.13.UC2 Software Serial
Number *****
14:48:20 Assert Failed: chunk failed sanity check
14:48:20 INFORMIX-Universal Server Version 9.13.UC2
14:48:20 Who: Session(1, informix@hator, 0, 0)
Thread(7, main_loop(), 0, 1)
File: rspartn.c Line: 4856
14:48:20 Results: Chunk 1 is being taken OFFLINE.
14:48:20 Action: Restore chunk from archive.
14:48:21 See Also: /home/dvs_fs6/informix/tmp/af.75394
14:48:21 I/O error, Primary Chunk '/dev/informix_raw1' -- Offline
(sanity)
14:48:21 INFORMIX-Universal Server Stopped.
14:48:22 mt_shm_remove: WARNING: may not have removed all/correctsegments
this is the content of the file /home/dvs_fs6/informix/tmp/af.75394:
4:48:20 sane_chopen:pg_addr 0 != expected 100002
page
0b200c00: 00000000 00000000 00000000 00000000 ........ ........
0b200c10 *
14:48:20
14:48:20 INFORMIX-Universal Server Version 9.13.UC2 Software Serial
Number (fdeleted)
14:48:20 Assert Failed: chunk failed sanity check
14:48:20 Who: Session(1, informix@hator, 0, 0)
Thread(7, main_loop(), 0, 1)
File: rspartn.c Line: 4856
14:48:20 Results: Chunk 1 is being taken OFFLINE.
14:48:20 Action: Restore chunk from archive.
---------------------------------
Begin System Alarm Program Output
---------------------------------
Assertion Failure Type: Warning
Host Name: hator
Database Server Name: hator_shm
Time of failure: Dienstag, 14. Juli 1998, 14:48:21 Uhr MET DST
AF file: /home/dvs_fs6/informix/tmp/af.75394
Shared memory file: None
System Blocking: OFF
-------------------------------
End System Alarm Program Output
-------------------------------
14:48:21 sh /home/dvs_fs6/informix/etc/evidence.sh 1 0
/home/dvs_fs6/informix/tmp/af.75394 1 0x0 7 0xb162200 1 0 0 0 0
14:48:21 See Also: /home/dvs_fs6/informix/tmp/af.75394
14:48:21
------------------ End of assertion failure 0 -----------------
these are the entries in the onconfig file:
Title: onconfig.raw
# Description: INFORMIX-Universal Server Configuration Parameters f'rt
raw devices
#
#**************************************************************************
# Root Dbspace Configuration
ROOTNAME rootdbs # Root dbspace nameROOTPATH /dev/informix_raw1 # Path for device containing root
dbspace
ROOTOFFSET 0 # Offset of root dbspace into device
(Kbytes)
ROOTSIZE 20000 # Size of root dbspace (Kbytes) AUCHDEFAULT CHUNKSIZE
SERVERNUM 1 # Unique id corresponding to a OnLineinstance
DBSERVERNAME hator_shm # Name of default database serverhator_shm (shared memory) EINGEFUEGT VON KB 25.06.98 Admin g 4-49
DBSERVERALIASES # hator_tcp List of alternate dbservernamesEINGEFUEGT VON KB 7.7.98 NACH ADMIN G 4-45
DEADLOCK_TIMEOUT 60 # Max time to wait of lock indistributed env.
RESIDENT 1 # Forced residency flag (Yes = 1, No =
0) ---- AUF 1 GESETZT , HABEN GENUG RAM KB 8.7.98
MULTIPROCESSOR 1 # 0 for single-processor, 1 formulti-processor
NUMCPUVPS 1 # Number of user (cpu) vps
SINGLE_CPU_VP 1 # If [KB: MULTIPROCESSOR = ] non-zero,
limit number of cpu vps to one ---- AUF 1 GESETZT, KB 8.7.98
NOAGE 0 # Process aging
AFF_SPROC 0 # Affinity start processor
AFF_NPROCS 0 # Affinity number of processors
# Shared Memory Parameters
LOCKS 2000 # Maximum number of locks
BUFFERS 200 # Maximum number of shared buffers
NUMAIOVPS # Number of IO vps
PHYSBUFF 32 # Physical log buffer size (Kbytes)
LOGBUFF 32 # Logical log buffer size (Kbytes)LOGSMAX 6 # Maximum number of logical log files
CLEANERS 1 # Number of buffer cleaner processes#SHMBASE 0xa000000 # Shared memory base address ORIGINAL
SHMBASE 0x0A000000L # GEAENDERT NACH ADMIN G 37-65 KB
02.07.98#SHMBASE 0x00000000 # TEILT ANGEBLICH DEM SYSTEM
MIT SICH EINEN PASSENDEN WERT AUSZUSUCHEN KB 8.7.98
SHMVIRTSIZE 8000 # initial virtual shared memory segmentsize
#SHMADD 8192 # Size of new shared memory segments
(Kbytes) ORIGINAL
SHMADD 16384 # Size of new shared memory segments
(Kbytes) GEAENDERT KB 02.07. 98 NACH ADMIN G 37-64
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 markpercentage
LTXEHWM 60 # Long transaction high water mark
(exclusive)
TXTIMEOUT 0x12c # Transaction timeout (in sec)
STACKSIZE 32 # Stack size (Kbytes)