错误的主要块'/ dev / chunk1317'?

时间:2019-11-12 03:33:39

标签: informix

在通过OS级克隆将notifyix二进制文件迁移到新服务器之后,当我执行oninit -vy时出现警告,就像无法打开某些块。然后我请系统管理员链接那些丢失的块,然后再次执行oninit -vy,它再次提示警告,指出这些块是坏块。这背后的原因是什么。将块重新配置到新服务器时会发生任何错误

nwnhost@nwn$oninit -vy
Reading configuration file '/informix/strim/inf11/etc/onconfig'...succeeded
Creating /INFORMIXTMP/.infxdirs...succeeded
Checking config parameters...succeeded
Allocating and attaching to shared memory...succeeded
Creating resident pool 1629910 kbytes...succeeded
Allocating 6606044 kbytes for buffer pool of 2K page size...succeeded
Allocating 19267600 kbytes for buffer pool of 8K page size...succeeded
Creating infos file "/informix/strim/inf11/etc/.infos.ocs_test"...succeeded
Linking conf file "/informix/strim/inf11/etc/.conf.ocs_test"...succeeded
Initializing rhead structure...succeeded
Writing to infos file...succeeded
Initialization of Encryption...succeeded
Initializing ASF...succeeded
Initializing Dictionary Cache and SPL Routine Cache...succeeded
Bringing up ADM VP...succeeded
Creating VP classes...succeeded
Forking main_loop thread...succeeded
Initializing DR structures...succeeded
Forking 1 'soctcp' listener threads...succeeded
Starting tracing...succeeded
Initializing 128 flushers...succeeded
Initializing SDS Server network connections...succeeded
Initializing log/checkpoint information...succeeded
Initializing dbspaces...succeeded
Opening primary chunks...Bad Primary Chunk '/dev/chunk1186'.
Bad Primary Chunk '/dev/chunk1188'.
Bad Primary Chunk '/dev/chunk1265'.
Bad Primary Chunk '/dev/chunk1279'.
Bad Primary Chunk '/dev/chunk1317'.
Bad Primary Chunk '/dev/chunk1319'.
Bad Primary Chunk '/dev/chunk1320'.
succeeded
Validating chunks...succeeded
Initialize Async Log Flusher...succeeded
Starting B-tree Scanner...succeeded
Init ReadAhead Daemon...succeeded
Initializing DBSPACETEMP list...succeeded
Checking database partition index...succeeded
Initializing dataskip structure...succeeded
Checking for temporary tables to drop...succeeded
Updating Global Row Counter...succeeded
Forking onmode_mon thread...succeeded
Creating periodic thread...succeeded
Creating periodic thread...succeeded
Starting scheduling system...succeeded
Verbose output complete: mode = 5

这是这些块的onstat -d输出

nwnhost@nwn$onstat -d | egrep 'chunk1188|chunk1186|chunk1265|chunk1279|chunk1317|chunk1319|chunk1320'
7be211028        1252   36     48         2097125    0                     PD-B-- /dev/chunk1186
7be211428        1254   36     48         2097125    0                     PD-B-- /dev/chunk1188
7be22d028        1331   37     48         2097139    0                     PD-B-- /dev/chunk1265
7be22fc28        1345   38     48         2097000    0                     PD-B-- /dev/chunk1279
7be241228        1383   48     48         2097139    0                     PD-B-- /dev/chunk1317
7be241628        1385   38     48         2097139    0                     PD-B-- /dev/chunk1319
7be241828        1386   37     48         2097000    0                     PD-B-- /dev/chunk1320
nwnhost@nwn$

1 个答案:

答案 0 :(得分:0)

我可以通过以下命令打开这些块来解决上述错误。

onspaces -s  [dbspace_name] -p [pathname] -o [offset] -O

例如:-

onspaces -s  dbspace1 -p /dev/chunk1186 -o 96 -O