Tivoli Data Protection for Lotus Domino安装 (AIX)
1.安装需求
1.1硬件需求
RISC System /6000
磁盘空间: 80MB
内存: 512MB (推荐1GB以上)
http://www.redbooks.ibm.com/IBM红皮书下载
1.2软件需求
AIX 5.2
Lotus Domino Server已经安装
TSM服务器5.2.2已经安装
TSM备份-归档客户机5.3已经安装 (BA Client)
1.3软件安装步骤
(1). Log in as the root user.
如同在网络上连接主机一样操作ROOT
(2). Insert the Data Protection for Domino CD-ROM into the CD-ROM reader.
插入那个数据光盘FOR Domino的到光区里面去
(3). From the AIX command line, type smitty install and press Enter.
到那AIX命令行里面去,类型是smitty install或者按回车
(4). Select Install and Update Software and press Enter.
选择安装或者修复软件,按回车
(5). Select Install and Update from ALL Available Software and press Enter.
选择安装或者修复,来自与全部可利用的软件或者按回车
(6). At the INPUT device/directory for software prompt, press the F4 key and select the CD-ROM device that contains the installation CD-ROM, and press Enter.
输入安装程序的路径以便于软件高效,按F4键或者选择自定义安装或者按回车
(7). At the SOFTWARE to Install prompt, select the file sets you want to install, press the F7 key, and press Enter.
对那软件安装提示,选择那个文件放到你的应该的安装,按f7键或者按回车
回车确认安装以后,系统会将TDP for Domino安装到系统之中。
2.配置TDP程序
2.1配置程序文件
进入TDP程序目录:/usr/tivoli/tsm/client/domino/bin
# cd /usr/tivoli/tsm/client/domino/bin
创建dsm.opt文件
# vi dsm.opt
文件内容:servername tdpdom
进入文件夹 创建如下连接:
ln -s /usr/tivoli/tsm/client/ba/bin/dsm.sys /usr/tivoli/tsm/client/api/bin/dsm.sys
并在此文件中添加以下内容:
1. Servername tdpdom
2. COMMMethod TCPip
3. TCPServeraddress 10.60.1.30
4. PASSWORDAccess generate
5. NODENAME oasrv
复制代码
编辑notes用户的.profile文件,添加以下内容:
1. export PATH=/opt/lotus/bin:/notesdata:$PATH:.
复制代码
2.2执行配置脚本
以notes用户登录系统并切换root用户的权限;
$ su root
进入TDP安装目录:
# cd /usr/tivoli/tsm/client/domino/bin
3、执行如下配置脚本
# ./dominstall
4、确认TDP for Domino的安装路径,输入“Y”
5、确认Lotus Domino的安装路径,输入“Y”
6、指定notes.ini文件的路径,输入/notesdata
7、确认TSM API的安装路径,输入“Y”
8、选择是否配置Web客户端,输入“N”
9、回车结束dominstall的配置,出现以下信息:
Data Protection for Domino installation process has successfully completed.
3.验证安装
notes用户执行如下命令,启动TDP命令行操作说明:
$ domdsmc
执行如下命令,测试系统和TSM服务器通讯:
1. $ domdsmc query adsm
2.
3. IBM Tivoli Storage Manager for Mail:
4. Data Protection for Lotus Domino
5. 版本 5,发行版 3,级别 0.0
6. (C) Copyright IBM Corporation 1999, 2004. All rights reserved.
7.
8. Tivoli Storage Manager 服务器连接信息
9. ----------------------------------------------------
10.
11. 节点名 ............................... OASRV
12. 服务器的网络主机名 ................... 10.60.1.30
13. TSM API 版本 ........................ 版本 5,发行版 R3,级别 L0
14.
15. 服务器名称 ........................... MS0431BK1_SERVER1
16. 服务器类型 ........................... Windows
17. 服务器版本 ........................... 版本 5,发行版 2,级别 0.2
18. 压缩方式 ............................. 客户决定的
19. 域名 ................................. OA_DOMAIN
20. 活动策略集 ........................... OA_POLICY
21. 缺省管理类 ........................... OA_TAPE_CLASS
复制代码
执行如下命令,测试系统和Domino服务器通讯
1. $ domdsmc q domino
2.
3. IBM Tivoli Storage Manager for Mail:
4. Data Protection for Lotus Domino
5. 版本 5,发行版 3,级别 0.0
6. (C) Copyright IBM Corporation 1999, 2004. All rights reserved.
7.
8. Domino 服务器信息
9. -------------------------
10.
11. Domino 服务器名称:JLOA01
12.
13. Domino 服务器级别:6.5
14. Domino 服务器构建:196
15. 正在记录: 无记录
复制代码
客户端下中英文的转换:
英文转换中文:
$ export LANG=en
中文转换英文:
$ export LANG=zh_CN
执行如下命令,测试在线备份
$ domdsmc incremental "mail/admin.nsf"(增量备份)
$ domdsmc sel "mail/admin.nsf"(强制备份)
检测系统备份内容
$ domdsmc q dbbackup /subdir=yes
执行如下命令,测试恢复
$ domdsmc restore "mail/admin.nsf" /into=/tmp/admin.nsf
(指定路径)
$ domdsmc restore "*" /pick /subdir=yes全恢复
(字符界面)
$ domdsmc restore "*" /pick /subdir=yes /into=/tmp指定目录全恢复
字符界面时间点恢复显示:
$domdsmc restore "mail/hanbo.nsf" /pick /pit=12/15/2005,11:00:00 /into=/tmp/hanbo.nsf
字符界面时间点恢复:
$domdsmc restore "mail/hanbo.nsf" /pit=12/15/2005,11:00:00 /into=/tmp/hanbo.nsf
显示全部版本:(在进行root到notes用户切换的时候必须是su – notes)
$domdsmc restore "mail/admin.nsf" /pick=showall
显示恢复文件:
$ ls –l /tmp/admin.nsf*
系统恢复数据时,将自动给被恢复的文件加“.dad”后缀,需要激活该文件后才能使用该文件。或者直接在restore命令上加上如下参数 /activate=yes
例如:
$domdsmc restore "mail/hanbo.nsf" /pit=12/15/2005,11:00:00 /into=/tmp/hanbo.nsf /activate=yes
激活刚恢复的数据库
$ domdsmc activatedbs
显示被激活的文件,命令如下:
$ ls –l /tmp/admin.nsf*
$dsmadmc 进入管理控制台
4.Domino服务器的自动在线备份设置
在Domino服务器的TDP安装目录/usr/tivoli/tsm/client/domino/bin做如下操作:
$ cd /usr/tivoli/tsm/client/domino/bin
$ cp dominc.smp dominc.sh
(domsel.smp)
编辑dominc.sh文件,按实际情况修改。
1. #!/bin/ksh
2.
3. DOM_ID=notes
4.
5. export DOM_ID_DIR=/usr/tivoli/tsm/client/domino/bin/domdsmc_${DOM_ID}
6.
7. date >> ${DOM_ID_DIR}/domsched.log.inc
8.
9.
10. iam=`whoami`
11.
12. if [ ${iam} = "root" ]
13. then
14. su - ${DOM_ID} "-c /opt/lotus/bin/domdsmc incremental "`"*"`" -subdir=yes -logfile=${DOM_ID_DIR}/dominc.log" >>${DOM_ID_DIR}/domsched.log.inc &
15. else
16. /opt/lotus/bin/domdsmc incremental `*` -subdir=yes -logfile=${DOM_ID_DIR}/dominc.log >>${DOM_ID_DIR}/domsched.log.inc &
17. fi
复制代码
改变dominc.sh属性为可执行
$ chmod +x dominc.sh
4、启动调度进程:
后台运行:
# nohup dsmc sched -se=tdpdom 2> /dev/null &
系统启动时运行(在/etc/inittab文件中):
1. tsm:2:once:/usr/tivoli/client/ba/bin/dsmc schedule -se=tdpdom > /dev/null 2>&1
复制代码
收起