zhangxyong 发表于 2007-12-13 17:22

如何增加chunk

我是第一次安装INFORMIX,在网上查找一些资料,基本上都完成,但想增加chunk时,用命令
onspaces -a rootdbs -p /usr/informix/dbspace/rootdbs2 -o 0 -s 1000000
后回车就出现每个参数的解释,对照每个参数应该没错吧
用onmonitor增加add-chunk出现以下
Press ESC to return to the Dbspaces menu.
Use arrow keys to move the cursor.
Press F3 or CTRL-B to choose the highlighted DBspace/BLOBspace.


                     LIST OF DBSPACES/BLOBSPACES

                                        When
   Dbspace/BLOBSpace Name            Created         Status

   rootdbs                           16:02:59         N
   datadbs                           16:09:06         N

Press ESC to return to the Dbspaces menu.
Use arrow keys to move the cursor.
Press F3 or CTRL-B to choose the highlighted DBspace/BLOBspace.


                     LIST OF DBSPACES/BLOBSPACES

                                        When
   Dbspace/BLOBSpace Name            Created         Status

   rootdbs                           16:02:59         N
   datadbs                           16:09:06         N





There are no more rows in the direction you are going

各位高手指点一下啊,问题出在那啊

wenlq 发表于 2007-12-14 08:47

onspaces -a rootdbs -p/usr/informix/dbspace/rootdbs2 -o0-s 1000000

命令格式没错的。
我测试了是可以的。

topgtian 发表于 2007-12-14 09:29

There are no more rows in the direction you are going

这句话应该是说明问题所在吧

liaosnet 发表于 2007-12-14 10:07

onspaces { -a <spacename> -p <path> -o <offset> -s <size> [-m <path> <offset>]
               { { [-Mo <mdoffset>] [-Ms <mdsize>] } | -U }
               }

这样写应该没有什么问题.~但你使用的是裸设备的话 -o 需要设置留一些空间给系统用.

chinahom 发表于 2008-04-17 14:32

C:\Program Files\IBM\IBM Informix Dynamic Server\11.10>onstat -d

IBM Informix Dynamic Server Version 11.10.TC1DE   -- On-Line -- Up 02:06:58 -- 21696 Kbytes

Dbspaces
addressnumber   flags      fchunk   nchunkspgsize   flags    owner    name
0C66D800 1      0x60002    1      1      4096   MB   informix rootdbs
0C66DD40 2      0x60002    2      1      4096   MB   informix ol_ids_1110_1
2 active, 2047 maximum

Chunks
addresschunk/dbs   offset   size       free       bpages   flags pathname
0C66D968 1      1      0          25600      492                   PO-BC:\IFMXDATA\ol_ids_1110_1\rootdbs_dat.000
0C66DB30 1      1      0          25600      0                     MD-BF:\IFMXDATA\ol_ids_1110_1\rootdbs_mirr.000
0C71C830 2      2      0          25600      12179               PO-BC:\IFMXDATA\ol_ids_1110_1\ol_ids_1110_1_dat.000
0C71C9F8 2      2      0          25600      0                     MD-BF:\IFMXDATA\ol_ids_1110_1\ol_ids_1110_1_mirr.000
2 active, 32766 maximum

NOTE: The values in the "size" and "free" columns for DBspace chunks are
      displayed in terms of "pgsize" of the DBspace to which they belong.

Expanded chunk capacity mode: always

请问这个镜象是F盘是什么意思?
本机只两个盘C和D.

还有做了增加chunk
C:\Program Files\IBM\IBM Informix Dynamic Server\11.10>onspaces -a ol_ids_1110_1 -p C:\IFMXDATA\ol_ids_1110_1\ol_ids_1110_1_dat -o0-s 1000000
Must enter a mirror path for the chunk

这里提示要给出镜象位置,看了一下说明用,-m参数,还是不行.

liaosnet 发表于 2008-04-17 14:51

-m <path> <offset>

建议使用硬件镜像~~不要使用数据库镜像~

[ 本帖最后由 liaosnet 于 2008-4-17 14:54 编辑 ]
页: [1]
查看完整版本: 如何增加chunk