- 论坛徽章:
- 0
|
HACMP+MQ双机,额外安装了客户的应用。分别在俩个节点的/etc/rc.d/rc文件中加入应用的启动语句。
node1重启之后各项正常;
node2重启之后挂住,HMC连接界面无登陆提示。IP可以ping通,但是无法使用ssh telnet等连接。
操作:
1.用光盘进入维护模式,修改/etc/rc.d/rc文件,将应用的语句删除;重启问题依旧;
2.用光盘进入维护模式,修改/etc/inittab文件,使用最小户模式,重启之后可以登陆;
为什么已经删除了rc文件里的语句还是无法正常启动?
最小化/etc/inittab
init:2:initdefault:
brc::sysinit:/sbin/rc.boot 3 >/dev/console 2>&1
srcmstr:23456789:respawn:/usr/sbin/srcmstr
rctcpip:2:wait:/etc/rc.tcpip
cons:0123456789:respawn:/usr/sbin/getty /dev/console
默认的/etc/inittab
[u@h W]#cat inittab.bak
: @(#)49 1.28.6.1 src/bos/etc/inittab/inittab, cmdoper, bos61S, 1139A_61S 9/13/11 16:17:22
: IBM_PROLOG_BEGIN_TAG
: This is an automatically generated prolog.
:
: bos61S src/bos/etc/inittab/inittab 1.28.6.1
:
: Licensed Materials - Property of IBM
:
: COPYRIGHT International Business Machines Corp. 1989,1993
: All Rights Reserved
:
: US Government Users Restricted Rights - Use, duplication or
: disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
:
: IBM_PROLOG_END_TAG
:
: COMPONENT_NAME: CMDOPER
:
: ORIGINS: 3, 27
:
: (C) COPYRIGHT International Business Machines Corp. 1989, 1993
: All Rights Reserved
: Licensed Materials - Property of IBM
:
: US Government Users Restricted Rights - Use, duplication or
: disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
:
: Note - initdefault and sysinit should be the first and second entry.
:
init:2:initdefault:
brc::sysinit:/sbin/rc.boot 3 >/dev/console 2>&1 # Phase 3 of system boot
powerfail::powerfail:/etc/rc.powerfail 2>&1 | alog -tboot > /dev/console # Power Failure Detection
mkatmpvc:2 nce:/usr/sbin/mkatmpvc >/dev/console 2>&1
atmsvcd:2 nce:/usr/sbin/atmsvcd >/dev/console 2>&1
tunables:23456789:wait:/usr/sbin/tunrestore -R > /dev/console 2>&1 # Set tunables
securityboot:2:bootwait:/etc/rc.security.boot > /dev/console 2>&1
mlsboot:2:bootwait:/etc/rc.mls.boot >/dev/console 2>&1
rc:23456789:wait:/etc/rc 2>&1 | alog -tboot > /dev/console # Multi-User checks
mlsnet:2:wait:/etc/rc.mls.net > /dev/console 2>&1
srcmstr:23456789:respawn:/usr/sbin/srcmstr # System Resource Controller
platform_agent:2 nce:/usr/bin/startsrc -s platform_agent >/dev/null 2>&1
rctcpip:2:wait:/etc/rc.tcpip > /dev/console 2>&1 # Start TCP/IP daemons
harc:2:wait:/usr/es/sbin/cluster/etc/harc.net # HACMP for AIX network startup
mkcifs_fs:2:wait:/etc/mkcifs_fs > /dev/console 2>&1
sniinst:2:wait:/var/adm/sni/sniprei > /dev/console 2>&1
aso:23456789 nce:/usr/bin/startsrc -s aso
rcnfs:2:wait:/etc/rc.nfs > /dev/console 2>&1 # Start NFS Daemons
fbcheck:23456789:wait:/usr/sbin/fbcheck 2>&1 | alog -tboot > /dev/console # run /etc/firstboot
mls:2:wait:/etc/rc.mls >/dev/console 2>&1
cron:23456789:respawn:/usr/sbin/cron
clusterconf:23456789 nce:/usr/sbin/clusterconf
piobe:2:wait:/usr/lib/lpd/pioinit_cp >/dev/null 2>&1 # pb cleanup
qdaemon:2:wait:/usr/bin/startsrc -sqdaemon
writesrv:2:wait:/usr/bin/startsrc -swritesrv
uprintfd:23456789:respawn:/usr/sbin/uprintfd
shdaemon:2 ff:/usr/sbin/shdaemon >/dev/console 2>&1 # High availability daemon
trustedboot:2:wait:/etc/rc.trustedboot > /dev/console 2>&1 # Get trusted log and start TCSD
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6
l7:7:wait:/etc/rc.d/rc 7
l8:8:wait:/etc/rc.d/rc 8
l9:9:wait:/etc/rc.d/rc 9
naudio2::boot:/usr/sbin/naudio2 > /dev/null
naudio::boot:/usr/sbin/naudio > /dev/null
ntbl_reset:2 nce:/usr/bin/ntbl_reset_datafiles
rcml:2 nce:/usr/ml/aix61/rc.ml > /dev/console 2>&1
rcwpars:2 nce:/etc/rc.wpars > /dev/console 2>&1 # Corrals autostart
logsymp:2 nce:/usr/lib/ras/logsymptom # for system dumps
perfstat:2:once:/usr/lib/perf/libperfstat_updt_dictionary >/dev/console 2>&1
diagd:2:once:/usr/lpp/diagnostics/bin/diagd >/dev/console 2>&1
artex:2:wait:/usr/sbin/artexset -q -c -R /etc/security/artex/config/master_profile.xml > /dev/console 2>&1
cimservices:2:once:/usr/bin/startsrc -s cimsys >/dev/null 2>&1
clcomd:23456789:once:/usr/bin/startsrc -s clcomd
pconsole:2:once:/usr/bin/startsrc -s pconsole > /dev/null 2>&1
xmdaily:2:once:/usr/bin/topasrec -L -s 300 -R 1 -r 6 -o /etc/perf/daily/ -ypersistent=1 2>&1 >/dev/null #Start local binary recording
cas_agent:2:once:/usr/bin/startsrc -s cas_agent >/dev/null 2>&1
ctrmc:2:once:/usr/bin/startsrc -s ctrmc > /dev/console 2>&1
ha_star:h2:once:/etc/rc.ha_star >/dev/console 2>&1
tty0:2:off:/usr/sbin/getty /dev/tty0
rcnetwlm:23456789:wait:/etc/rc.netwlm start> /dev/console 2>&1 # Start netwlm
dt:2:wait:/etc/rc.dt
cons:0123456789:respawn:/usr/sbin/getty /dev/console
pnsd:2345:once:/opt/rsct/lapi/pnsd/startpnsdAIX 1>/dev/null 2>&1
#Begin AC Solution Install block
#Start the Cloudscape database server
si:23456789:wait:/usr/ibm/common/acsi/bin/acsisrv.sh -start
#End AC Solution Install block
hacmp:2:once:/usr/es/sbin/cluster/etc/rc.init >/dev/console 2>&1
/etc/rc.d/rc
#!/bin/ksh
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# bos610 src/bos/etc/rc.d/rc.sh 1.4
#
# Licensed Materials - Property of IBM
#
# Restricted Materials of IBM
#
# COPYRIGHT International Business Machines Corp. 2000,2007
# All Rights Reserved
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
# IBM_PROLOG_END_TAG
#############################################################
# file name: rc
# purpose: run user-provided scripts in rc directories
#############################################################
#run level parameter
run_level=${1}
#check if valid run level was requested
case "$run_level"
in
[01] ) echo "Invalid run level choice; levels 0 and 1 are reserved in AIX ";;
[a-zA-Z] ) echo " lease enter a run level from 2 to 9";;
esac
#check if run level directory exists
if [[ -s /etc/rc.d/rc${run_level}.d ]] then
#get a list of the "kill" scripts in this directory
k_list=$(/usr/bin/ls /etc/rc.d/rc${run_level}.d | /usr/bin/grep "^K" | /usr/bin/sort -)
#get a list of the "start" scripts in this directory
s_list=$(/usr/bin/ls /etc/rc.d/rc${run_level}.d | /usr/bin/grep "^S" | /usr/bin/sort -)
#execute "kill" scripts
if [[ -n ${k_list} ]] then
for item in ${k_list}
do
/etc/rc.d/rc${run_level}.d/${item} stop
done
fi
#execute "start" scripts
if [[ -n ${s_list} ]] then
for item in ${s_list}
do
/etc/rc.d/rc${run_level}.d/${item} start
done
fi
else
echo "Requested run level directory does not exist"
fi
#/cluster/script/clusterd s -l>/dev/null 2>&1 &
#/mqsvr/ctc_nc/script/ctc.sh d>/dev/null 2>&1 &
exit 0
倒数第2 3 行是应用的语句。做了注释,删除掉问题依旧。
用默认的/etc/inittab文件启动,查看alog -o -t 最后只到
Multi-user initialization completed
但是无登陆提示。
求各位大神指教
|
|