Create large tablespace报错,Bad container path
大家好,现在学习DB2, 研究创建数据库创建语句,详情见下面的代码.我把/dev/vg_dev/lv_dev_contX mount 到 /db/dev/tbs/contX. 然后权限都改成了700.执行Create database语句后面创建table space一直报错,请问下,这个错误怎么诊断,怎么解决?
[root@localhost dev]# lvdisplay | grep Path
LV Path /dev/vg_dev/lv_dev_db
LV Path /dev/vg_dev/lv_dev_cont0
LV Path /dev/vg_dev/lv_dev_cont1
LV Path /dev/vg_dev/lv_dev_cont2
LV Path /dev/vg_dev/lv_dev_cont3
LV Path /dev/vg_dev/lv_dev_cont4
LV Path /dev/vg_dev/lv_dev_cont5
LV Path /dev/vg_dev/lv_dev_cont6
LV Path /dev/VolGroup/lv_root
LV Path /dev/VolGroup/lv_swap
[root@localhost dev]#
CREATE DATABASE TESTDB AUTOMATIC STORAGE YES ON /db/dev/tbs/cont0,/db/dev/tbs/cont1,/db/dev/tbs/cont2 DBPATH ON /db/dev/db USING CODESET UTF-8 TERRITORY CN COLLATE USING SYSTEM;
CONNECT TO TESTDB;
CREATE BUFFERPOOL BP32K SIZE 10000 PAGESIZE 32K;
CREATE LARGE TABLESPACE TBS_DATA PAGESIZE 32K MANAGED BY DATABASE USING (FILE '/db/dev/tbs/cont3' 100M, FILE '/db/dev/tbs/cont4' 100M) EXTENTSIZE 32 PREFETCHSIZE AUTOMATIC BUFFERPOOL BP32K NO FILE SYSTEM CACHING;
CREATE TEMPORARY TABLESPACE TBS_TEMP PAGESIZE 32K MANAGED BY SYSTEM USING ('/db/dev/tbs/cont5') BUFFERPOOL BP32K;
CREATE USER TEMPORARY TABLESPACE TBS_USER_TEMP PAGESIZE 32K MANAGED BY SYSTEM USING ('/db/dev/tbs/cont6') BUFFERPOOL BP32K;
CREATE TABLESPACE TBS_INDEX PAGESIZE 32K BUFFERPOOL BP32K;
CREATE TABLESPACE TBS_DATA2 INITIALSIZE 100M INCREASESIZE 100M;
CONNECT RESET;
QUIT;
CREATE DATABASE TESTDB AUTOMATIC STORAGE YES ON /db/dev/tbs/cont0,/db/dev/tbs/cont1,/db/dev/tbs/cont2 DBPATH ON /db/dev/db USING CODESET UTF-8 TERRITORY CN COLLATE USING SYSTEM;
CONNECT TO TESTDB;
CREATE BUFFERPOOL BP32K SIZE 10000 PAGESIZE 32K;
CREATE LARGE TABLESPACE TBS_DATA PAGESIZE 32K MANAGED BY DATABASE USING (FILE '/db/dev/tbs/cont3' 100M, FILE '/db/dev/tbs/cont4' 100M) EXTENTSIZE 32 PREFETCHSIZE AUTOMATIC BUFFERPOOL BP32K NO FILE SYSTEM CACHING;
CREATE TEMPORARY TABLESPACE TBS_TEMP PAGESIZE 32K MANAGED BY SYSTEM USING ('/db/dev/tbs/cont5') BUFFERPOOL BP32K;
CREATE USER TEMPORARY TABLESPACE TBS_USER_TEMP PAGESIZE 32K MANAGED BY SYSTEM USING ('/db/dev/tbs/cont6') BUFFERPOOL BP32K;
CREATE TABLESPACE TBS_INDEX PAGESIZE 32K BUFFERPOOL BP32K;
CREATE TABLESPACE TBS_DATA2 INITIALSIZE 100M INCREASESIZE 100M;
CONNECT RESET;
QUIT;