奇怪,使用resize扩容表空间触发了rebalance!

在DB2 10.1FP3,AIX 7102环境,文件系统使用的是AIX LVM,有个表空间共32个容器,每个容器大小是20G,打算扩容这个表空间,于是使用了resize all 24G的命令,db2 "alter tablespace tbs resize (all 24G)",执行完成后发现 tbs 开始rebalance了,这个有点奇怪,我是在现有的container增加空...显示全部

在DB2 10.1FP3,AIX 7102环境,文件系统使用的是AIX LVM,有个表空间共32个容器,每个容器大小是20G,打算扩容这个表空间,于是使用了resize all 24G的命令,db2 "alter tablespace tbs resize (all 24G)",执行完成后发现 tbs 开始rebalance了,这个有点奇怪,我是在现有的container增加空间,不会影响表空间的HWM,为什么会触发rebalance呢?


====已解决===

该问题与表空间分布有关,可以查看这篇博文:http://blog.itpub.net/802647/viewspace-2141095/

收起
参与17

查看其它 4 个回答macrozeng的回答

macrozengmacrozeng数据库管理员IBM

10.1 的信息中心里面说了一个类似的例子

Increasing the size of device containers. The following exampleillustrates how to increase two device containers (each already existingwith 1 000 pages) in a table space on a  Linux or UNIX operating system:

[code class=\"\"]    ALTER TABLESPACE HISTORY
      RESIZE (DEVICE \'/dev/rhd7\'  2000,
              DEVICE  \'/dev/rhd8\' 2000)[/code]

The twodevices increase from 1 000 pages in size to 2 000 pages.The contents of the table space might be rebalanced across the containers. Access to the table space is not restricted during the rebalancing.



https://www.ibm.com/support/knowledgecenter/SSEPGG_10.1.0/com.ibm.db2.luw.admin.dbobj.doc/doc/t0005185.html


里面说到了 resize 也是有可能触发 rebalancing , 可能是因为当前数据在各个 containers 之间分布不均匀,达到了一个内部的阈值,从而触发了 rebalancing 的操作,如果想知道进一步的细节,可能需要开 PMR 问下 lab 的 db2 support team

政府机关 · 2017-06-20
浏览2370

回答者

macrozeng
数据库管理员IBM

macrozeng 最近回答过的问题

回答状态

  • 发布时间:2017-06-20
  • 关注会员:3 人
  • 回答浏览:2370
  • X社区推广