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

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

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

参与16

4同行回答

jxnxsdengyujxnxsdengyu课题专家组系统工程师江西农信
是很奇怪。同问。显示全部

是很奇怪。同问。

收起
银行 · 2017-06-20
浏览3130
hackergodnesshackergodness数据库开发工程师爱奇艺
When new containers are added to a table space or existing containers are extended, a rebalance of the table space data will occur if the new space is added below the high water mark for the table space.Information Center中的解释,看看能不能回答你的问...显示全部

When new containers are added to a table space or existing containers are extended, a rebalance of the table space data will occur if the new space is added below the high water mark for the table space.

Information Center中的解释,看看能不能回答你的问题。
https://www.ibm.com/support/knowledgecenter/en/SSEPGG_9.7.0/com.ibm.db2.luw.admin.dbobj.doc/doc/c0008087.html
自己正好也补下功课

收起
互联网服务 · 2017-06-20
浏览3081
icycastle 邀答
wangqlwangql系统工程师NULL
10.5的information center里提到过这个resize子句,在增加空间时可能会出发重平衡。没说原因显示全部

10.5的information center里提到过这个resize子句,在增加空间时可能会出发重平衡。没说原因

收起
IT咨询服务 · 2017-06-20
浏览3150
icycastleicycastle课题专家组数据库管理员某证券公司
通过snapshot for tablespaces可以看到表空间映射,如下 Range Stripe Stripe Max Max Start End Adj. Containers Number Set Offset Extent Page Stripe Stripe [ 0] [ 0] 0 163835 5242751 0 40958 0 4 (0,1,2,3...显示全部

通过snapshot for tablespaces可以看到表空间映射,如下
Range Stripe Stripe Max Max Start End Adj. Containers
Number Set Offset Extent Page Stripe Stripe
[ 0] [ 0] 0 163835 5242751 0 40958 0 4 (0,1,2,3)
[ 1] [ 0] 0 237563 7602047 40959 49150 0 9 (0,1,2,3,4,5,6,7,8)
[ 2] [ 0] 0 401398 12844767 49151 81917 0 5 (4,5,6,7,8)
[ 3] [ 0] 0 499702 15990495 81918 90109 0 12 (4,5,6,7,8,9,10,11,12,13,14,15)
[ 4] [ 0] 0 600054 19201759 90110 104445 0 7 (9,10,11,12,13,14,15)
[ 5] [ 0] 0 1212383 38796287 104446 131068 0 23 (9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31)
[ 6] [ 0] 0 1572831 50330623 131069 153596 0 16 (16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31)
表空间映射和我预计的不太一样,每个container都是一样大小的,为什么会出现这样的表空间映射?
正常应该是类似如下的表空间映射
Range Stripe Stripe Max Max Start End Adj. Containers
Number Set Offset Extent Page Stripe Stripe
[ 0] [ 0] 0 2228191 71302143 0 69630 0 32 (0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31)

收起
证券 · 2017-06-20
浏览3099

提问者

icycastle
数据库管理员某证券公司

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2017-06-20
  • 关注会员:4 人
  • 问题浏览:5478
  • 最近回答:2017-06-20
  • X社区推广