zhaobin

增强信息技术;感悟商业管理;探索商业与技术融合;丰富自我修养;享受时尚生活;记录心路历程;使Blog作为自我改变之记录与监督的平台。
posts - 25, comments - 59, trackbacks - 0, articles - 0
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

linux下安装NDS 8.7.3 及打补丁 笔记

Posted on 2010-01-23 15:11 赵斌 阅读(2207) 评论(1)  编辑  收藏 所属分类: 1.技术区

linux下安装NDS8.7.3及打补丁笔记

nds正常端口389
nds SSL端口636
Consoleone端口524

linux操作系统要安装snmp-utils安装包,在基本应用下

启动nds命令:/etc/rc.d/init.d/ndsd start

停止NDS服务
service ndsd stop

/etc/init.d/ndsd stop

删除原有的NDS服务
ndsconfig rm -a admin.com
rm  Removes the server object and directory services from a tree.

如果NDS已经不能启动,则直接删除/etc/nds.conf和/var/nds。

卸载NDS的安装
cd /opt/software/eDir_873_linux_full/Linux/setup
./nds-uninstall

手工卸载NICI
rpm -e --nodeps nici

手工安装NICI,否则重新安装NDS后NICI无法启动。
rpm -ivh nici-2.6.4-0.05.i386.rpm

重新安装NDS,注意有“NICI is installed in SERVER mode.”的信息显示。
./nds-install
输入1,2将两个都安装。

创建树
ndsconfig new -e -t hd-tree -n o=hdnet -a cn=admin.o=hdnet

编辑/etc/nds.conf,增加如下一行,指定监听的网卡
n4u.server.interfaces=eth0@524
相应的说明文档:http://www.novell.com/zh-cn/documentation/ndsedir86/?taoenu/data/a7f7odr.html

重启NDS服务后,就可以用ConsoleOne连接了。

停止服务,备份NDS的文件
tar zcvf nds-bkp-20100123.tar.gz /etc/nds.conf /etc/ndsimon.conf /etc/init.d/ndsd /usr/lib/nds-modules/ndsmodules.conf /var/nds/dib

解压NDS的备份文件
tar zxvf nds-bkp-20100123.tar.gz

先恢复Schema
ndsbackup xvf ndsschemahd20100115.bak -a admin.hdnet -p 1 schema
如果是远程的NDS服务器,则需要用R参数指定
ndsbackup xRvf 192.168.130.77 ndsschemahd20100115.bak -a admin.hdnet -p 1 schema

然后恢复innerUser和数据。注意:恢复的时候无法选择恢复部分数据,所以,一定要在备份时指定备份部分o的数据
ndsbackup xvf hdgov-inner.bak -a admin.hdnet -p 1
ndsbackup xvf hdgov-hdqjg.bak  -a admin.hdnet -p 1

修复NDS的命令,可以经常修复修复。
ndsrepair -U -F ndsrepair.log

打补丁,注意要先停掉服务
cd /opt/software/edir87310_ftf2
./install.sh

                                   (完)
===============================================================================
Error While Loading dxevent

If DirXML is not installed, while loading dxevent, the error "Loader Failed:for
dxevent,error ld.so.1: /usr/sbin/ndsd: fatal:
dxevent: open failed: No such file or
directory,errno 2" gets logged in your ndsd.log file.

This is a warning and you can ignore it. This error will not appear once you install DirXML.
===============================================================================

DirXML Fails to Start After Upgrading to eDirectory 8.7.3.x

Upgrading to eDirectory 8.7.3.x with an existing DirXML installation will cause
DirXML to fail on Solaris and Linux. To fix this problem, install the NDSdxevnt
library on Solaris or the NDSdxevnt-1.1.1-1.i386.rpm package on Linux.
These files can be found in the ./setup directory on the DirXML 1.1a installation CD.


===============================================================================
eDirectory不稳的因素很多,无论什麼原因,除了抓出log之外(因為许多时候既使抓出来也看不懂)。还有几个步骤可参考:
1. repair TREE。许多的问题都发生在TREE本身。
2. 确认这一台伺服器上还有跑什麼服务。尽量单纯一点。
3. 如上面安装IDM,确认policies写法正确,因為不正确的policies容易造成edirectory crash (exception)。
4. 确认伺服器的loading和网路loading有无导致edirectory负荷不了。 

===============================================================================



赵斌原创,保留一切权利,转载请保留引用:www.blogjava.net/zhaobin,注明转载除外,谢谢!】

评论

# re: linux下安装NDS 8.7.3 及打补丁 笔记  回复  更多评论   

2010-01-26 16:59 by noname
Q: NICI Initialization failed: -1497, Exiting...

A: Note that there is a known issue with upgrading via automatic things to
eDirectory 8.8 where NICI (upgrading to 2.7) moves the NICI files (which is
correct) but does not place the softlink in the original location to the
new (which is not correct). There is a TID as well. The fix it to create
the softlink.

ln -s /var/opt/novell/nici /var/novell/nici

只有注册用户登录后才能发表评论。


网站导航: