TSM sch不自动启动解决
重启操作系统后,查看/tsm_sch.log文件内容如下,发现提示了不能打开/dsmerror.log文件: www.zhishiwu.com
WOLF:/# cat /tsm_sch.log
ANS1398E Initialization functions cannot open one of the Tivoli Storage Manager logs or a related file: /dsmerror.log. errno = 13, T
he file access permissions do not allow the specified action.
分别检查了/usr/tivoli/tsm/client/ba/bin/dsm.sys和/.profile文件中关于tsm log存放位置的设置:
WOLF:/# cat /usr/tivoli/tsm/client/ba/bin/dsm.sys
SErvername TSMSERVER
COMMMethod TCPip
TCPPort 1500
TCPServeraddress 192.168.*.22
nodename WOLF
passwordaccess generate
TCPCLIENTADDRESS 192.168.*.21
WOLF:/# cat /.profile
PS1="`hostname`:/$PWD# ";export PS1
set -o vi
##########################
# command alias
##########################
alias l='/usr/bin/ls -Fl'
alias ls='ls -CF'
alias cl='clear'
alias dir='ls -CF'
alias rm='rm -i'
alias h='history'
export DSM_DIR=/usr/tivoli/tsm/client/ba/bin
export DSM_CONFIG=/usr/tivoli/tsm/client/ba/bin/dsm.opt
export DSM_LOG=/tsmfs/log
从上面的输出发现,/.profile文件设置中将tsm log指向了/tsmfs/log,而/usr/tivoli/tsm/client/ba/bin/dsm.sys中却没有指向,默认就到/目录下了。
修改dsm.sys文件,增加下面一行,将log文件指向了/tsmfs/log:
WOLF:/# vi /usr/tivoli/tsm/client/ba/bin/dsm.sys
增加下面一行
errorlogname /tsmfs/log/dsmerror.log
修改/etc/inittab文件,恢复到下面设置:
tsm::once:/usr/bin/dsmc sched > /dev/null 2>&1
重启aix操作系统后,发现sched进程可以自启动了:
WOLF:# ps -ef|grep dsm
root 2490452 1 0 06:31:11 - 0:00 /usr/tivoli/tsm/client/hsm/bin/dsmmonitord
root 2555982 1 0 06:31:11 - 0:00 /usr/tivoli/tsm/client/hsm/bin/dsmscoutd
root 4325582 3735720 0 06:51:35 pts/0 0:00 grep dsm
root 3015036 3146622 0 06:31:11 - 0:00 /usr/tivoli/tsm/client/hsm/bin/dsmrecalld
root 1901234 1 0 06:31:11 - 0:00 /usr/tivoli/tsm/client/hsm/bin/dsmrootd
root 2425776 3146622 0 06:31:11 - 0:00 /usr/tivoli/tsm/client/hsm/bin/dsmrecalld
root 2556884 1 0 06:31:29 - 0:00 /usr/bin/dsmc sched
root 3146622 1 0 06:31:11 - 0:00 /usr/tivoli/tsm/client/hsm/bin/dsmrecalld