Chinaunix首页 | 论坛 | 博客
  • 博客访问: 332591
  • 博文数量: 72
  • 博客积分: 1730
  • 博客等级: 上尉
  • 技术积分: 743
  • 用 户 组: 普通用户
  • 注册时间: 2012-02-27 18:49
文章分类

全部博文(72)

文章存档

2012年(72)

我的朋友

分类: 系统运维

2012-08-14 13:34:02

现象:在安装director 6.3.2时,DB2安装 错误:
   Menotr查看log后执行:
部分的log如下:

点击(此处)折叠或打开

  1. hu Aug 9 03:57:32 CDT 2012
  2. +=============================================================================+
  3. [Thu Aug 9 03:57:37 CDT 2012]: Start of product installation.
  4. +=============================================================================+
  5. PRE_INSTALL_CHECKS : 0
  6. PortNumber : 8401
  7. SecurePortNumber : 8402
  8. AGENT_MANAGER_PORT : 20000
  9. MIGRATE_DATA : 1
  10. /usr/bin/lslpp: 0504-132 Fileset DirectorServer not installed.
  11. [Thu Aug 9 03:57:38 CDT 2012]: isMigrationTriggered: 0.
  12. [Thu Aug 9 03:57:38 CDT 2012]: localIP: 10.10.18.239
  13. /mnt/SysDir/server
  14. [Thu Aug 9 03:57:45 CDT 2012]: Return code of db2prereqcheck: 0.
  15. [Thu Aug 9 03:57:45 CDT 2012]: Managed DB2 is supported and its prerequisites are met.
  16. DB_INST_TYPE : 1
  17. DB_DATAPATH : /home/dirinst1
  18. [Thu Aug 9 03:57:45 CDT 2012]: DB_DATAPATH_FS : /home
  19. DB_PWD : default.
  20. DB_INSTANCEPATH : .
  21. DB_SERVER : localhost
  22. DB_PORT : default
  23. [Thu Aug 9 03:57:45 CDT 2012]: imagePath : /mnt/SysDir/server
  24. [Thu Aug 9 03:57:46 CDT 2012]: Trying to enlarge space of filesystem / to 128M
  25. Filesystem size changed to 1114112
  26. [Thu Aug 9 03:57:48 CDT 2012]: Trying to enlarge space of filesystem /usr to 512M
  27. Filesystem size changed to 11141120
  28. [Thu Aug 9 03:57:52 CDT 2012]: INST_PHASE:=========== Managed DB2 install begins ===============
  29. 3004-687 User "dirinst1" does not exist.
  30. The system call does not exist on this system.
  31. Log file: /tmp/installdb2.log
  32. Check for availability of port 50010
  33. Installing 64-bit DB2
  34. DBI1191I db2setup is installing and configuring DB2 according to the
  35. response file provided. Please wait.

  36. iocp0 A minor error occurred while installing "DB2 Enterprise Server Edition " on
  37. this computer. Some features may not function correctly.

  38. For more information see the DB2 installation log at "/tmp/db2setup.log".
  39. DB2 failed to install.
  40. error rc 17
  41. Log file: /tmp/uninstalldb2.log
  42. DB2 Instance: dirinst1
  43. Dropping DIRDB, stopping DB2 and terminating DB2
  44. 3004-500 User "dirinst1" does not exist.
  45. DBI1291E The instance dirinst1 was not found in the instance
  46. list.

  47. Explanation:

  48. The specified instance was not found in the instance list.

  49. User response:

  50. Verify that the list of instances as reported by the "db2ilist" command
  51. is correct. Retry the command with a valid instance name.

  52. DBI1079I Output is saved in the log file /tmp/db2idrop.log.3408176.
#ps -ef|grep ypbind
#stopsrc -s  ypbind

注意是stopsrc 停止这个服务,而不是杀死这个服务,否则因为有一个daemon进程会一直的创建新的
ypbind 进程,所以不要傻傻的要把这个服务给杀死。。。


然后重试安装DB2顺利安装:
ypbind 服务是NIS 提供的服务。。
下面是鸟哥的主页关于NIS的介绍:
http://

ypbind 是 NIS提供的服务。。
下面是IBM iNFORMATION  Center 提供的:
%2Fcom.ibm.aix.cmds%2Fdoc%2Faixcmds6%2Fypbind.htm



点击(此处)折叠或打开

  1. AIX 6.1 information > Commands > y
  2. ypbind Daemon
  3. Purpose

  4. Enables client processes to bind, or connect, to an NIS server.
  5. Syntax

  6. /usr/lib/netsvc/yp/ypbind [ -s -ypset -ypsetme ]
  7. Description

  8. The ypbind daemon binds, or connects, processes on a Network Information Services (NIS) client to services on an NIS server. This daemon, which runs on every NIS client, is started and stopped by the following System Resource Controller (SRC) commands:

  9. startsrc -s ypbind

  10. stopsrc -s ypbind

  11. When a client requests information from a Network Information Services (NIS) map, the ypbind daemon broadcasts on the network for a server. When the server responds, it gives the daemon the Internet address and port number of a host. This is the host that provides the information the client is seeking. The ypbind daemon stores this address information in the /var/yp/binding directory using a file name of domainname.version. Then, the next time the client wants to access an NIS map, the client's ypbind daemon refers to the addresses in the domainname.version file.

  12. The ypbind daemon can maintain bindings to several domains and their servers -ypsetme simultaneously. The default domain is the one specified by the domainname command at startup time.
  13. Notes:

  14. If a domain becomes unbound (usually when the server crashes or is overloaded), the ypbind daemon broadcasts again to find another server.
  15. To force a client to bind to a specific server, use the ypset command.
  16. To find out which server a client is bound to, use the ypwhich command.
  17. If the /var/yp/binding/domainname/ypservers file exists, ypbind will attempt to contact the servers listed in that file before broadcasting. The file should contain a list of server IP addresses, one per line.
  18. By default, the NIS client will wait indefinitely for the NIS server, during which time, logins to the client system are not possible. It is possible, however, to limit the length of this wait. If the YPBIND_MAXWAIT environment variable is set (usually in /etc/environment) before the ypbind daemon is started, this value (in seconds) will limit the amount of time the NIS client will wait for the NIS server. If this limit is exceeded, the client behaves as if NIS were unavailable and continues using local files. This will allow local logins, such as root.
  19. If a domain becomes unbound and it is listed in the /var/yp/binding/domainnanme/ypservers file, by default ypbind daemon attempts to contact the server that is currently down; however, if the YPBIND_SKIP environment variable is set to 1 (usually set in the /etc/environment file) before the ypbind daemon is started, the server that is currently down will not be contacted again.

  20. Flags
  21. -s Runs the ypbind daemon in a secure mode on privileged communications ports.
  22. -ypset Indicates the local host accepts ypset commands from local or remote hosts.
  23. -ypsetme Indicates that the local host accepts ypset commands only from the local host. This flag overrides the -ypset flag if both are specified.
  24. Notes:

  25. If neither the -ypset or -ypsetme flags are specified, the local host rejects all ypset commands from all hosts. This is the most secure mode because the NIS server cannot change.
  26. If neither the -ypset or -ypsetme flags are specified, the local host rejects all ypset commands from all hosts. This is the most secure mode because the NIS server cannot change. However, if no NIS servers exist on the networks directly connected to the client machine, then the -ypsetme flag must be used and the NIS server should be specified with the ypset command.

  27. Files
  28. /var/yp/binding directory Contains Internet addresses and port numbers for NIS servers.
  29. /var/yp/binding/domainname/ypservers Contains a list of internet addresses, one per line, of servers to attempt to contact before broadcasting.
  30. domainname.version Binary file that contains the address and port number of the current NIS server.
NIS 的由來與功能

在一個大型的網域當中,如果有多部 Linux 主機,萬一要每部主機都需要設定相同的帳號與密碼時,你該怎麼辦?複製 /etc/passwd ?應該沒有這麼呆吧?如果能夠有一部帳號主控伺服器來管理網域中所有主機的帳號, 當其他的主機有使用者登入的需求時,才到這部主控伺服器上面要求相關的帳號、密碼等使用者資訊, 如此一來,如果想要增加、修改、刪除使用者資料,只要到這部主控伺服器上面處理即可, 這樣就能夠降低重複設定使用者帳號的步驟了。

這樣的功能有很多的伺服器軟體可以達成,這裡我們要介紹的則是 Network Information Services (NIS server) 這個伺服器軟體喔!底下就先來談一談這個 NIS 的相關功能吧!



阅读(2755) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~