查看完整版本: 困扰了我很久的db2数据分区问题

danlei85 2008-11-30 14:10

困扰了我很久的db2数据分区问题

系统环境:

硬件环境:数据库服务器2台(http1和http2):IBM 3850,做db2分区并行处理
                 存储设备:IBM DS4700,划分了2个逻辑卷,disk1=900G, disk2=950G, 文件格式为ext3,
                                   disk1挂载在http1:/opt/disk/sdb1上,disk2挂载在http2:/opt/disk/sdc1上

软件环境:数据库服务器操作系统:linux redhat 5
                 db2: v9 for linux

我在两台数据库服务器上操作如下:

        1、在http1机器上建db2用户、实例
             建用户:useradd -g 500 -d /opt/disk/sdb1/db2inst1 db2inst1
             建实例:./db2icrt -a server -s ese -u db2fenc1 db2inst1

        2、设置http1:/etc/exports如下:
             /opt/disk/sdb1/db2inst1    *(rw,sync,no_root_squash)

        3、在http1机导出:
             /usr/sbin/exportfs -a

        4、 在http2机器上建用户
              useradd -g 500 -d /opt/disk/sdc1/db2inst1 db2inst1

        5、在http2机器上挂载http1目录:
             mount -t nfs http1:/opt/disk/sdb1/db2inst1  /opt/disk/sdc1/db2inst1

        6、删除http2:/opt/disk/sdc1/db2inst1目录下的sqllib文件夹

        7、在http2上建实例:
             ./db2icrt -a server -s ese -u db2fenc1 db2inst1

        8、设置db2nodes.cfg如下:
              0  http1  0
              1  http2  0

         这样设置后,http2的db2是可以用的,可以create db、connet to db,但是http1的db2用不了(提示command not found),请教一下各位,我哪里设置错了,或是哪些设置还没有做呢?
页: [1]

查看完整版本: 困扰了我很久的db2数据分区问题