日期:2014-05-16 浏览次数:20361 次
--添加用户 groupadd -g 999 db2iadm1 groupadd -g 998 db2fadm1 groupadd -g 997 dasadm1 useradd -u 1004 -g db2iadm1 -m -d /db2home/dpfinst1 dpfinst1 -p manager1 useradd -u 1003 -g db2fadm1 -m -d /db2home/dpffen1 dpffen1 -p manager1 useradd -u 1002 -g dasadm1 -m -d /home/dpfdas1 dpfdas1 -p manager1 passwd db2inst1 passwd db2fenc1 passwd dasusr1 --补齐包 rpm -ivh rsh-server-0.17-40.el5.x86_64.rpm --相应的服务 service portmap start service nfs start chkconfig rsh on --更新/etc/hosts 192.168.221.137 test64bit01 192.168.221.136 test64bit00
mkdir /db2home --在/etc/fstab里面添加: /dev/sdc /db2home ext3 defaults 0 0 --在/etc/exports里面添加: /db2home test64bit00(rw,sync,no_root_squash) test64bit01(rw,sync,no_root_squash) --允许相应的server进行读写 --应用更改 /usr/sbin/exportfs -a
mkdir /db2home --在/etc/fstab里面添加: test64bit00:/db2home /db2home nfs rw,timeo=300,retrans=5,hard,intr,bg,nolock,suid --刷新最新的挂载点 mount -a
[root@test64bit00 db2home]# touch a [root@test64bit01 db2home]# ll a -rw-r--r-- 1 root root 0 Nov 23 16:58 a
--建立一次就好了 [root@test64bit00 db2home]# /opt/ibm/db2/V9.5/instance/db2icrt -u dpffen1 dpfinst1 DBI1070I Program db2icrt completed successfully. --把db2profile加到bash profile里面 [dpfinst1@test64bit01 ~]$ tail -1 .bash_profile /db2home/dpfinst1/sqllib/db2profile --更新相应的连接配置 --在/etc/services里面保证两边相同 [root@test64bit01 db2home]# grep -i dpf /etc/services DB2_dpfinst1 60020/tcp DB2_dpfinst1_1 60021/tcp DB2_dpfinst1_2 60022/tcp DB2_dpfinst1_END 60023/tcp db2 update dbm cfg using SVCENAME DB2_dpfinst1 db2set DB2COMM=tcpip
[dpfinst1@test64bit00 ~]$ cat sqllib/db2nodes.cfg 0 test64bit00 0 1 test64bit00 1 2 test64bit01 0 3 test64bit01 1
vi /db2home/dpfinst1/.rhosts test64bit00 dpfinst1 test64bit01 dpfinst1 chmod 600 /db2home/dpfinst1/.rhosts
[dpfinst1@test64bit00 ~]$ db2_all date Wed Nov 23 17:06:19 CST 2011 test64bit00: date completed ok Wed Nov 23 17:06:19 CST 2011 test64bit00: date completed ok Wed Nov 23 17:06:19 CST 2011 test64bit01: date completed ok Wed Nov 23 17:06:19 CST 2011 test64bit01: date completed ok
connect to address 192.168.221.137 port 544: Connection refused Trying krb4 rsh... connect to address 192.168.221.137 port 544: Connection refused trying normal rsh (/usr/bin/rsh) test64bit01: Connection refused
cd /usr/kerberos/bin mv rsh rsh.bak20110602 ln -s /usr/bin/rsh rsh