安装db2eee 在AIX平台的步骤如下:
1.在A,B 两台机器上的/etc/hosts的文件中,分别将相应两台机器的名字,IP地址加进来。确保ping a,ping b 的命令能够执行,确保A,B两台机器的root用户的口令相同。
2.在A机器中,运行smit jfs的命令
a. click add a journaled file system
b. click add a standard journaled file system
c. Select a volume group from the Volume Group Name list where you want this file system to physically reside.
d. Set the SIZE of file system (in 512–byte blocks) (Num.) field to 180 000 (this is about 90 MB).
e. Enter a mount point for this file system in the MOUNT POINT field. For example, /home2.
f. Set the Mount AUTOMATICALLY at system restart field to yes. The remaining fields can be left to the default settings.
g. Click OK.
3.在A上运行命令:mount /home2
4.在A上运行smit nfs命令
a. Click on the Network File System (NFS) icon.
b. Click on the Add a Directory to Exports List icon.
c. Enter the pathname and directory to export (for example,/home2) in the PATHNAME of directory to export field.
d. Enter the name of each workstation that will participate in your partitioned database system in the HOSTS allowed root access field.
The remaining fields can be left to the default settings.
e. Click OK.
5.在B机器上运行命令:smit nfs
a. Click on the Network File System (NFS) icon.
b. Click on the Add a File System for Mounting icon.
c. Enter the pathname of the mount point in the PATHNAME of the mount point (Path) field.
The path name of the mount point is where you should create the home directory for the instance owner and the Administration Server. For example, /home2.
d. Enter the pathname of the remote directory in the PATHNAME of the remote directory field.
For our example, you should enter the same value that you entered in the PATHNAME of the mount point (Path) field.
e. Enter the hostname of the machine where you exported the file system in the HOST where the remote directory resides field.
This is the hostname of the machine where the file system that you are mounting was created.
f. Set the MOUNT now, add entry to /etc/filesystems or both? field to both.
g. Set the /etc/filesystems entry will mount the directory on system RESTART field to yes.
h. Set the MODE for this NFS file system field to read-write.
i. Set the Mount file system soft or hard field to soft.
j. Ensure that this file system is mounted with the Allow execution of SUID and sgid programs in this file system? field set to Yes. This is the default setting.
k. Click OK.
6.首先,在一台机器A上如UDB的步骤安装DB2EEE版本(必须安装ADMIN SERVER)。
注意:db2inst1,db2fenc1,db2as的home路径指向/home2,例如:
/home2/db2inst1
/home2/db2fenc1
/home2/db2as
7.安装完成后用smit user 命令,将3个组db2iadm1,db2fadm1,db2asgrp的groupid,及他们相对应用户的userid记下来。
8.在B机器上如DB2UDB的步骤安装DB2eee,安装的过程中必须要选择设置GROUP和USER,所有的groupid和userid,password必须和A机器上的相同
(你可以在安装前自己定义相应的组和用户,但必须保证groupid和userid,password相同),否则会失败。
indicate the userid when create new user and group****
indicate the home directory : /home2/db2inst1
<<create instance failed>>
9.在A,B的机器中,/etc/services的目录中加入:
DB2_db2inst1 60000/tcp
DB2_db2inst1_END 60003/tcp
注意:在这里的端口的总数应为偶数。
A machine:
db2cdb2inst1 50000
db2idb2inst1 50001
DB2_db2inst1 60000
DB2_db2inst1a 60001
DB2_db2inst1_END 60003
A=B;
10.在A,B的机器中的/home2/db2inst1(DB2实例)的目录下,新建一个文件.rhosts,配置如下:
A db2inst1
B db2inst1
11.配置db2nodes.cfg如下:
0 A 0
1 B 0