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